algorithmic modeling for Rhino
Hi all,
I am new to VB, but I have some previous experience in other scripting languages.
Now I downloaded the Rhino.NET documentation, but I find it quiet hard to use... - where can I find documentation like the one David posted in the top of this thread for example?
http://www.grasshopper3d.com/forum/topics/vb-line-between-points-or...
I'd appreciate any hints!!
Thanks!
Philipp
Tags:
First of all: Rhino.Net is outdated. The current VB components use RhinoCommon.
Then, if I get you right, you are looking for Tutorials or Examples, not documentation. There's a whole section on this forum you can browse and you can find some here
Hi Hannes,
thanks for your reply!
I'm currently using an older version of Grasshopper (0.6.0055), since I'm stuck with Rhino 4 SR5...
Also, I think I'm really looking for documentation... something like a complete catalog of available methods, etc. - but in VB syntax that works inside the script.
For now I'm always looking for examples, right, but sometimes end up not finding what I need...
The Rhino.NET SDK helpfile has code examples for C# and VB at the member level. Obviously the documentation is a basic sorted list what's in Rhino.NET, not like a "how to get started..." So it's hard to find examples if you don't know where to look.
Rhino.NET is like Rhino in code. So if you know what to do in Rhino, it's a matter of searching for what looks/sounds similar to the Rhino command or object type.
Here's a load of examles to get you started with Rhino.NET if you don't know this already.
Hi Hannes,
I can't find any code examples in the .net sdk... could you point me at where to find it?
All I get there is this sort of syntax:
Public Function CompareTo(ByRef other As IOn2dVector) As Integer
Thanks also for the other links!
Philipp
Well, that's basically all you need to know, if you are going to use a function.
You know its part if an interface(or class definition) and it returns an Integer, so you'd call it like:
Dim vec As New On2dVector(0.0, 0.0, 1.0)
Dim compareResult As Integer
compareResult = vec.CompareTo(otherVector)
While I admit, the documentation could be a little more elaborate on what each function does, the class names and methods are pretty self explaining if you know your way around Rhino and have a little experience with VB.
I suggest using the VB Express Editor to prewrite code. The editor can show tooltips with basically all the info there is in the help while you write and does additional synthax checks. You can then copy the code over to GH and run it.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by