Jump to content

opening error using scripts


Recommended Posts

Posted

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

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...