.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Is a viewport paperspace?

1 REPLY 1
Reply
Message 1 of 2
Anonymous
414 Views, 1 Reply

Is a viewport paperspace?

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
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: Anonymous

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost