Grasshopper

algorithmic modeling for Rhino

..how do you in Rhinocommon get an objects ID?...from a reference curve in grasshopper..is it only possible with the ID component? within grasshopper

 

best,

Views: 2368

Replies to This Discussion

Hi Thiru,

 

Once you convert the Grasshopper curve to a Rhino.Geometry.Curve that information is gone. So yes, from within a VB/C# script component you cannot find the id of a curve, you need to use the Guid parameter. 

 

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Oki thx David!, but the guid parameter, is getting the guid..from the referenced..curve parameter...Is this done within Rhinocommon?

In Grasshopper everything is done with RhinoCommon and .NET.

 

The Guid parameter gets the real data type, namely GH_Curve. GH_Curve contains a Guid field so it knows whether it came from a Rhino curve. Once a GH_Curve goes into a Script component, it converts itself into a Rhino.Geometry.Curve and you lose the Guid.

 

--

David Rutten

david@mcneel.com

Poprad, Slovakia

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service