arx 查找块表添加实体公用代码

原创文章,转载请注明出处.转载自: Li Haifeng's Blog
本文链接地址: arx 查找块表添加实体公用代码

//查找表


AcDbBlockTable *pBlockTable;
acdbHostApplicationServices()->workingDatabase()->getBlockTable(pBlockTable,AcDb::kForRead);


//查找记录


AcDbBlockTableRecord *pBlockTableRecord;
pBlockTable->getAt(ACDB_MODEL_SPACE,pBlockTableRecord,AcDb::kForWrite);


//添加实体


AcDbObjectId lineld;
pBlockTableRecord->appendAcDbEntity(lineld,ptLine);

From Li Haifeng's Blog, post arx 查找块表添加实体公用代码

Post Footer automatically generated by wp-posturl plugin for wordpress.

分享到: