Grasshopper

algorithmic modeling for Rhino

Err.. this one should be easy, but I don't get it...

If I import two points into a VB component, how do I create a simple line between them?
Alternatively, how can I do a line with start point, direction, length?

Thanks everyone

Mårten

Views: 2833

Replies to This Discussion

The latest grasshopper version can be downloaded here:
http://download.rhino3d.com/en/Grasshopper/1.0/wip/rc/download/

Our developer wiki contains a bunch of Examples of DotNET code in Rhino context.

Unfortunately our SDK helpfiles are not anywhere near as good as Microsofts. It just takes far too much time to add example code into the source comments, so we're left with summary descriptions and a vague hope that our SDK is self-documenting enough to not need examples. This is certainly not true for the old SDK and almost certainly not true for anyone who isn't proficient with .NET yet.

--
David Rutten
david@mcneel.com
Poprad, Slovakia
David:

Just to clarify: Are the "Legacy" Script components in 0.7 there to handle programming in the Rhino_DotNET SDK and the new ones exclusively for RhinoCommon?

(If so, does this also imply that the "Legacy" components won't be edited out of GH releases in the near future?)

Justin
Hi Justin,

yes, the Legacy Script components use the old SDK and they allow you to load and run Scripts written in GH 0.6.X

I'll probably keep them around indefinitely, but they will never work on Rhino Mac as the old SDK is not available on that platform.

--
David Rutten
david@mcneel.com
Poprad, Slovakia

Thanks a lot David,

 

I have been looking on the RhinoCommon website for all the "transform" methods but it keeps on coming back to this page:

 

 

How could one look for specific methods and what does SerializableAttribute mean ?

 

Cheers!

Thanks a lot David for straightening this out!
The NewLine.Rotate was from the Primer (Second Edition), there was no autocomplete.

Is it generally better/faster to use vectors and planes for calculating an array of points than creating geometry to move around and rotate? (Inside a VB script).

Thanks!
It doesn't make any difference. Do whatever makes the code easiest to write/modify.

--
David Rutten
david@mcneel.com
Poprad, Slovakia

Hi Marten,

Is any of the examples from the primer using RhinoCommon?

I am struggling to find basic examples using the new SDK.

Would you know where to find basic loops or conditionals?

Greetings,

Arthur

Hi Arthur, I'm not sure. Loops work in the same way as before though. You can see an example in this script: http://www.omkrets.se/grasshopper/MN-cornu-script.zip
Ok. Thanks for helping out!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service