I've to developp a Ruby script in order to change layer parameters or layer views from a GDS2 file. I use first the begin_layer/end_layer instruction to iterate a read loop on all layers. When I try to modify the visible state or only the name of the current layer (Class LayerPropertiesNode), Klayout displays an error message (a conflict with Const Ref for example when visible=true). How to do that with a RBA script for a pre-existing layer ?
Thanks for your answer