.NET

.NET

Reply
Contributor
19 Posts
0 Kudos
Registered: ‎01-21-2014
Post 1 of 4

Create viewport in PaperSpace like a current view in Modelspace

188 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
75 Posts
8 Kudos
Registered: ‎08-10-2007
Post 2 of 4

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
19 Posts
0 Kudos
Registered: ‎01-21-2014
Post 3 of 4

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
75 Posts
8 Kudos
Registered: ‎08-10-2007
Post 4 of 4

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