poIComponent SetTranslation

Translates a component by the vector given.

Syntax

poIComponent_handle SetTranslationtranslation_vector

Application

HyperView Tcl Modify

Description

This command translates a component by the vector given.

Inputs

translation_vector
The translation vector.

Example

To translate the component with ID 1, by 10 units in the X direction:
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 1myComponentName SetTranslation {10 0 0} 

Error

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