John,
The Layout is considered Viewport ID # 1. Anything greater than 1 is another viewport on that Layout Tab. The DXF number is 69. Include these two lists in your SSGET filter list for all ids greater than 1.
Code:
'(-4 . ">") '(69 . 1)
You can also included this code to eliminate viewports that are not within the sheet size of the layout.
Code:
'(-4 . ">") '(68 . 1)
HTML Code:
68 Viewport status field:
–1 = On, but is fully off screen, or is one of the viewports that is not active
because the $MAXACTVP count is currently being exceeded.
0 = Off
<positive value > = On and active. The value indicates the order of stacking
for the viewports, where 1 is the active viewport, 2 is the next, and so forth.
This is some code I have used to search for all viewports within the sheet size not including the layout for each layouttab:
Code:
(ssget "X"
(list '(0 . "VIEWPORT")
(cons 410 (getvar "ctab"))
'(-4 . ">")
'(69 . 1)
'(-4 . ">")
'(68 . 1)
)
)
Hope this helps,