Author Topic: zooming  (Read 1852 times)

0 Members and 1 Guest are viewing this topic.

curmudgeon

  • Newt
  • Posts: 194
zooming
« 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
Never express yourself more clearly than you are able to think.

gile

  • Gator
  • Posts: 2507
  • Marseille, France
Re: zooming
« Reply #1 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))
Speaking English as a French Frog

wizman

  • Bull Frog
  • Posts: 290
Re: zooming
« Reply #2 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)

ElpanovEvgeniy

  • Water Moccasin
  • Posts: 1569
  • Moscow (Russia)
Re: zooming
« Reply #3 on: April 19, 2009, 07:13:43 AM »
Code: [Select]
(acet-ss-zoom-extents (ssget))

curmudgeon

  • Newt
  • Posts: 194
Re: zooming
« Reply #4 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.
Never express yourself more clearly than you are able to think.