TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started 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
-
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))
-
also,
(apply 'mapcar (cons 'min pt-lst))
(apply 'mapcar (cons 'max pt-lst))
=>
(maxminpnt pt-lst)
-
(acet-ss-zoom-extents (ssget))
-
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.