.NET

Reply
*Jon Rizzo
Message 1 of 2 (275 Views)

Is a viewport paperspace?

275 Views, 1 Replies
01-30-2009 07:59 AM
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
*Tony Tanzillo
Message 2 of 2 (275 Views)

Re: Is a viewport paperspace?

01-30-2009 06:24 PM in reply to: *Jon Rizzo
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
Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.