Author Topic: viewport filtering  (Read 2039 times)

0 Members and 1 Guest are viewing this topic.

ronjonp

  • Needs a day job
  • Posts: 7533
viewport filtering
« on: January 13, 2006, 06:39:30 PM »
So heres the problem. I wanna use (ssget "x" '((0 . "VIEWPORT"))) to select all the vports in a drawing but it also selects the paperspace viewports. So if I had a drawing with 3 tabs with one vport per tab my total selection would pick up 6 objects. How do I filter out the pspace vport?

Thanks,

Ron

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

Jeff_M

  • King Gator
  • Posts: 4100
  • C3D user & customizer
Re: viewport filtering
« Reply #1 on: January 13, 2006, 07:44:12 PM »
Hi Ron,
The PS VP will always have the ViewportID of 1, which is found in (assoc 69). So we just filter for anything other than 1:
Code: [Select]
(ssget "x" '((0 . "VIEWPORT")(-4 . "<>")(69 . 1)))

ronjonp

  • Needs a day job
  • Posts: 7533
Re: viewport filtering
« Reply #2 on: January 15, 2006, 11:36:03 AM »
Thanks Jeff. I love this place. :)

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC