public const string IFCEngineDLL = @"IFCEngine.dll";

[DllImport(IFCEngineDLL, EntryPoint = "sdaiCreateInstance")]
public static extern Int64 sdaiCreateInstance(Int64 model, Int64 entity);    

Property model

Size: 64 bit / 8 byte (value)
Handle of the model containing the IFC file, this handle is needed in many other calls and given when the model is created.

Property entity

Size: 64 bit / 8 byte (value)
Handle of an entity (schema item/class), for example IFCWALLSTANDARDCASE as defined in IFC4.exp.


Here you can find code snippits that show how the API call sdaiCreateInstance can be used.

Int64 localCreateInstanceBN(Int64 model, byte[] entityName)
    //  This function is an alternative to the API call sdaiCreateInstanceBN()
    //  based on sdaiCreateInstance().
    //  Use of sdaiCreateInstance() can lead to performance improvement compared to sdaiCreateInstanceBN().
    Int64 entity = IfcEngine.x64.sdaiGetEntity(model, entityName);

    return IfcEngine.x64.sdaiCreateInstance(model, entity);