Wait interface Redraw

Hello

I have a class that I use with my skin, basically do this:

RhinoApp.RunScript("_-New _None", false); // Open New Document
Rhino.RhinoApp.RunScript("_ViewportTabs _Hide=Yes  ", false); // Hide Tabs
Rhino.RhinoApp.RunScript("_SetDisplayMode  _Viewport=Active _Mode=Ghosted _Enter", false);
Rhino.RhinoApp.RunScript("_Grid  _ShowGrid=No _Enter", false);// Hide a Grid
Rhino.RhinoApp.RunScript("_Gumball _Off=Yes", false);
RhinoApp.RunScript("_PrintDisplay _State=On _Color=Print _Enter", false);

Whenever rhino opens a new document, always shows the construction of the viewports, there is an equivalent command to “RhinoDoc.ActiveDoc.Views.RedrawEnabled = false;”? to only show document
after fininsh the construction.

Thanks

_SetRedrawOff
_SetRedrawOn

http://docs.mcneel.com/rhino/6/help/en-us/index.htm#commands/setredrawoff.htm

thank you @Mahdiyar,

_SetRedrawOff / _SetRedrawOn is the same that “RhinoDoc.ActiveDoc.Views.RedrawEnabled = false;”,
this dont work on open new document, I need something to not show the frist constuction of viewports.

Thanks

Hi @MatrixRatrix,

I don’t know of a way of hiding the viewport creation, other than to display some windows or empty bitmap on top until the viewport creation has finished.

– Dale

Thanks @dale

I think that solve, How I can do that?