sdaiGetEntityExtent

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

Syntax

//
//   Strong typing definition
//
SdaiAggr        sdaiGetEntityExtent(
                        SdaiModel               model,
                        SdaiEntity              entity
                    );


//
//   Weak typing definition
//
int_t   __declspec(dllexport) * __stdcall sdaiGetEntityExtent(
                                                                        int_t                   model,
                                                                        int_t                   entity
                                                                    );
    

Property model

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

Example (based on pure API calls)

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

#include    "./include/ifcengine.h"
int_t   localGetEntityExtentBN(int_t model, char * 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().
    //
    int_t   entity = sdaiGetEntity(model, entityName);

    return  sdaiGetEntityExtent(model, entity);
}