poIComponent GetTranslation

Gets the translation vector in the global coordinate system.

Important: Please note that this command has been deprecated and therefore is not recommended for use. See the poIPart Class for an alternative command that can be used.

Syntax

poIComponent_handle GetTranslation

Application

HyperView Tcl Modify

Description

This command returns the translation vector in the global coordinate system.

Example

To get the translation vector of the component with an ID of 1:
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 GetTranslation

Error

Returns the translation vector if successful, or an error code (HW_InvalidHandle) if the handle used to invoke the method is no longer valid.