sdaiGetEntityExtentBN

This call retrieves an aggregation that contains all instances of the entity given. Technically sdaiGetEntityExtentBN will transform into the following call

    sdaiGetEntityExtent(
            model,
            sdaiGetEntity(
                    model,
                    entityName
                )
        );

Syntax

//
//   Strong typing definition
//
SdaiAggr        sdaiGetEntityExtentBN(
                        SdaiModel               model,
                        const char              * entityName
                    );

static  inline  SdaiAggr    sdaiGetEntityExtentBN(
                                    SdaiModel               model,
                                    char                    * entityName
                                )
{
    return  sdaiGetEntityExtentBN(
                    model,
                    (const char*) entityName
                );
}


//
//   Weak typing definition
//
int_t   __declspec(dllexport) * __stdcall   sdaiGetEntityExtentBN(
                                                    int_t                   model,
                                                    const char              * entityName
                                                );

static  inline  int_t   * sdaiGetEntityExtentBN(
                                int_t                   model,
                                char                    * entityName
                            )
{
    return  sdaiGetEntityExtentBN(
                    model,
                    (const char*) entityName
                );
}
    

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 entityName

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

Example (based on pure API calls)

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

#include    "./include/ifcengine.h"
void    GetColumns(int_t model)
{
    int_t   ifcColumnInstances = sdaiGetEntityExtentBN(model, "IFCCOLUMN"),
            noIfcColumnInstances = sdaiGetMemberCount(ifcColumnInstances);
    if (noIfcColumnInstances) {
        for (int_t i = 0; i < noIfcColumnInstances; ++i) {
            char    * globalId = 0, * name = 0, * description = 0;
            int_t   ifcColumnInstance = 0;
            sdaiGetAggrByIndex(ifcColumnInstances, i, sdaiINSTANCE, &ifcColumnInstance);

            sdaiGetAttrBN(ifcColumnInstance, "GlobalId", sdaiSTRING, &globalId);
            sdaiGetAttrBN(ifcColumnInstance, "Name", sdaiSTRING, &name);
            sdaiGetAttrBN(ifcColumnInstance, "Description", sdaiSTRING, &description);
        }
    }
}