@Markus_Erhardt wrote:
Hello,
probably because in two hours it is holiday, I don't find a method to re read a document.
In fact I have a 3dm file contained serialized object. And I would like to be able to read the document 3dm every where in my code.
To be mo precise :
the overriden Read function becomeprotected override void ReadDocument(RhinoDoc doc, BinaryArchiveReader archive, FileReadOptions options) { list.Clear(); //read the user data and push it into the singleton instance if (list.Read(archive)) {} //where archive is BinaryArchiveReader type }
The Read() function works if the plugin has been loaded and then the user ask to open some 3dm file.
Now if we take an another order :
1.Read the 3dm document
2.Load the plugin
I need to call the ReadDocument functions to deserialize the objects contained in the 3dm.file. so I need to get the archive.
How to get the BinaryArchiveReader archive ?
Posts: 2
Participants: 2