0
点赞
收藏
分享

微信扫一扫

最简单的AcDbHatch

sunflower821 2022-07-27 阅读 56


软件架构师何志丹


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();

举报

相关推荐

0 条评论