It looks like you're new here. If you want to get involved, click one of these buttons!
I want to save my GDS layout and export to DXF format.
and in the file , we just need layer 51,2 and layer 51,3.
could you please help to check how to do that by code?
I knew that I need a layer Map , but I can't get the layer information base on below code....
LayoutView = RBA::Application::instance.main_window.current_view.active_cellview.cell_name indexdata =RBA::Application::instance.main_window.current_view.active_cellview.cell_index layout = RBA::CellView::active.layout opt = RBA::SaveLayoutOptions::new opt.format = "GDS2" opt.select_cell(indexdata) opt.keep_instances=true PI1=input(51,2) PI2=input(51,3) opt.add_layer(PI1) opt.add_layer(PI2) layout.write("D:\\UnitDIE.gds", opt)