Rhinoceros 6 Type Library

I’m just starting in this field, and I hope you can assist me with my issue.

I’m attempting to create a WPF (.NET Framework) application that opens a Rhinoceros application instance, allowing the user to view or select certain elements. I would like to develop a 64-bit application, but I’m encountering errors with the COM libraries “Rhinoceros 6 Type Library” and “RhinoScript Type Library.” The error message states:

Failed to retrieve the COM class generator for the component with CLSID {1C896D49-793C-474D-A3C5-176904543BED} due to the following error: 8007045a Error in a dynamic link library (DLL) initialization routine. (HRESULT Exception: 0x8007045A).

I have checked that this doesn’t happen if I compile a 32-bit application.

Perhaps it’s not feasible to accomplish what I require, but I’m becoming frustrated as I’ve attempted various libraries, and none of them allow me to open Rhino and work with it.

Thank you in advance.

check those old samples:

and corresponding topics:

but I think it’s worth evaluating if a latest/ more modern approach like a Rhinocommon plug-in or some other developer-approaches are suited better for your needs:

kind regards -tom

Hi @Sarai,

If you have Rhino 7, then you might consider using Rhino.Inside, as old RhinoScript/COM is considered legacy.

As for COM, Rhino 6 and greater are 64-bit applications. So, your WPF application will need to be so too - not AnyCPU.

– Dale

Hi @Tom_P ,
Thank you, I 've tried it and it doesn’t work for me. I’ve also tried with “Rhino.Application.6”, as commented in that topic, but neither works.

Hi @dale , Thank you!, I’m using Rhino 6. My application is 64-bit but doesn’t work. I’ve had also tried with Rhino.Inside but I didn’t manage to open a new instance. Do you have any suggestion?

have you seen those examples ?

You’ll need Rhino 7 for this. If you don’t have, try the evaluation version.

– Dale

@dale @Tom_P
I have managed to use Rhino.Inside with the evaluation version, but I need to work with Rhino 6. Is there any way to do it with RHino 6?
Thank you!

is s Rhino 7 feature.
why do you depend on Rhino 6 ?

My coworkers ask me to work with Rhino 6.

as linked already at the top - this is your startingpoint:

I don’t need to create a Rhino plugin, I need my own application to open Rhino.

additional (legacy) info can be found in this topic:

Please review the sample @Tom_P has referenced. Ignore the plug-in portion of the sample and focus on console app, which show how to launch Rhino via ActiveX automation…

…or upgrade to V7, which is way easier…

– Dale