Properties written to Base Objects appear in the viewer correctly, but bringing them into GH (Mac) they all render as the, I guess, .NET primitive type name… ¯_(ツ)_/¯
Thanks! I noticed your Properties object doesn’t have a speckle_type, and I think this is causing the deserialiser to interpret it as a Dictionary instead of a Base object.
Can I ask how are these objects created? Through our .Net SDK?
Anyway, I’ll look into how to handle this things better in our side too.
Interesting indeed! As far as I remember, any Base object should be serialised with it’s speckle_type set.
I’ll ask @dimitrie since he may know more about this than I do. But I fear this may be the case. Whatever you find out let us know, as it seems something we can improve on our side one way or another.
Random suggestion, have you tried detaching the properties object?
I think its a mix of you forcing our limits and us not having a clear strategy when it comes to Dictionaries (I know dim would like to rewire the whole base object thing if he could)
The way I see it, this is not really our fault , as it’s Grasshopper the one that lacks Dictionary support. But that being said, I would gladly add a conversion from Dict to Base on these cases, to prevent the user from ever experiencing this on the GH side.
I’m assuming you’re happy with your dictionaries deserialising correctly, you just wish we’d handle them better. Right?
Lol, i would indeed! haha go complain to the Rhino forum hahah
Now seriously, if you want to avoid this from your side right now, you could replace your Dictionary<string, object> with a Base object instead, that should make the whole thing work like a charm!
Anyway, its nice that you bring this up, we’re going to try to improve the developer experience and all this small cases do matter!