mdlIObject IsSelected
Determines whether or not an Assembly contains a data/definition file.
Syntax
mdlIObject_handle IsSelected
Application
MotionView Tcl Query
Description
This command determines if an object is an Assembly or an Assembly Placeholder. If the object (Assembly) has a data file, this command returns true. If there is no data file present, then the Assembly is just an Assembly Placeholder and false is returned.
Example
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 AddAssemblyPlaceholder assem_handle assem_0 "\"Assembly Placeholder 0\"" Front_Half Front_Half;
assem_handle IsSelected
assem_handle ReleaseHandle;
obj_handle AddAssembly assem_handle assem_1 "\"Assembly 1\"" "C:/temp/data_file.mdl"
assem_handle IsSelected
assem_handle ReleaseHandle;
obj_handle ReleaseHandle;
myModelName ReleaseHandle
myClientName ReleaseHandle
myWindowName ReleaseHandle
myPageName ReleaseHandle
myProjectName ReleaseHandle
mySessionName ReleaseHandle
Errors
Returns true if a data file is already selected for an object, or false if it is not selected (Assembly Placeholder). If there is an error, an error code will be returned.