::GetMangle

This command will return a single string that starts with an underscore (“_”), then a unique numeric value, then another underscore followed by the string specified for the “argInfo” argument. This function is commonly used to get a unique name that can be used for a handle name.

Syntax

::model::GetMangle argInfo

Application

MotionView Tcl

Description

This command will return a single string that starts with an underscore (“_”), then a unique numeric value, then another underscore followed by the string specified for the “argInfo” argument. This function is commonly used to get a unique name that can be used for a handle name.

Inputs

argInfo (Optional String Argument)
If it is not specified, it is assumed to be “NA”.

Example

set mangle [::model::GetMangle Test]
# using the value of this mangle variable as part of a handle name helps makes it unique
hwi GetSessionHandle sess$mangle
sess$mangle ReleaseHandle

Errors

A string that starts with “_”, followed by a unique numeric value, followed by another “_” then a specified string value.