mdlIObject IsAssembly

Determines if an object is an assembly or not.

Syntax

mdlIObject_Handle IsAssembly

Application

MotionView Tcl Query

Description

This command determines if an object is an assembly or not.

Example

To check if an object is an assembly:
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 GetChildHandle myAssembly assem_0
set val [myAssembly IsAssembly];
tk_messageBox -message "This Object is an Assembly: $val";
myAssembly ReleaseHandle;
myModelName ReleaseHandle
myClientName ReleaseHandle
myWindowName ReleaseHandle
myPageName ReleaseHandle
myProjectName ReleaseHandle
mySessionName ReleaseHandle
hwi CloseStack

Errors

Returns true if the object is an assembly, otherwise false.