mdlIObject IsDefinition
Determines if the entity is a definition type or not.
Syntax
mdlIObject_handle IsDefinition
Application
MotionView Tcl Query
Description
This command determines if the entity is a definition type or not.
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 SetClientMode CLIENT_MODE_AUTHOR
myClientName GetModelHandle myModelName
myModelName AddNewAssemblyDefinition assem_handle assem_def_0
myModelName SetActiveDefinition assem_handle
assem_handle IsDefinition
assem_handle ReleaseHandle;
myModelName ReleaseHandle
myClientName ReleaseHandle
myWindowName ReleaseHandle
myPageName ReleaseHandle
myProjectName ReleaseHandle
mySessionName ReleaseHandle
Errors
Returns true if the object is a definition type, or false if it is not. If there is an error, an error code will be returned.