I can create entities with a script and see them. Using queryAllEntities I can list them. Is it possible to give them names so that they can be referred to that way later in the script? Or should I be thinking about blocks? I haven't yet found a way to create blocks (of entities) programmatically.
Bob
Can you name an entity?
Moderator: andrew
Forum rules
Always indicate your operating system and QCAD version.
Attach drawing files, scripts and screenshots.
Post one question per topic.
Always indicate your operating system and QCAD version.
Attach drawing files, scripts and screenshots.
Post one question per topic.
Re: Can you name an entity?
You can use the entity handle to reference entities. The handle is persistent, even when saving to DXF/DWG and later loading from DXF/DWG again.
Code: Select all
entity.getHandle()