Import DXF, bug ?

Discussion in 'AutoCAD' started by Gilles Plante, Mar 3, 2004.

  1. Hi all,

    I just migrated an old VB program from AutoCAD R14 to 2004. This program
    imports DXF files, get the value of MEASUREMENT and acts accordingly to the
    drawing units (Metric or Imperial). Everything was fine with R14, but that
    is not the case with 2004.With 2004, at the end of the import, the value of
    MEASUREMENT is not the one from the DXF file, but the one from the empty
    drawing into which the DXF was inserted. That breaks the logic of the
    program.

    So is it a bug or a feature ? What is the way around ? Note that opening a
    DXF file from File > Open is fine. But from VBA, one can only import DXF
    files, not open them.

    Thanks

    Gilles Plante
     
    Gilles Plante, Mar 3, 2004
    #1
  2. Gilles Plante

    Yves Guest

    It might help,

    Here is the code to open a DXF file
    ThisDrawing.Application.Documents.Open PATH & "Filename.dxf"

    I didn't check the behavior of the MEASUREMENT variable, I don't need to
    bother with it, allways in metric.

    Hope this helps.
     
    Yves, May 11, 2004
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.