mdlIObject GetSelectionType
Gets the value from the 'selection_type' data member.
Syntax
mdlIObject_handle GetSelectionType
Application
MotionView Tcl Query
Description
This command reads the ‘selection_type’ data member and returns the evaluated value of it.
Example
To obtain the value from a 'selection_type' data member:
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 GetObjectHandle obj_handle
obj_handle AddNewAssembly assem_handle assem_0 "\"Assembly 0\"" C:/temp/data_file.mdl C:/temp/def_file.mdl true assem_def_name assem_type;
assem_handle GetSelectionType
assem_handle ReleaseHandle;
obj_handle ReleaseHandle;
myModelName ReleaseHandle
myClientName ReleaseHandle
myWindowName ReleaseHandle
myPageName ReleaseHandle
myProjectName ReleaseHandle
mySessionName ReleaseHandle
Error
Returns the 'selection_type' member value if successful. If there is an error, an error code will be returned. If no ‘selection_type’ data member is present, nothing will be returned.