Create new CRhinoPageView and show it

Hi
i’m using the method doc->CreateRhinoPageView(); to create a new page view. It does generate a new page view, but it is not visible. I have to switch to model and back to page view to get it visible and clickable.

Do you have an example for howto use CreateRhinoPageView() correctly?

Hi @dsw,

Does this SDK sample help in any way?

– Dale

Thank you @dale for the sample.
I made it almost like this sample but my problem was not solved. So i realized it was not a problem of the page view creation.
My problem was, the viewport was not maximized and every time i moved the mouse over another view, the page view disappeared.
Now i found the snippet https://github.com/mcneel/rhino-developer-samples/blob/53f7108408fd4905e48bda566d15bd87458c7369/cpp/snippets/maximize-view.cpp
I added the code to maximize the view and that solved my problem. The solution was so easy i did not see it. :grin:

1 Like