Transition from old to new SDK (VB code in Grasshopper)

Hi all,

some years ago I created some code for a vb script component inside a grasshopper definition.
Having been away from Grasshopper for some time, I am now having problems making changes to my original script. I cannot seem to find sufficient documentation (also in the forum), neither for the old dotNET SDK, nor for the new SDK.
I first worked on making changes inside the original VB component (that came with an older Grasshopper), and if I try with the VB component coming with my current Grasshopper, the old code doesn’t work at all.

I use Grasshopper V. 0.9.0076 on Rhino 5 (SR14) for Windows.

Thanks a lot in advance!
Philipp

Hi @ph0021,

You might consider posting your code here so we can help you with your porting project.

– Dale

Thanks Dale,

I’m attaching a gh file with a simplified version of my vb component…
ph_old_vb.ghx (24.4 KB)

It’s supposed to calculate water flow down a vertical surface. What I would like to add is change of flow direction due to obstacles, and it seems I need also equivalents of ".GetClosestPoint(), .PointAt(), .DistanceTo(), etc.

Thanks!
Philipp

How about the attached?

new_vb.gh (5.6 KB)

ps. this is what I use to search the RhinoCommon SDK.

Hi David,

thanks a lot for the code and also the link to the documentation - it’s very helpful!

Philipp