sdaiGetEntityExtent

This call retrieves an aggregation that contains all instances of the entity given.

Syntax

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

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

Property model

Size: 32 bit / 4 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: 32 bit / 4 byte (value)
Handle of an entity (schema item/class), for example IFCWALLSTANDARDCASE as defined in IFC4.exp.

Examples

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

Int32 localGetEntityExtentBN(Int32 model, byte[] entityName)
{
    //
    //  This function is an alternative to the API call sdaiGetEntityExtentBN()
    //  based on sdaiGetEntityExtent().
    //
    //  Use of sdaiGetEntityExtent() can lead to performance improvement compared to sdaiGetEntityExtentBN().
    //
    Int32 entity = IfcEngine.x86.sdaiGetEntity(model, entityName);

    return IfcEngine.x86.sdaiGetEntityExtent(model, entity);
}