poIComponent SetAssemblyID
Sets the assembly ID of a component.
Syntax
poIComponent_handle SetAssemblyID value
Application
HyperView Tcl Modify
Description
This command sets the assembly ID of a component.
Inputs
- value
- The assembly ID to be set.
Example
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 GetComponentHandle myComponentName 1 myComponentName SetAssemblyID 1
Errors
Returns 0 if successful, or an error code (HW_IDNotFound) - if the specified assembly ID does not exist in the model or (HW_InvalidHandle) - if the handle used to invoke the method is no longer valid.