请教。程序中实体1被打开了吗。pEnt->close()有必要吗?
见下程序:
acdbGetObjectId(entId2, ent); acdbOpenAcDbEntity(pEnt2, entId2, AcDb::kForRead);
// Is the second entity the same as the first? if(entId1 == entId2) { acutPrintf("\nSame entity selected!"); pEnt1->close(); [I]//有必要吗? [/I]
pEnt2->close(); return; }