I am very new to Speckle and trying to test the value of speckle for my team’s workflow. We are building a design tool in Rhino. As a part of this, we create rhino objects with custom data saved into the User Dictionary in the attributes of a rhino object. From very simple tests of uploading simple objects, it appears that speckle does not save much user data besides the geometry and layer. Does this feature exist? to save this data? or should I be looking at building my own layer on top of speckle to export-import? I am very new and would appreciate any tips as to the best direction to proceed!
Sorry for the lack of example files, though I think this question is on a simple enough level to survive without. Thank you in advance!
Hi @JimboSlice! Okay, that probably is an oversight on our end. We’ll look into this asap. A quick question/request would be to give us a sample of the data you’re attaching to rhino objects so we can code the right thing!
Thanks, @dimitrie for such a fast replay! In the meantime, I built a simple gh script to add and view User dictionary entries on objects though I feel you have no need for this as you see the issue.
Unfortunately, User strings from our experience are much heavier than a user dictionary. In addition, we also prefer to control more tightly the data from the dictionary which is harder for a typical user to edit.
Thanks again for the support
As a general rule, we are not using nested Dictionaries at all and are storing a serialized class as a JSON on the object which we can look out with our design tool and instantiate the appropriate class.
Okay, just had a quick chat with @AlanRynne and we’re working on a fix - it should be fast. Thanks for the script, i’ll use it to debug what we’re doing right now
Last question: this currently works only when sending data from Rhino. I suspect you’d want this to work regardless of wether it’s coming from Gh or Rhino, no?
Fantastic! I will try this out when I have a moment. In general, we are trying to remove GH from our workflow so for our case, Rhino is perfect. I could easily imagine where GH could also be incredibly helpful but for us, this is enough! Thanks, Dimitrie
Hi @dimitrie , It may be that I simply am ignorant of the workflow as I have just picked up speckle but I am having trouble seeing the ‘meta’ data on my rhino object. So please forgive, if this is just a simple issue. I have tried receiving the object from your stream ‘simple props’ that you refer to in your answer. When I receive the geometry and check for any User dictionary entries I cannot find any. Is this just a matter of waiting until the next update? Thanks in advance
No worries! We have yet to push an update unfortunately - that’s why stuff is as it was on your end. I’ll coordinate with Alan on what we can push and when, and we’ll circle back here.
Just writing to let you know we just released version 2.2.8-beta for the Rhino connector. You should see it in the Speckle Manager in a couple minutes if everything goes well.
This adds support for user dictionaries, but do let us know what you think about it and if there’s any improvements to be made!
I was under the impression that userDictionaries and userStrings were already converted to Base on the Rhino side of things.
Maybe it was just the UserDictionary? Just came back from vacation so I’ll have to get my brain working first.
I can also add a conversion routine from Dictionary<string, object> to Base to ease the pain a bit, but I don’t think we’ll ever “add direct support for dictionaries” in GH, as this is mostly a shortcoming on Grasshopper’s side.