软件架构师何志丹
AcDbObjectId id = CAddEntity().AddCircle(0,0,300);
AcDbObjectIdArray ids;
ids.append(id);
AcDbHatch* hatch = new AcDbHatch();
hatch->setPattern(AcDbHatch::kPreDefined, _T("HONEY"));
hatch->setDatabaseDefaults();
hatch->setAssociative(Adesk::kTrue); // BUG: doesn't do squat! have to set the reactor yourself to get associativity!
hatch->setNormal(AcGeVector3d(0,0,1) );
hatch->appendLoop(AcDbHatch::kExternal,ids);
hatch->evaluateHatch();
CAddEntity().AddEntity(hatch);
hatch->close();