Grasshopper

algorithmic modeling for Rhino

Is it possible at all or am I dreaming too much? Or would there always need to be a .NET wrapper dll to a C++ dll for it to be used directly?

Views: 812

Replies to This Discussion

Hi Suryansh,

you can call methods in unmanaged dlls using standard Interop methods (see PInvoke for a lot of examples). However the limitation is that only primitive data types can be coerced across the managed/unmanaged boundary. So you'll need to create a C++ SDK that can be used with purely primitive types. This is what we do with RhinoCommon btw. The Rhino SDK is not 'pinvokeable', so we create a pure C++ dll that exposes native Rhino SDK methods and classes in such a way that we can call them from the C# part of RhinoCommon.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Sounds awesome, and in tune with windows 8's WinRT....?

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service