Setting Viewport Titles
Windows only
Problem
You would like to change the name, or title, or a viewport using the the Rhino C/C++ SDK. For example, you would like to rename the “Front” viewport to say “Facade.”
Solution
To change the title of a viewport, use CRhinoViewport::SetName
. A Rhino view contains a “main viewport” that fills the entire view client window. To get a view’s main viewport, you can call CRhinoView::MainViewport
.
For example:
CRhinoView* view = RhinoApp().ActiveView();
if (view)
view->MainViewport().SetName("Facade");