mdlIObject SelectAssembly
Selects an existing data file for an Assembly Placeholder.
Syntax
mdlIObject_handle SelectAssembly label, data_file, attach_args
Application
MotionView Tcl Modify
Description
This command converts the selected Assembly Placeholder to an Assembly. The Assembly Placeholder can be viewed as an Assembly without a data or definition file. To create an Assembly of an Assembly Placeholder, an existing data file must be provided using this command.
Inputs
- label
- The label of the new Assembly which is going to be created.
- data_file
- The data file that is to be used to create the Assembly.
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 SelectAssembly "\"Assembly 1\"" "C:/temp/data_file.mdl"
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.