Regarding the second question.
Example:
Code: Select all
entityIds = doc.queryAllVisibleEntities();
for (i = 0; i < entityIds.length; i++) {
entity = doc.queryEntity(entityIds[i]);
Entity_ID = Entity_to_text(entity);
if (Entity_ID == custom_ID){
//Does stuff
break;
}
}
}
My question is: Is there a more effective way, in code size and processing speed, to find an entity in the entityIds pool that this one? Some way, perhaps that uses inbuilt Qcad instructions to find specific ?
Thank you very much for your response.