.NET

Reply
Mentor
GeeHaa
Posts: 156
Registered: ‎04-14-2005
Message 1 of 2 (173 Views)

Multiple Viewports in Layout

173 Views, 1 Replies
01-04-2013 08:52 AM

Hi,

 

I wrote a program to separate drawings with multiple layouts into several drawings. The problem I'm running into is even though there is only one viewport in the layout.the program is finding two. One has the right viewcenter, width and height the other is wrong. Is there any way to tell which one is the right one.

 

Thanks in Advance

Moderator
Alexander.Rivilis
Posts: 1,449
Registered: ‎04-09-2008
Message 2 of 2 (168 Views)

Re: Multiple Viewports in Layout

01-04-2013 09:36 AM in reply to: GeeHaa

From ObjectArx Managed Docs:

 
Layout.GetViewports Method

This function returns a collection of ObjectIds of all the 
Viewports that exist in the Layout's paperspace.
The first ID in the list will be the paperspace viewport. 
If the list returned is empty, then this Layout has never been
switched to (activated).
The list is updated each time a layout is activated, 
and kept up-to-date while that layout is active
whenever viewports are added or deleted).

 

 

Пожалуйста не забывайте про Утвердить в качестве решения! Утвердить в качестве решения и Give Kudos!Баллы
Please remember to Accept Solution! Accept as Solution and Give Kudos!Kudos

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!