.NET

Reply
Contributor
ccalvo12
Posts: 11
Registered: ‎04-19-2012
Message 1 of 3 (277 Views)

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

277 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*
arcticad
Posts: 1,285
Registered: ‎06-21-2004
Message 2 of 3 (244 Views)

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*
Hallex
Posts: 1,569
Registered: ‎10-08-2008
Message 3 of 3 (232 Views)

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 Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!