TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: curmudgeon on April 18, 2009, 04:13:22 PM

Title: zooming
Post by: curmudgeon on April 18, 2009, 04:13:22 PM
I would like the computer to escort me through my building, sometimes one room at a time.

I can make a selection set of room numbers and zoom center to the insertion points, it works. but is there no better way?
say one room is a closet and the next a gymnasium. the zoom scale for one will not work well for the other. I can just as easily get the outline of the room. but what can I pass the max and min of the x & y to and get a nice tight fit of only what I want to see?

the system variables that I can find that pertain to the size of a view screen are all read only.
 :-P
Title: Re: zooming
Post by: gile on April 18, 2009, 04:49:12 PM
Hi,

Assuming pt-lst is the points list of a room outline, the following expressions returns the min and max points you can use for a window zoom

(apply 'mapcar (cons 'min pt-lst))
(apply 'mapcar (cons 'max pt-lst))
Title: Re: zooming
Post by: wizman on April 19, 2009, 06:35:17 AM
also,

Code: [Select]
(apply 'mapcar (cons 'min pt-lst))
(apply 'mapcar (cons 'max pt-lst))

=>

Code: [Select]
(maxminpnt pt-lst)
Title: Re: zooming
Post by: ElpanovEvgeniy on April 19, 2009, 07:13:43 AM
Code: [Select]
(acet-ss-zoom-extents (ssget))
Title: Re: zooming
Post by: curmudgeon on April 20, 2009, 06:51:04 AM
Hi,

Assuming pt-lst is the points list of a room outline, the following expressions returns the min and max points you can use for a window zoom

(apply 'mapcar (cons 'min pt-lst))
(apply 'mapcar (cons 'max pt-lst))

it's Monday morning, and I am back at it again.
thanks Gile - this is where I will begin. it uses the tools I am trying to get better acquainted with.

now, to be about it.