Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Zooming Macro help

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
cheddarthief
430 Views, 4 Replies

Zooming Macro help

Years ago, I had someone create a macro for me that when I typed ZZ on my command line, the command would execute basically the following: Zoom, Extents, Zoom .8x of the extents.  Could someone help with setting this up?  I'd presume a macro must be written then somehow connected to the custom ZZ command.

 

Thanks,

cheddarthief

4 REPLIES 4
Message 2 of 5
tmccar
in reply to: cheddarthief

Create a text file, and save it as"ZZ.LSP"

Copy and paste the following into it:

 

(defun C:ZZ ()
(command
"ZOOM" "E" "ZOOM" "0.8X"
); command
); defun

 

Within Autocad, run "Appload" and browse to where the file is saved, and load it.

Tick "Add to history", and "Load"

 

Your ZZ command should now be active

 

Message 3 of 5
cheddarthief
in reply to: tmccar

Thanks.  That's perfect.

Message 4 of 5
cheddarthief
in reply to: tmccar

One more question.  I went into an existing drawing and tried to run this ZZ function.  It didn't recognize it.  Year ago, you'd have to go into the Autocad config file to add the lisp routine so that you could execute it on any CAD dwg without having to load it.  Is there a way to do that?

 

Message 5 of 5
Patchy
in reply to: cheddarthief

Appload and click on the suitcase icon then add your zz.lsp that will fix it.

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

Post to forums  

Autodesk Design & Make Report

”Boost