Cristallo
Guest
in a drawing I have several layouts
I get the list by (setq layouts (layoutlist))
I order them by (setq layouts (acad_strlsort layouts))
then for each I try to get the info of the viewport (I have only 1 for each layout) - we say I look for the viewport of the layout 1002
(setq p (ssget "x" (cons 0 "viewport") (cons 410 "1002"))))
(setq view0 (entget (sname p 0)))
I get the viewport entity list on that particular layout and try to figure out what the extremes of the view, but I can't. I know that group 10 is the center of viewport, but I need angles (the display box to understand), to be able to select the entities of viewport in the model.
Can some gurus tell me?
I get the list by (setq layouts (layoutlist))
I order them by (setq layouts (acad_strlsort layouts))
then for each I try to get the info of the viewport (I have only 1 for each layout) - we say I look for the viewport of the layout 1002
(setq p (ssget "x" (cons 0 "viewport") (cons 410 "1002"))))
(setq view0 (entget (sname p 0)))
I get the viewport entity list on that particular layout and try to figure out what the extremes of the view, but I can't. I know that group 10 is the center of viewport, but I need angles (the display box to understand), to be able to select the entities of viewport in the model.
Can some gurus tell me?