Saving AutoCAD files (.dwg) using Python
问题 I am using win32com to automate some simple tasks in AutoCAD. It's mostly been working quite well except for being able to save files. My goal is to open a (template) file, adjust it depending on what is needed then save the file as a .dwg in another folder while leaving the template empty and ready to be used next time. The following in an example of my code: import win32com.client acad = win32com.client.dynamic.Dispatch("AutoCAD.Application") acad.Visible=True doc = acad.Documents.Open("C:\