.NET

.NET

Reply
Contributor
11 Posts
2 Kudos
Registered: ‎04-19-2012
Post 1 of 3

save a DXF to DWG without opening it in the editor (AutoCAD)

279 Views, 2 Replies
04-15-2013 03:16 PM

Hello:
I can save a file as DXF to DWG without opening it in the editor (AutoCAD). when a DWG file is not complicated (see the example code) but would like to be a DXF?

On the other hand in the case of opening a DWG (with no the editor) and store in a last AutoCAD, for example AutoCAD 2000 or AutoCAD 2000 DXF. What should allocate where it says "DwgVersion.".

means AC1001, AC1002 ... What belongs to whom?

 

Thanks for your attention

 

 

 

 db.ReadDwgFile(files , FileShare.ReadWrite, False, "")

 Dim fileName As String = files & ".dwg"

 db.SaveAs(fileName, DwgVersion.Current)

 

*Expert Elite*
1,286 Posts
37 Kudos
Registered: ‎06-21-2004
Post 2 of 3

Re: save a DXF to DWG without opening it in the editor (AutoCAD)

04-16-2013 06:15 AM in reply to: ccalvo12

http://autodesk.blogs.com/between_the_lines/autocad-release-history.html

---------------------------



(defun botsbuildbots() (botsbuildbots))
*Expert Elite*
1,569 Posts
171 Kudos
Registered: ‎10-08-2008
Post 3 of 3

Re: save a DXF to DWG without opening it in the editor (AutoCAD)

04-16-2013 11:08 AM in reply to: ccalvo12
See code by JeffH here
http://www.theswamp.org/index.php?topic=37409.msg424143#msg424143
_____________________________________
C6309D9E0751D165D0934D0621DFF27919
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are you interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!