Zoom Extents

Zoom Extents

Anonymous
Not applicable
5,459 Views
6 Replies
Message 1 of 7

Zoom Extents

Anonymous
Not applicable

Does anyone have a lisp routine for zoom extents? I see plenty for zoom extents all layouts, but I want just the current layout. I used to have one, but lost it, and don't know enough about lisp routines to write my own. Thanks!

0 Likes
Accepted solutions (2)
5,460 Views
6 Replies
Replies (6)
Message 2 of 7

Kent1Cooper
Consultant
Consultant
Accepted solution

@Anonymous wrote:

Does anyone have a lisp routine for zoom extents? I see plenty for zoom extents all layouts, but I want just the current layout. I used to have one, but lost it, and don't know enough about lisp routines to write my own. Thanks!


This is what I use -- a little command called ZE.  Not much of a shorthand compared to Z [space] E [space], but I do use it a lot, and you can put it in a menu item somewhere so you can just pick it:

(defun C:ZE (); Zoom Extents
  (command "_.zoom" "_extents")
  (princ)
)

 

More often, I use Zoom to the Limits [ZL command], but I understand a lot of people don't make use of drawing Limits as I do:

 

(defun C:ZL (); Zoom Limits
  (command "_.zoom" (getvar 'limmin) (getvar 'limmax))
  (princ)
)

Kent Cooper, AIA
0 Likes
Message 3 of 7

Anonymous
Not applicable

Thank you so much! That was exactly what I was looking for!

0 Likes
Message 4 of 7

scot-65
Advisor
Advisor

I will share a supplement to Kent's Zoom Limits.

 

I too like to use Zoom Limits since here we have a "checkerboard"

setup in model space and sometimes one gets lost as to where

one left off...

 

c:ZZR will set LIMMIN and LIMMAX - Specify a 2-point rectangle.

c:ZZZ is Zoom Limits.

 

Enjoy.

 


Scot-65
A gift of extraordinary Common Sense does not require an Acronym Suffix to be added to my given name.

0 Likes
Message 5 of 7

Anonymous
Not applicable

That's very interesting. Thanks for sharing that with me. I'll give it a try!

0 Likes
Message 6 of 7

Kent1Cooper
Consultant
Consultant
Accepted solution

@Anonymous wrote:

Does anyone have a lisp routine for zoom extents? ....


By the way, I forgot that, in fact, no routine is needed [if you have a new-enough version for this -- I don't know when it came in -- and have a mouse with a wheel].  Just double-clicking on your mouse wheel gets you Zoom Extents.  [I wrote that routine in an older version when this wasn't available.]

Kent Cooper, AIA
0 Likes
Message 7 of 7

Anonymous
Not applicable

Well how about that! I had no idea that you could do that! Thanks for the tip!

0 Likes