mdlIObject SetSelectionType

Sets the selection type of an Assembly or external Analysis.

Syntax

mdlIObject_handle SetSelectionType def_type

Application

MotionView Tcl Modify

Description

This command sets/updates the ‘selection_type’ data member of an object. The object on which this command will be called should be an external Analysis or Assembly.

Inputs

def_type
The definition type that the ‘selection_type‘ data member will be set to.

Example

To set the ‘selection_type’ data member of an object:
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 SetSelectionType assem_new_type
assem_handle ReleaseHandle;
obj_handle ReleaseHandle;
myModelName ReleaseHandle
myClientName ReleaseHandle
myWindowName ReleaseHandle
myPageName ReleaseHandle
myProjectName ReleaseHandle
mySessionName ReleaseHandle

Errors

Returns 0 if successful, otherwise an error code.