TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: chilldaddy on March 25, 2024, 04:43:46 PM

Title: How-to Needed: Macro Code or Lisp to Save File as a Release 11/12 ASCII DXF
Post by: chilldaddy on March 25, 2024, 04:43:46 PM
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. :smitten:

Thanks,

Clint
Title: Re: How-to Needed: Macro Code or Lisp to Save File as a Release 11/12 ASCII DXF
Post by: hmspe on March 25, 2024, 04:59:10 PM
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
Title: Re: How-to Needed: Macro Code or Lisp to Save File as a Release 11/12 ASCII DXF
Post by: It's Alive! on March 26, 2024, 12:47:29 AM
"Processing a DWG file containing nearly one thousand drawings"
did you mean blocks?

edit: if you want explore using Python for AutoCAD
there's a sample here
https://www.theswamp.org/index.php?topic=58624
Title: Re: How-to Needed: Macro Code or Lisp to Save File as a Release 11/12 ASCII DXF
Post by: JohnK on March 26, 2024, 12:01:36 PM
Duplicate post (a dead-end). Clint got a solution on adesk forum--but never shared his solution with us (I guess he doesn't care if anyone has the same problem in the future). It's also funny how he hasn't logged back in here since he got his answer.
Title: Re: How-to Needed: Macro Code or Lisp to Save File as a Release 11/12 ASCII DXF
Post by: kdub_nz on March 26, 2024, 07:05:29 PM
Yes,
Thanks to Ron Perez ( ronjonp )

https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-needed-macro-code-or-lisp-to-save-file-as-a-release-11-12/m-p/12664884
Title: Re: How-to Needed: Macro Code or Lisp to Save File as a Release 11/12 ASCII DXF
Post by: It's Alive! on March 26, 2024, 07:32:55 PM
Duplicate post (a dead-end). Clint got a solution on adesk forum--but never shared his solution with us (I guess he doesn't care if anyone has the same problem in the future). It's also funny how he hasn't logged back in here since he got his answer.
Title: Re: How-to Needed: Macro Code or Lisp to Save File as a Release 11/12 ASCII DXF
Post by: JohnK on March 26, 2024, 07:45:11 PM
I went for a bit of public shaming but I'm open to the suggestion.

Ultimately, I'd like the people that do this to maintain and pay for something and have some person come along and just abuse it for their own use. I mean, honestly, we all have a stake in this place (and I hate it when people just abuse all that effort, time, money, etc).