[Search tip detail and code files using keywords, tip number, author name, etc ]
    For tip to function correctly, you must ensure that the downloaded file name matches the file name
    displayed in the Rename File To field. Please rename downloaded files when necessary.
Zoom Extents Alternative
Tip# 3800 By Jim Dee On 13-Jan-2012
Rated By 0 users Downloaded : 266
Categories : Zoom
Software type : AutoCAD 2012
Rename File To : Zoom_Block.dwg,Zoom_Block.lsp
Use a block to define the limits of Zoom Extents.

If you have ever had an AutoCAD drawing in which you execute Zoom Extents and your drawing disappears, then this LISP routine might be for you. Sometimes you can find and remove an offending entity that causes the Zoom command to appear to misbehave, but other times you just need a quick solution. With its special Zoom Extents command, Jim Dee's LISP routine allows you to define an area in your drawing that will never be exceeded. This routine includes a dynamic rectangle block that you place in the drawing and size to your needs. Load the LISP file, then run the command ZB and the drawing will zoom to the exact area of the aforementioned rectangle block.


Average Rating:

User comments
Comment by Cooper,Kent
Posted on 2012-01-14 21:47:31
Another way: just use the drawing LIMITS rather than the Extents, and a menu item containing: ^C^CZoom (getvar 'limmin) (getvar 'limmax) No need for a Block, and it's very easy to change the Limits at any time, and you can even set the LIMCHECK System Variable to prevent you from drawing anything outside the Limits [within certain parameters], to help avoid the described problem with Zoom Extents.
Comment by Cooper,Kent
Posted on 2012-01-23 09:13:04
Or better yet, use the Limits and a menu item containing just 'ZOOM (getvar 'limmin) (getvar 'limmax) instead of beginning with ^C^C. That way, you can use it transparently in mid-command.