sdaiOpenModelBNUnicode

This function opens the model on location fileName.
Attribute repository will be ignored, they are their because of backward compatibility.
A handle to the model will be returned, or 0 in case something went wrong.

Syntax

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

[DllImport(enginedll, EntryPoint = "sdaiOpenModelBNUnicode")]
public static extern Int64 x86_sdaiOpenModelBNUnicode(Int32 repository, string fileName, string schemaName);

[DllImport(enginedll, EntryPoint = "sdaiOpenModelBNUnicode")]
public static extern Int64 x64_sdaiOpenModelBNUnicode(Int64 repository, string fileName, string schemaName);

public static Int64 sdaiOpenModelBNUnicode(Int64 repository, string fileName, string schemaName)
		{
			if (IntPtr.Size == 4)
			{
				var _result = x86_sdaiOpenModelBNUnicode((Int32)repository, fileName, schemaName);
				return _result;
			}
			else
			{
				return x64_sdaiOpenModelBNUnicode(repository, fileName, schemaName);
			}
		}

[DllImport(enginedll, EntryPoint = "sdaiOpenModelBNUnicode")]
public static extern Int64 x86_sdaiOpenModelBNUnicode(Int32 repository, string fileName, byte[] schemaName);

[DllImport(enginedll, EntryPoint = "sdaiOpenModelBNUnicode")]
public static extern Int64 x64_sdaiOpenModelBNUnicode(Int64 repository, string fileName, byte[] schemaName);

public static Int64 sdaiOpenModelBNUnicode(Int64 repository, string fileName, byte[] schemaName)
		{
			if (IntPtr.Size == 4)
			{
				var _result = x86_sdaiOpenModelBNUnicode((Int32)repository, fileName, schemaName);
				return _result;
			}
			else
			{
				return x64_sdaiOpenModelBNUnicode(repository, fileName, schemaName);
			}
		}

[DllImport(enginedll, EntryPoint = "sdaiOpenModelBNUnicode")]
public static extern Int64 x86_sdaiOpenModelBNUnicode(Int32 repository, byte[] fileName, string schemaName);

[DllImport(enginedll, EntryPoint = "sdaiOpenModelBNUnicode")]
public static extern Int64 x64_sdaiOpenModelBNUnicode(Int64 repository, byte[] fileName, string schemaName);

public static Int64 sdaiOpenModelBNUnicode(Int64 repository, byte[] fileName, string schemaName)
		{
			if (IntPtr.Size == 4)
			{
				var _result = x86_sdaiOpenModelBNUnicode((Int32)repository, fileName, schemaName);
				return _result;
			}
			else
			{
				return x64_sdaiOpenModelBNUnicode(repository, fileName, schemaName);
			}
		}

[DllImport(enginedll, EntryPoint = "sdaiOpenModelBNUnicode")]
public static extern Int64 x86_sdaiOpenModelBNUnicode(Int32 repository, byte[] fileName, byte[] schemaName);

[DllImport(enginedll, EntryPoint = "sdaiOpenModelBNUnicode")]
public static extern Int64 x64_sdaiOpenModelBNUnicode(Int64 repository, byte[] fileName, byte[] schemaName);

public static Int64 sdaiOpenModelBNUnicode(Int64 repository, byte[] fileName, byte[] schemaName)
		{
			if (IntPtr.Size == 4)
			{
				var _result = x86_sdaiOpenModelBNUnicode((Int32)repository, fileName, schemaName);
				return _result;
			}
			else
			{
				return x64_sdaiOpenModelBNUnicode(repository, fileName, schemaName);
			}
		}    

Property repository

Size: 64 bit / 8 byte (value)
Ignore this attribute, the value will be ignored in the current implementation, present for backwards compatibility.

Property fileName

Size: 64 bit / 8 byte (reference)
The file name of the file as available in the file system in Unicode (wchar_t *). The given wchar_t array will not be adjusted. The size of each wchar_t element is depending on the OS, both 16 bit/2 bytes wchar_t elements as well as 32 bit/4 byte wchar_t elements are recognized and supported.

Property schemaName

Size: 64 bit / 8 byte (reference)
The file name of the file as available in the file system in Unicode (wchar_t *). The given wchar_t array will not be adjusted. The size of each wchar_t element is depending on the OS, both 16 bit/2 bytes wchar_t elements as well as 32 bit/4 byte wchar_t elements are recognized and supported.