When our plug-in is loaded, some information on e.g. ship dimensions is written to the 3dm file using the PlugIn.WriteDocument method. When the file is opened next in Rhino, this information is read and is available in a panel, and for a host of commands that depend on it.
Now, I am writing a large set of File3dm files, each containing a variation of the ship geometry. It would be very helpful if I could write the same information to each of the files, so that when such a file is openend in Rhino that the ship dimension data is available.
I expect the data to be stored in the exact same spot that it is stored when written using PlugIn.WriteDocument. In essence, I’m trying to emulate that behaviour.
PlugIn.WriteDocument is called by Rhino when it is ready to write the data, which is when it has finished writing everything else (document user data is written at the end of the 3DM file, along with the data from every other plug-in that writes document data. I don’t see us providing a way for you to write this data yourself. It might be possible for you to write your own version using openNURBS. Might be easier to just batch process all files so your data is written.