Each Entity as well as each Class has a unique identification: 64bit digital Handle which stays the same after saving to file and changing the entity.
Handles are convenient IDs to work with the entities. For instance, we sign to the OnSelectEntity event:
<?xml version="1.0" encoding="UTF-8"?>
When we click on any entity, we get its handle in the result parameter:
After it we can use this handle handle="$2B" to work with the entity.
If we add the entity, the application creates a new Handle automatically and it is not possible to set Handle. This is the problem because when we add an entity, we do not know its handle.
Use the HandleSave parameter with "@UniqueDigit"when you add an entity and then it can be called as the Handle alias.
<?xml version="1.0" encoding="utf-8"?>
Go to CADEditorX