poIModel DefineAssembly
Defines an assembly in a model.
Syntax
poIModel_handle DefineAssembly assemblyID label parentAssemblyID
Application
HyperView Tcl Modify
Description
This command defines an assembly in a model.
Inputs
- assemblyID
- The ID of the new assembly to be defined.
- label
- The name of the new assembly.
- parentAssemblyID
- The ID of the parent assembly (already existing in the model).
Example
To define a new assembly with the ID 1 and the label
assembly:
hwi GetSessionHandle mySessionName
mySessionName GetProjectHandle myProjectName
set pageIndex [myProjectName GetActivePage]
myProjectName GetPageHandle myPageName $pageIndex
set windowIndex [myPageName GetActiveWindow]
myPageName GetWindowHandle myWindowName $windowIndex
myWindowName GetClientHandle myPostName
set modelIndex [myPostName GetActiveModel]
myPostName GetModelHandle myModelName $modelIndex
myModelName GetResultCtrlHandle myResultName
myModelName DefineAssembly 1 assembly1 0
Errors
Returns 0 if successful, or an error code (HW_IDNotFound) - if the specified parent assembly is not found in the model or
(HW_InvalidHandle) - if the handle used to invoke the method is no longer valid.