Hi,
Simple question again. Could you please give me a hint of how to use binary archive writer, i.e. on base of this example:
Is it possible to serialize my own classes when saving a rhino document?
Previously I have used user data to save rhino data (point3ds, curves, surfaces etc.) which mirrors my classes - by knowing what I put in I can reconstruct my classes when I get that user data out.
However now my classes are more complex, so I am saving them to my own file types using binary serialization. Is it possible to save my classes to the rhino file, and is there a best practice for doing this?
If it’s not possib…
What would be the
GelthSerialization gelth = new GelthSerialization();
gelth.X = 1;
gelth.Y = 2;
gelth.Z = 3;
gelth.Write(???)
dale
(Dale Fugier)
April 15, 2014, 3:13pm
2
Hi Karol,
Are you trying to write data to a 3DM file from a plug-in? Where is the data stored? Is it on an object?
More information would be appreciated.
sorry for curt infrmation. I use userStrings to store info on objects, but I need to keep informations, that are not connected directly with any object. It would be “property” that is used by many objects, i.e. thickness. Plate objects uses user strings, to store information, that are using this additional property.
dale
(Dale Fugier)
April 15, 2014, 3:54pm
4
Yes, I was trying this, but I will still need to save data to 3dm, and right now I can’t, I don’t know how to.
dale
(Dale Fugier)
April 15, 2014, 3:58pm
6
The sample shows how to do this…
Yes it does, I should have check that more carefull, thanks
looks like this link is broken
that is now moved to here
we have to create a sort of ‘soft links’ to resources to avoid breakage, perhaps