I have two short questions regarding the User Data:
What if want to have a List as a part of the UserData? Let us say List guids. How would this example look like? How would Read and Write functions look like?
Is UserData attachable only to RhinoObjects? Or can some user data be attached to an (empty) Document?
It depends: there are some methods on the
archivableDictionary class that allow for storage of collections. For example If you have a list of guid you can store it like this:
For every type not directly supported you need to do custom serialization and store them via
Userdata can be attached to
- a rhino doc
And probably even more. You can search the RhinoCommon docs classes you want to store userdata on if they have the
Hope this helps