engiGetEntityCount

...

Syntax

//   Visual Studio for Windows
public:
__int32 __declspec(dllexport) __stdcall engiGetEntityCount(
            __int32 model
        );

//   Linux, OS-X and non-Visual Studio Windows solutions
public:
int32_t engiGetEntityCount(
            int32_t model
        );    

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.

Examples

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

void    WriteEntities(__int32 model)
{
    __int32 i = 0, cnt = engiGetEntityCount(model);
    while  (i < cnt) {
        char    * entityName = 0;
        __int32 ifcEntity = engiGetEntityElement(model, i);
        engiGetEntityName(ifcEntity, sdaiSTRING, &entityName);
        std::cout << "Entity  " << entityName << std::endl;
    }
}