I’m having trouble exporting 2D lines as a dwg.
Can anyone please check out what I’m doing wrong or if there is a more elegant way to do this.
dir = rs.BrowseForFolder(message=“select forder to save output files”)
if not os.path.exists(dir):
Lines2D = rs.ObjectsByLayer(“Grid”) + rs.ObjectsByLayer(“plan”) +
rs.ObjectsByLayer(“profile”) + rs.ObjectsByLayer(“front”)
for i in range(len(Lines2D)):
rs.Command("_export " & str(os.path.join(dir, str(“File_Name”))) +
so first I’m making the user select the path folder
them I’m selecting all object from all the layers I want to export as 1 .dwg file
them I’m making a command to select everything again (maybe there is a more elegant way to do this, which will take less computing time)
and them export as .dwg which is not working at the moment.
hope someone can help me out
thanks so much