I’m writing a custom analysis plugin that is intended to store its data in an object (the geometry of which is significant in the analysis), but I’d like this object to be inaccessible if the 3dm file is opened by a user who doesn’t have the plugin installed. Here in my early phase of development I see that if I don’t add a callback to the EndOpenDocument event that would cycle through all the objects in the document to possibly convert any custom objects (described here), the custom object is still visible as its base type.
Is it possible to have this base object not appear if the associated plugin is not loaded?
Also, I suppose the only location to store my analysis data is in a RhinoObject.Attributes.UserData entry, since this is what helps me find the data later (using Find(typeof(MyCustomUserData)) )? Perhaps not, as indicated in this thread. (Though I don’t have a compelling reason for doing it this way rather than using the UserData interface, except perhaps that the analysis data is attached only to the custom object and to no other objects.) It’s not clear to me, though, how the custom class written to the 3dm file would be found in order to be loaded again, unless the BinaryArchiveReader is only allowing access to the data created by the plugin with my own GUID? (Is this the answer to my first question above?)