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 Int64 sdaiGetEntityExtent(int_t model, int_t entity);    

Property model

Size: 64 bit / 8 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 entity

Size: 64 bit / 8 byte (value)
...

Example (based on pure API calls)

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

using RDF;      //  include at least engine.cs within your solution

Int64 localGetEntityExtentBN(Int64 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().
    //
    Int64 entity = ifcengine.sdaiGetEntity(model, entityName);

    return ifcengine.sdaiGetEntityExtent(model, entity);
}