engiOpenModelByStream

This function opens the model via a stream. 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 ifcenginedll = @"ifcengine.dll";

[DllImport(IFCEngineDLL, EntryPoint = "engiOpenModelByStream")]
public static extern Int32 engiOpenModelByStream(int_t repository, [MarshalAs(UnmanagedType.FunctionPtr)] WriteCallBackFunction callback, string schemaName);

[DllImport(IFCEngineDLL, EntryPoint = "engiOpenModelByStream")]
public static extern Int32 engiOpenModelByStream(int_t repository, [MarshalAs(UnmanagedType.FunctionPtr)] WriteCallBackFunction callback, byte[] schemaName);    

Property repository

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

Property callback

Size: 32 bit / 4 byte (reference)
The pointer to the function that will be called within this function. Please look at the examples how to create the callback function and how it will be called. In case this is not possible or complex there is an array call, technically the same call, however the callback function is embedded within the library.

Property schemaName

Size: 32 bit / 4 byte (reference)
The schema 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.