Please enable JavaScript to view this site.

Knowledge Base

Navigation: Scripting Language > Manipulating objects

getposition

We've made some changes. Use 'Ctrl-F5' to clear your browser cache.
Scroll Prev Top Next More

Gets the current horizontal or vertical position of an element.

 

Supported Product: INTERCONNECT

 

Syntax

Description

out=getposition("element",”x”);

Returns the current horizontal position of an element.

out=getposition("element",”y”);

Returns the current vertical position of an element.

 

Example

This example is to get the x position of an element named "Waveguide Coupler_1"

?getposition("Waveguide Coupler_1","x");

result: 

1e-006  

 

See Also

Manipulating objects, setposition, getrectangle

Copyright Lumerical Inc. | Privacy | Site Map