- 积分
- 767
- 明经币
- 个
- 注册时间
- 2004-11-1
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
[ARX]请问高手,插入块时怎么改变块比例??下面是我插入块的程序,要加比例,怎么做谢谢!!!
AcDbDatabase *pCurDb; AcDbBlockTable *pBlkTable; AcDbBlockTableRecord *pBlkTableRecord; AcDbBlockReference *pInsrtObj; AcDbObjectId blkId; pCurDb = acdbHostApplicationServices()->workingDatabase();
pCurDb->getBlockTable(pBlkTable, AcDb::kForRead); if(!pBlkTable->has(blkName)) { acutPrintf("\nBlock definition %s not found. ", blkName); pBlkTable->close(); return; }
pBlkTable->getAt(blkName, blkId);
pBlkTable->getAt(ACDB_MODEL_SPACE, pBlkTableRecord, AcDb::kForWrite); pBlkTable->close();
pInsrtObj = new AcDbBlockReference(insPt, blkId);
pBlkTableRecord->appendAcDbEntity(blkId, pInsrtObj);
pBlkTableRecord->close(); pInsrtObj->close(); |
|