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

Multiple Viewports in Layout

1 REPLY 1
Reply
Message 1 of 2
GeeHaa
430 Views, 1 Reply

Multiple Viewports in Layout

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

1 REPLY 1
Message 2 of 2
Alexander.Rivilis
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).

 

 

Відповідь корисна? Клікніть на "ВПОДОБАЙКУ" цім повідомленням! | Do you find the posts helpful? "LIKE" these posts!
Находите сообщения полезными? Поставьте "НРАВИТСЯ" этим сообщениям!
На ваше запитання відповіли? Натисніть кнопку "ПРИЙНЯТИ РІШЕННЯ" | Have your question been answered successfully? Click "ACCEPT SOLUTION" button.
На ваш вопрос успешно ответили? Нажмите кнопку "УТВЕРДИТЬ РЕШЕНИЕ"


Alexander Rivilis / Александр Ривилис / Олександр Рівіліс
Programmer & Teacher & Helper / Программист - Учитель - Помощник / Програміст - вчитель - помічник
Facebook | Twitter | LinkedIn
Expert Elite Member

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