View Full Version : Control DXF version when use Export method
msasu
03-20-2009, 12:30 AM
Hello,
There is some way to control the version of DXF file that is created using the Export method of current drawing? By default the files are generated as default version (installed one).
Dim SSet as Object
Set SSet = ThisDrawing.SelectionSets.Add("Empty")
ThisDrawing.Export “C:\test”, "DXF", SSet
Thank you!
Regards,
Mircea
Tommy
03-20-2009, 01:07 PM
Don't use export, use saveas, the below is straight out of the help files. :)
ThisDrawing.SaveAs "AA", ac2000_dxf
'acR14_dwg = AutoCAD R14 DWG (*.dwg)
'ac2000_dwg = AutoCAD 2000 DWG (*.dwg)
'ac2000_dxf = AutoCAD 2000 DXF (*.dxf)
'ac2000_Template = AutoCAD 2000 Drawing Template File (*.dwt)
'ac2004_dwg = AutoCAD 2004 DWG (*.dwg)
'ac2004_dxf = AutoCAD 2004 DXF (*.dxf)
'ac2004_Template = AutoCAD 2004 Drawing Template File (*.dwt)
'ac2007_dwg = AutoCAD 2007 DWG (*.dwg)
'ac2007_dxf = AutoCAD 2007 DXF (*.dxf)
'ac2007_Template = AutoCAD 2007 Drawing Template File (*.dwt)
'acNative =A synonym for the latest drawing release. In this release, this value equals ac2007_dwg.
msasu
03-23-2009, 06:20 AM
Thank you for your answer!
Usage of SaveAs method was my first option – unfortunately later found that even if it works well on my station, it result in constant error on other stations; after investigating a while on Internet have found that this is a quite common issue and therefore using the Export method is recommended. The only limitation is that don’t know how to control the target DXF version.
Regards,
Mircea
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.