::hwat::utils::GetUniqueName
Finds a unique name for the entity.
Syntax
::hwat::utils::GetUniqueName entityType [name]
Arguments
- entityType
- The type of the entity.
- name
- Optional name can be passed. The function will check if this "name" is unique.
Returns
- Success
- A unique name for the entity type of the form "HWATentityTypeIndex", where the index is incremented until a unique name is found. For example, HWATGroups1 or of the type "nameIndex" if the "name" passed is not unique or "name" if it is unique for that entity.
Example
::hwat::utils::GetUniqueName "components" "comp"