UserDictionary question


I would like to ask what is the difference between these two lines?

            object_attributes.UserDictionary.Set("cut", cut);
            object_attributes.SetUserString("cut", cut);

And should I attach string to object attributes or objects themeselves?

Hi @Petras1,

The former is an ArchivableDictionary, which is implemented in RhinoCommon.

The latter is a string dictionary implemented in openNURBS.

Yes, object attributes. Data attached here tends to survive better, when compared to attaching to geometry.

– Dale

1 Like

Thank you