- 积分
- 111
- 明经币
- 个
- 注册时间
- 2014-7-16
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
发表于 2014-7-21 15:26:21
|
显示全部楼层
AcGePoint3d ptStart(0,0,0);
AcGePoint3d ptEnd(200,200,0);
AcDbLine* pline=new AcDbLine(ptStart,ptEnd);
AcDbBlockTable *pBlockTable;
AcDbBlockTableRecord *pBlockTableRecord;
acdbHostApplicationServices()->workingDatabase()
->getBlockTable(pBlockTable,AcDb::kForRead);
pBlockTable->getAt(ACDB_MODEL_SPACE, pBlockTableRecord,
AcDb::kForWrite);
AcDbObjectId lineId;
pBlockTableRecord->appendAcDbEntity(lineId,pline);
pBlockTable->close();
pBlockTableRecord->close();
pline->close(); |
|