Grasshopper

algorithmic modeling for Rhino

Hello,

I've been looking around for a while, and so far I can't find any existing component that will tell me the GUID of specific Block objects in Rhino. Since Human has the best block-referencing tools I've seen so far, I was wondering if there was some way to take the "Rhino.DocObjects.InstanceObject" information from the Objects by Selection component, feed it into a magical script box that I don't yet have the knowledge to write myself, and have that output the GUIDs for those specific blocks. If so, I'd love to see an example. ;P

Views: 2224

Replies to This Discussion

Or actually, now that I'm pondering on it more, it would be fabulous to be able to obtain any geometry's GUID through the Human Objects by Selection > Object Attributes workflow, not just blocks, (though I am specifically interested in blocks.)

The attached script should let you get the GUID from any geometry passing through any of the Human reference workflows. In *most* cases you can just cast a referenced geometry type to GUID by passing it through a GUID parameter - but in the case of natively unsupported types like Blocks a little C# script is necessary. 

Attachments:

Aha, I'm glad that my suspicions were correct. Thank you very much for once again providing fast and flawless help!

RSS

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service