It looks like you're new here. If you want to get involved, click one of these buttons!
Hello, I am making some paths using a python script.
I would like the path start and end extensions to be of the "square" type, as defined when you go to shape properties and change the extension type in the drop-down menu.
I cannot find how to script this in Python.
I am working with many shapes with variable widths so would prefer to not have to update the start and end points of each one to get the same effect as the "square" extension type.
Thank you in advance.
Comments
The corresponding parameters are "bgn_ext" and "end_ext". Set them to half the width to achieve the "square end" effect.
For more information see here: https://www.klayout.de/doc-qt5/programming/geometry_api.html#k_6
Matthias
I see so there is no automatic setting?
What do you mean by "automatic"? These are parameters. You just have to specify them.