mdlIObject SetLabel
Sets/changes the label of an object.
Syntax
mdlIObject_handle SetLabel label
Application
MotionView Tcl Modify
Description
Inputs
- label
- The name of the label.
Example
hwi OpenStack
hwi GetSessionHandle mySessionName
mySessionName GetProjectHandle myProjectName
set activePageNum [myProjectName GetActivePage]
myProjectName GetPageHandle myPageName $activePageNum
set activeWinNum [myPageName GetActiveWindow]
myPageName GetWindowHandle myWindowName $activeWinNum
myWindowName GetClientHandle myClientName
myClientName GetModelHandle myModelName
myModelName InterpretEntity b0 Body new_body "\"Body\"";
myModelName GetChildHandle bod new_body
bod SetLabel "\"NewBody\""
bod ReleaseHandle
myModelName ReleaseHandle
myClientName ReleaseHandle
myWindowName ReleaseHandle
myPageName ReleaseHandle
myProjectName ReleaseHandle
mySessionName ReleaseHandle
hwi CloseStack
Errors
Returns 0 if successful, otherwise an error code.