how can I restrain or limit the extents when using 'zoom' ' extents' or when changing 'UCS' "plan' 'current' ?
I am working on large area layouts with objects several hundred kilometres away, set in World coordinates. I have no control over the area that these files are originally created and often need to work across several different parts of the overall layout. Each time I need only to work in a 2km radius. It's this 2 km radius, or box, that I want to restrain the zoom extents too. I've tried setting limits, but this seems to have no effect on 'zoom' 'extents' or when changing UCS/plan/current.
Regards Glenn
CAD and PLM admin | My ideas | Inventor-Vault Expert GPT (my AI brain)
@glennQUAXD wrote:
.... It's this 2 km radius, or box, that I want to restrain the zoom extents too. I've tried setting limits, but this seems to have no effect on 'zoom' 'extents' or when changing UCS/plan/current.
....
For that part, set limits to define the area you want, and Zoom to them, not to the Extents. There's no overt option within the Zoom command to Zoom to the limits, so do this:
ZOOM (getvar 'limmin) (getvar 'limmax)
Or, with greater sophistication, here's the command I use:
(defun C:ZL (); Zoom Limits
(setvar 'cmdecho 0)
(if (> (getvar 'cmdactive) 0); [not transparent if not needed]
(command "_.'zoom" "_non" (getvar 'limmin) "_non" (getvar 'limmax)); then
(command "_.zoom" "_non" (getvar 'limmin) "_non" (getvar 'limmax)); else
); if
(setvar 'cmdecho 1)
(princ)
)
That can be used transparently [i.e. inside another command] by typing 'ZL with the apostrophe prefix. And it is not affected by running Object Snap modes.
[I would have it always include the ' before the command, rather than check whether a command is active to decide, but something I haven't figured out yet gets "stuck" when it's defined that way.]
Can't find what you're looking for? Ask the community or share your knowledge.