软件架构师何志丹
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();
2021年目标:完成新书《闻缺陷则喜》,本博客右上公告有下载、阅读链接。