How to know window size?(I prefer automatic method)
User LayoutEditorFull Wednesday 18th May 2022Attachments: (only for registered users) sample.gds
I have checked window size with manually : "Find Lower Left position and Top Right position."
Sometimes overall pattern shape would be created with Circle, Oval shape or 1/4 round shape. In these case, it's not easy to get window size by manually. Therefore I need to know how to know automatically their window size. Is it possible to get myself by automatically? For helping your understanding, I attached one sample. I will wait your great answer. Thanks in advance
Jürgen LayoutEditorFull Wednesday 18th May 2022
You are searching for the bounding box of a single polygon. You will receive it by calling the minimum()/maximum() method of a shape. In that case minimum().x() will be the lowest x value, minimum().y() will be the bottom and so on. There are also a minimuSelect()/maximumSelect() only respecting the selected points.
Some method exists for the cell class. minimumSelect() for example will here return the smallest coordinates (of the bpunding box) of all selected shapes in the cell.