::hwat::utils::GetUniqueName - Finds a unique name for the entity.
::hwat::utils::GetUniqueName entityType [name]
entityType |
The type of the entity. |
name |
Optional name can be passed. The function will check if this "name" is unique (default = ""). |
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.
::hwat::utils::GetUniqueName "components" "comp"