Accessing Rhino from console app

Hi guys,

I am creating a Rhino instance via

dynamic rhinoInstance = null;
string id = "Rhino.Application";
System.Type t = System.Type.GetTypeFromProgID(id);
rhinoInstance = System.Activator.CreateInstance(t);

Is there anything useful that can be done after that? for example get access to the Rhino document and use some RhinoCommon?

For example, Excel lets you do the following:

using Excel =  Microsoft.Office.Interop.Excel;

Excel.Application objApp;
 
// Instantiate Excel and start a new workbook.
objApp = new Excel.Application();
objBooks = objApp.Workbooks;
objSheets = objBook.Worksheets;


Excel.Workbooks objBooks;
Excel.Sheets objSheets;
Excel._Worksheet objSheet;
Excel.Range range;

Reference: https://docs.microsoft.com/en-us/previous-versions/office/troubleshoot/office-developer/automate-excel-using-visual-c-fill-data

Thanks

Hi @rawitscher-torres,

You might consider running Rhino inside of Excel.

More on Rhino.Inside:

https://www.rhino3d.com/inside

– Dale