How-to Needed: Macro Code or Lisp to Save File as a Release 11/12 ASCII DXF

Processing a DWG file containing nearly one thousand drawings as supplied by the manager, each drawing is stripped down to lines, arcs and saved as an individual file.

The drawing must be saved to the Release 11/12 ASCII DXF file format.

GOAL: Eliminate file type scroll-down and save as a Release 11/12 ASCII DXF file format .

REASON: This specific DXF file format is required to import detail drawings into a specialty design software.

REQUEST: Please pass along tips, code snippets, etc., to save the file directly to a Release 11/12 ASCII DXF file format.

Thanks,

C. Hill

Comments

  • This is cross-posted at theswamp.org. My answer there was

    In LISP and for Bricscad I would:

    - store the current SAVEFORMAT system variable value
    - set SAVEFORMAT to 1 (you should verify the number)
    - run the SAVE command
    - restore SAVEFORMAT
  • Hello.

    Alternatively, another approach could be to put all the drawings in a folder.

    The lisp script could use (vl-directory-files) and (foreach) to iterate through the drawings.

    Then, a sequence like this could be used:
    (vla-open fileName)
    (vla-saveas fileName acR12_dxf)
    (vla-close doc :vlax-false)
  • Martin and Virgil, your comments and code snippets are very helpful. Thank you!