Com Automation: attach to running (!) Rhino instance

I’m having a hard time to connect my external C# application to a running Rhino instance. All examples show how to fire up new instances of Rhino (using Activator.CreateInstance), but I want to connect to a running instance.

So far, I have found out this: because Rhino does not register in the Running Object Table (ROT), Marshal.GetActiveObject(..) does not work.

Is this possible? If so, how?

There are two ways to interface with Rhino, one using the Rhino5x64.Application program ID, the other using the Rhino5x64.Interface program ID. It looks like the former does not allow you to connect to a running Rhino instance, whereas the latter does allow you to do that.

Your summary is correct.

– Dale

1 Like