Select named View to display in paper space viewport

Select named View to display in paper space viewport

Anonymous
Not applicable
1,835 Views
4 Replies
Message 1 of 5

Select named View to display in paper space viewport

Anonymous
Not applicable

Hello all,

 

I have created a named View in model Space that I would like to set as current in a paper space viewport (PViewport object in AutoCAD VBA). The thing is I'm clueless as to how I can achieve this. I've unsuccessfully searched the internet for a solution for days. Note: I don't want to use SendCommand. 

0 Likes
1,836 Views
4 Replies
Replies (4)
Message 2 of 5

maratovich
Advisor
Advisor

Use this:

---------------------------------------------------------------------
Software development
Automatic creation layouts and viewport. Batch printing drawings from model.
www.kdmsoft.net
0 Likes
Message 3 of 5

Anonymous
Not applicable

That software of yours is really cool, but I'm after the solution to implement it myself in my own program. Guidance would suffice. Thank you. 

0 Likes
Message 4 of 5

Ed__Jobe
Mentor
Mentor

The first part of the video showed how you can just use the view command. "-VIEW Restore ViewName". The second part showed his software. However, since 2018.1 there is a new option of the MVIEW command that places a viewport using a named view or creates a new view to use. See the context-sensitive Layout ribbon.

 

 

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes
Message 5 of 5

Anonymous
Not applicable

Thanks for your reply. I was aware of the -View + Restore command but I have to stay away from SendCommand because my code continues after the selection of the view and it might cause trouble, right? I was once told that SendCommand had only to be used at the very end of the code.

 

Isn't possible to set the view through code in the PViewport then?

 

Thanks for your video and the MView command 🙂 

0 Likes