poIModel RemoveAssembly

Removes an assembly from the model.

Syntax

poIModel_handle RemoveAssembly assemblyID

Application

HyperView Tcl Modify

Description

This command removes an assembly from the model.

Inputs

assemblyID
The ID of the assembly to be removed from the model.

Example

To remove an assembly with ID 1 from the model
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 RemoveAssembly 1

Errors

Returns 0 if successful, or an error code (HW_IDNotFound) - if the specified parent assembly ID does not exist in the model or (HW_InvalidHandle) - if the handle used to invoke the method is no longer valid.