Consulting

Results 1 to 3 of 3

Thread: Control DXF version when use Export method

  1. #1
    VBAX Newbie
    Joined
    Mar 2009
    Posts
    2
    Location

    Control DXF version when use Export method

    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

  2. #2
    Moderator VBAX Master Tommy's Avatar
    Joined
    May 2004
    Location
    Houston, TX
    Posts
    1,184
    Location
    Don't use export, use saveas, the below is straight out of the help files.
    [VBA]
    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.
    [/VBA]

  3. #3
    VBAX Newbie
    Joined
    Mar 2009
    Posts
    2
    Location
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •