After learning about the RIR code, I find it create Rhino7 Window by RhinoApp.MainWindowHandle.
But It seems useless in rhino.inside.CAD project. It turns that in cad project RhinoApp.MainWindowhandle is the handle of MainCAD window? I have no idea to find the rhino window handle Without RhinoApp.MainWindowhandle? Any one can give some suggestion? Thank you in advanced.
rhino.inside.cad project
rhino.inside.revit project
Code below also can’t get rhino handle, just get the CAD Window.
var MainWindow = Rhino.UI.RhinoEtoApp.MainWindow;
MainWindow.Visible = true;
MainWindow.WindowState = Eto.Forms.WindowState.Normal;