Author Topic: How-to Needed: Macro Code or Lisp to Save File as a Release 11/12 ASCII DXF  (Read 350 times)

0 Members and 1 Guest are viewing this topic.

chilldaddy

  • Guest
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

hmspe

  • Bull Frog
  • Posts: 362
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
"Science is the belief in the ignorance of experts." - Richard Feynman

It's Alive!

  • Retired
  • Needs a day job
  • Posts: 8728
  • AKA Daniel
"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
« Last Edit: March 26, 2024, 12:57:07 AM by It's Alive! »

JohnK

  • Administrator
  • Seagull
  • Posts: 10651
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.
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

kdub_nz

  • Mesozoic keyThumper
  • SuperMod
  • Water Moccasin
  • Posts: 2141
  • class keyThumper<T>:ILazy<T>
« Last Edit: March 26, 2024, 07:10:13 PM by kdub_nz »
Called Kerry in my other life
Retired; but they dragged me back in !

I live at UTC + 13.00

---
some people complain about loading the dishwasher.
Sometimes the question is more important than the answer.

It's Alive!

  • Retired
  • Needs a day job
  • Posts: 8728
  • AKA Daniel
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.

JohnK

  • Administrator
  • Seagull
  • Posts: 10651
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).
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org