HyperWorks Tools

::hwat::utils::GetUniqueName

::hwat::utils::GetUniqueName

Previous topic Next topic No expanding text in this topic  

::hwat::utils::GetUniqueName

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

NAME

::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 (default = "").

 

RETURNS

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"

 

 

See also

Utils Functions