It looks like you're new here. If you want to get involved, click one of these buttons!
I found a lot of ways to create layers from scripts during my (re)search in the forum, and some of them work for some cases but not for all, or they just stop, and, in general, is a hot topic that always recurs to the most of the KLayout users.
I wanted to ask, is there a code example with a correct way to add a new layer with custom layer properties (e.g. dither_pattern and xfill), and return the index of this layer so it can be used to draw a new object?
Thank you in advance,