为什么cad会出错
ads_name en;<BR> ads_point pt;<BR> AcDbEntity * pEnt;<BR> AcDbObjectId pEntId;acedEntSel("\nSelect an Entity: ", en, pt);<BR> acdbGetObjectId(pEntId, en);<BR> acdbOpenAcDbEntity(pEnt, pEntId, AcDb::kForWrite);<BR>
pEnt->close();
reply
Acad::ErrorStatus es;es = acdbOpenAcDbEntity(pEnt, objId, AcDb::kForWrite);
if (es == Acad::eOk) {
}
每一步正确执行才可继续, 贴你的完整工程上来吧.
页:
[1]