<< Click to Display Table of Contents >> Navigation: How To > What should be used as entity ID |
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 any entity, we get its handle in the result parameter:
<cadsofttools version="2.0"> |
After it, we can use this handle handle="$2B" to work with the entity.
If we add an 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.
Solution:
Use the HandleSave parameter with "@UniqueDigit" when you add an entity, and then it can be called as the Handle alias.
Example, Add3.xml:
<?xml version="1.0" encoding="utf-8"?> |
Go to CADEditorX