Hi I’m looking to export .dwg’s for every layer in a rhino file. The simple script below works but it writes over the file name with Layer, when what I want is the file to be titled by the Layer. Anything simple I can do to adjust?
Thanks in advance,
Joey
def main():
layers = rs.LayerNames()
if layers:
for layer in layers:
rs.Command(’! _-SelNone’)
rs.ObjectsByLayer(layer, True)
rs.Command(’! _-Export layer _Enter’)
if name == “main” : main()