I want to add object user data, specifically curve and point data, to a surface or BRep, and in my plug-in this data is represented by lists of curves and point3ds. I want to do this so that the user can move the surface/BRep around and save/load the document with that data intact, so that that data can be analysed using other bits of my plug-in.
I’ve looked at the UserData sample here: http://wiki.mcneel.com/developer/rhinocommonsamples/userdata. I have tried running the C# code for the UserData derived class through a C# to VB.Net converter, and have chopped it about to try to add the data I’m interested in, without success. To some extent I’m bogged down by the fact that my plug-in data is in list form, and the dictionary element of the sample doesn’t seem to support lists of curves/point3ds easily.
The page mentions using the UserDictionary as a way of storing data - is there a sample (preferably in VB.Net) somewhere showing the code/steps to utilise the dictionary? Similarly, is the UserDictionary the best way to store this data or should I continue to try to use a Custom UserData Class?
Thanks in advance.