algorithmic modeling for Rhino
Hello all,
this might be a silly question, but is there a quick and easy way to retrieve the GUID of an object in Rhinocommon? A curve or a point for example?
I guess they are only assigned once added to the document? But does the geometry store its GUID? Is there a simple way of determining it I'm not seeing, something like...
Point3d pt;
Guid guid = pt.Id;
//points have no .Id property!
How else can I get the guid of an object?
Many thanks for any pointers!
D
Tags:
Hi Daniel,
The guid is a property on every RhinoObject. Every RhinoObject has another Property "Geometry" that is assigned with GeometryBase information. In your case a Point3d Type information.
Once you reference a geometry to GH you can access the Guid at the beginning of your GH script and pass it trough your various calculations. Simply connect a Guid node to your referenced Geometry.
After any manipulation, of the originally referenced Point from Rhino, it will loose the Guid and subsequently other Rhino informations and it`s pretty hard to find the right guid again. So i would try to keep your Guid from the beginning in your script.
Of course this is the easy way and there many other ways to get the guid from points afterwards but hope this helps you. Maybe place an example on what you`re doing and i can give you some info for guidkeeping in your special case.
best wishes
FF
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