Layout.GetViewports() should return the ObjectIds
of all of them, and the first item should be the id of
the paper space viewport.
Or, look for the Viewport whose 'Number' property
equals 1.
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD 2009
Supporting AutoCAD 2000 through 2009
http://www.acadxtabs.com
Introducing AcadXTabs 2010:
http://www.caddzone.com/acadxtabs/AcadXTabs2010.htm
"Jon Rizzo" wrote in message
news:6115142@discussion.autodesk.com...
Hello,
I am writing a program that involves iterating through all of the Viewport
objects in a BlockTableRecord, such as paperspace. Now, each paperspace
layout always contains a single viewport (ie: all of paperspace), even if
there are no model space viewports cut into it. Can anybody tell me if
there is a way to determine whether a particular viewport IS paperspace
itself? I would my program to treat that type of viewport differently from
a modelspace viewport that a user added to paperspace. Any suggestions?
Jon