.NET

Reply
Contributor
andy_pu
Posts: 16
Registered: ‎01-21-2014
Message 1 of 4 (180 Views)

Create viewport in PaperSpace like a current view in Modelspace

180 Views, 3 Replies
03-04-2014 06:25 AM

Hello!!

How to setup viewport in Paperspace like a current view in Modelspace?

Thanks!!!

Valued Contributor
architectOfIdeas
Posts: 75
Registered: ‎08-10-2007
Message 2 of 4 (167 Views)

Re: Create viewport in PaperSpace like a current view in Modelspace

03-04-2014 07:39 AM in reply to: andy_pu

Here's an example of how to create paperspace viewports.

 

Can you explain a bit more about what you mean by 'view'?

 

Did you simply want to show a specific object or location in the viewport? Or do you have a saved view, like one defined with the VIEW command, that you want to represent in the viewport?

Contributor
andy_pu
Posts: 16
Registered: ‎01-21-2014
Message 3 of 4 (145 Views)

Re: Create viewport in PaperSpace like a current view in Modelspace

03-04-2014 10:09 PM in reply to: architectOfIdeas

Thanks for example! By "view" I mean standart view from view manager(command "view"). I need to change view direction in current active viewport on Paperspace when I change view direction in modelspace. I change view direction in modelspace by my function so I can handle that event.

(sorry for my English)

Valued Contributor
architectOfIdeas
Posts: 75
Registered: ‎08-10-2007
Message 4 of 4 (124 Views)

Re: Create viewport in PaperSpace like a current view in Modelspace

03-05-2014 07:52 AM in reply to: andy_pu

In the viewport class, you have a couple methods that can help you out.

 

If you're dealing with a standard orthographic view, you could use the Viewport.SetViewDirection method. But if you require a custom view within the viewport, you could define the custom UCS and set it using Viewport.SetUcs.

 

 

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Need installation help?

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