SaveInstanceTreeA
Syntax
public const string EngineDLL = @"engine.dll";[DllImport(EngineDLL, EntryPoint = "SaveInstanceTreeA")] public static extern Int64 SaveInstanceTreeA(Int64 owlInstance, byte[] content, out Int64 size);
Property owlInstance
Size: 64 bit / 8 byte (value)Property content
Size: 64 bit / 8 byte (reference)Property size
Size: 64 bit / 8 byte (reference)
Example
Here you can find code snippits that show how the API call SaveInstanceTreeA can be used.
using Engine; ... public class OUT { public OUT(Int64 myInstance) { FileStream fs = File.Open("exportedFile.bin", FileMode.Create); Int64 size = 0; Engine.x86_64.SaveInstanceTreeA(myModel, 0, out size); byte[] buffer = new byte[size]; Engine.x86_64.SaveInstanceTreeA(myModel, buffer, out size); fs.Write(buffer, 0, (int) size); fs.Close(); } } ...