@jiunnweiyeh for me it's a design rule check, the design is given and I need to look for violations. The code I implemented seems to work. Another option is to look at layer_1.drc(VAL2.micron>=width(*args)>value.micron).with_angle(0), with VAL…
@Matthias I hadan idea for the max_width.
first I look for edge-pairs below max value, the result is converted in polygons and then removed from the collection of all polygons:
error =layer_1.not( layer_1.drc(value.micron>=width(*args)).with_angl…