Get partial selected edge x,y of a polygon

edited November 2017 in Python scripting
Hello Klayout Experts,
With partial I do select two orthogonal edges of a polygon.
How could I get the the (x,y) coordinates of the edge enclosed by the 2 orthogonal selected lines of the polygon?
I'm able to get all (x,y) corners of the polygon but need it only of one didicated edge.

What works is to draw a box covering the edge, run a booloean opertion and use the bbox coordinates.
But I would prefer to partial select the edge ...
Any idea would be highly appriciated.

Best Regards,
Andy

Comments

  • edited November -1

    Hi Andy,

    How about using the new "Cross" "ruler"? Just select this ruler type, and click close to the corner you want to measure. A cross is placed at the mouse location. If you're close enough to a corner, the point will snap to the corner and the coordinate shown reflects the position of the corner.

    Matthias

  • edited November -1
    Awesome Matthias - works perfect. It's quite easy to fetch the x,y position in a script.
    We love the new rulers of 0.25 ...

    Thanks for your feedback,

    Andy
Sign In or Register to comment.