It looks like you're new here. If you want to get involved, click one of these buttons!
I have tried the following code:
lo = pya.LoadLayoutOptions()
layout2 = pya.Layout()
1. This script generates a new dxf file adding to it the layer 40/0 but not its content. I would like to copy all the shapes in the layer.
2. I would like to iterate on all layers generating a new dxf file for each layer with name filename+"_"+layername. Here the problem is that on my Linux machine I am not able to create a LayoutView (see my other discussion). Therefore I can not use the following iteration code which is described in another thread:
lv = pya.LayoutView.current()
li = lv.begin_layers()
while not li.at_end():