Binary archive writer


(Karol Wierzbicki) #1

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:

What would be the

GelthSerialization gelth = new GelthSerialization();
gelth.X = 1;
gelth.Y = 2;
gelth.Z = 3;

gelth.Write(???)


(Dale Fugier) #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.


(Karol Wierzbicki) #3

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 Fugier) #4

You might look into user data.

https://github.com/dalefugier/SampleCsUserData


(Karol Wierzbicki) #5

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 Fugier) #6

The sample shows how to do this…


(Karol Wierzbicki) #7

Yes it does, I should have check that more carefull, thanks :smile: