johniyoun Posted February 23, 2011 Posted February 23, 2011 Hello, I made a script to open dwg files and convert into dxf files. The following is the script. open "C:\Documents and Settings\yoon\Desktop\Mixed_REMOVE\New Folder\Jig05_for_plot.dwg" save "C:\Documents and Settings\yoon\Desktop\Mixed_REMOVE\New Folder\Jig05_for_plot.dxf" close close open "C:\Documents and Settings\yoon\Desktop\Mixed_REMOVE\New Folder\Jig06_for_plot.dwg" save "C:\Documents and Settings\yoon\Desktop\Mixed_REMOVE\New Folder\Jig06_for_plot.dxf" close close open "C:\Documents and Settings\yoon\Desktop\Mixed_REMOVE\New Folder\Plate_for_fins.dwg" save "C:\Documents and Settings\yoon\Desktop\Mixed_REMOVE\New Folder\Plate_for_fins.dxf" close close open "C:\Documents and Settings\yoon\Desktop\Mixed_REMOVE\New Folder\Plate_for_fins_plot.dwg" save "C:\Documents and Settings\yoon\Desktop\Mixed_REMOVE\New Folder\Plate_for_fins_plot.dxf" close close open "C:\Documents and Settings\yoon\Desktop\Mixed_REMOVE\New Folder\Report.dwg" save "C:\Documents and Settings\yoon\Desktop\Mixed_REMOVE\New Folder\Report.dxf" close close But, the problem is that when it (Autocad non-educational version) try to open dwg file that was created by Autocad educational version, it just cancel opening and stop running scripts. In same way, when it (Autocad educational version) try to open dwg file that was created by Autocad non-educational version, it cancel opening and stop running scripts. Is there anyone who know how to open dwg files regardless of its version using scripts? The Autocad version is AutoCAD 2011 and AutoCAD 2010. Thank you. Johnny Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.