engiGetEntityCount

...

Syntax

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

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

Property model

Size: 64 bit / 8 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(__int64 model)
{
    __int64 i = 0, cnt = engiGetEntityCount(model);
    while  (i < cnt) {
        char    * entityName = 0;
        __int64 ifcEntity = engiGetEntityElement(model, i);
        engiGetEntityName(ifcEntity, sdaiSTRING, &entityName);
        std::cout << "Entity  " << entityName << std::endl;
    }
}