TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started 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
-
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
-
"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
-
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.
-
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
-
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.
-
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).