When I try to create a ObjectAttributes(Rhino 7) instance from a JSON string I get the following error:
Runtime error (SerializationException): Unable to read CommonObject from base64 encoded string
python sample code:
options = Rhino.FileIO.SerializationOptions()
options.WriteUserData = True
for obj in Rhino.RhinoDoc.ActiveDoc.Objects:
att_json = obj.Attributes.ToJSON(options)
python_dict = json.loads(att_json)
system_dict = System.Collections.Generic.Dictionary[str, str]()
for k, v in python_dict.items():
system_dict.Add(k, str(v))
obj_att = Rhino.DocObjects.ObjectAttributes.FromJSON(system_dict) # SerializationException