.NET

.NET

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

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

278 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 (245 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 (233 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
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.