软件架构师何志丹


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

posted on 2023-05-17 14:50  闻缺陷则喜何志丹  阅读(26)  评论(0编辑  收藏  举报  来源