sdaiSaveModelAsXmlBN

This function saves the model as XML according to IFC2x3's way of XML serialization (char file name).

Syntax

public const string enginedll = @"engine.dll";

[DllImport(enginedll, EntryPoint = "sdaiSaveModelAsXmlBN")]
public static extern void x86_sdaiSaveModelAsXmlBN(Int32 model, string fileName);

[DllImport(enginedll, EntryPoint = "sdaiSaveModelAsXmlBN")]
public static extern void x64_sdaiSaveModelAsXmlBN(Int64 model, string fileName);

public static void sdaiSaveModelAsXmlBN(Int64 model, string fileName)
		{
			if (IntPtr.Size == 4)
			{
				x86_sdaiSaveModelAsXmlBN((Int32)model, fileName);
			}
			else
			{
				x64_sdaiSaveModelAsXmlBN(model, fileName);
			}
		}

[DllImport(enginedll, EntryPoint = "sdaiSaveModelAsXmlBN")]
public static extern void x86_sdaiSaveModelAsXmlBN(Int32 model, byte[] fileName);

[DllImport(enginedll, EntryPoint = "sdaiSaveModelAsXmlBN")]
public static extern void x64_sdaiSaveModelAsXmlBN(Int64 model, byte[] fileName);

public static void sdaiSaveModelAsXmlBN(Int64 model, byte[] fileName)
		{
			if (IntPtr.Size == 4)
			{
				x86_sdaiSaveModelAsXmlBN((Int32)model, fileName);
			}
			else
			{
				x64_sdaiSaveModelAsXmlBN(model, fileName);
			}
		}    

Property model

Size: 32 bit / 4 byte (value)
The handle to the model. The model handle is static during its existance. Several models can be opened simultaniously within one session. Different models are always independent, threads are allowed to be running on different models simultaniously.

Property fileName

Size: 32 bit / 4 byte (reference)
The file name of the file as available in the file system in ASCII (char *). The given char array will not be adjusted, on each OS the size of a char element is 8 bit/1 byte.