Read binary data created by other plugin

Hello,

I would like to migrate data which was saved by another plugin. Can I find the relevant file chunk from the RhinoDoc or in other way? (I can read the file chunk saved by my own plugin easily but the tricky thing is to read it from not the same plugin where it was saved…)

The file chunk was saved by the WriteDocument(RhinoDoc doc, BinaryArchiveWriter archive, FileWriteOptions options) function.

Thanks,
Márton

Hi @marton.parlagh,

Plug-in user data is own by a specific plug-in and is not directly accessible by another plug-in. That said, it is possible to work up a solution where plug-in data can be shared with other plug-in. This involved a shared assembly which is reference by the user data-owning plug-in and other plug-ins. The Rhino SDK samples has an example of this.

SampleCsSharedData

Let me know if this helps.

– Dale

Thanks Dale,

In my case it is a bit difficult to change the code of the other plugin (it was for Rhino 5,and not easy to update it), in this case as I have understood there is no easy way to read the data of this “old” plugin right?

Márton

Hi @marton.parlagh,

The only way to read the plug-in data is from a plug-in with the same UUID and the same I/O code.

– Dale

Ok, thank you!

Márton