Support Forum

Is there a command to get the Mirrorx status of a cell?

User
LayoutEditorFull
Thursday 17th October 2024
I would like to add the Mirrorx state to a cell list I generate. Is there a way to do this? I use el->thisElement->getPoints for coordinates and el->thisElement->getTrans for angle and scale respectively but I have not found the right syntax to get the Mirrorx state - e.g. using a line like: sz.setNum(el->thisElement->getTrans().getMirrorx(),3); //assign Mirrorx state number to string sz
Jürgen
LayoutEditorFull
Thursday 17th October 2024
The transformation you received also contains the mirror information. The returned value is a bool. So you will need a *if* command to set your string accordingly: ``` string sz="false"; if ((el->thisElement->getTrans().getMirror_x()) sz="true"; ```
User
LayoutEditorFull
Friday 25th October 2024
Perfect - thanks