Grasshopper

algorithmic modeling for Rhino

this is the screencapture of "Grasshopper Primer 2nd",this example is written in vb,but i try it in the latest version of Grasshopper,it cannot work.and i really want to know is: how can i do the same things in C# script?

thank you very much in advance!

Views: 442

Replies to This Discussion

This web site works great for converting code between VB.NET and C#

http://www.developerfusion.com/tools/convert/vb-to-csharp/

thank you!!!

in fact,the first line of this vb cannot work!!!!

I think it because of the older version!

who can tell me how to do it in now version?

thank you!

Hi Andrea

I think we need to look at this in a slightly different light here.

Your question is less about C# or Vb.Net, and more about the referenced geometry library. You see, there are Legacy C# and Vb.Net components in which the code above works, because these component reference the old .Net SDK.

The new library used in the new, non-legacy, components is called RhinoCommon.

In this file, the same operation is executed in these four cases, and, of course, Python.

Cheers,

- Giulio
________________
giulio@mcneel.com

Attachments:

thank you very much Giolio!i have tried your gh document and understand!

best regards!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service