Iterating PS Viewports

Iterating PS Viewports

Anonymous
Not applicable
165 Views
1 Reply
Message 1 of 2

Iterating PS Viewports

Anonymous
Not applicable
Good Morning,
How do I iterate each viewport on a layout then move on to the next layout?
I know how to iterate the layouts using a For Each...Next loop on the
Layouts collection but how do I iterate the paperspace viewports on each
layout? Thanks, Scott
0 Likes
166 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Try this approach...

Public Sub IterateVP(objLayout As AcadLayout)
Dim oEnt As AcadObject
For Each oEnt In objLayout.Block
If TypeOf oEnt Is AcadPViewport Then
'do your stuff here...
End If
Next oEnt
End Sub

--
Bobby C. Jones
http://www.acadx.com
0 Likes