Community
AutoCAD LT Forum
Welcome to Autodesk’s AutoCAD LT Forums. Share your knowledge, ask questions, and explore popular AutoCAD LT topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Lisp/Macro - save/shut down and revert to Layer 0

2 REPLIES 2
Reply
Message 1 of 3
qfanatiq
395 Views, 2 Replies

Lisp/Macro - save/shut down and revert to Layer 0

Its been a whiel since I looked at this kind of thing.

 

In LT can you have a Macro or Lisp routine (thinking a bespoke button) that saves or shuts down a drawing and upon such, changes the current layer to 0?

 

Cheers.....Q

2 REPLIES 2
Message 2 of 3

Sure. Just combine -LAYER, QSAVE, and CLOSE in your macro, then put it on a button.

 

It will have to be a button or other UI element -- LT can't call command combinations like this with keystrokes.

--
Kate Morrical
Digital Design Manager, Washington DC
BIMmuse.com
Message 3 of 3
Charles_Shade
in reply to: qfanatiq

Try this one with variations and deletions as you see fit:

 

^C^C._-purge;_all;*;_no;._-purge;_regapps;*;_no;._zoom;_extents;._-layer;_set;0;;._audit;yes;._-overkill;all;;done;

 

We wrote this a while back to get all the "extra" stuff out of the File when the work was done.

If you keep it make sure you play with the Overkill (current versions of LT only) so you know what gets deleted and what does not. That Comamnd can catch you off guard.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost