sdaiGetMemberCount

...

Syntax

//   Visual Studio for Windows
public:
__int64 __declspec(dllexport) __stdcall sdaiGetMemberCount(
            __int64 * aggregate
        );

//   Linux, OS-X and non-Visual Studio Windows solutions
public:
int64_t sdaiGetMemberCount(
            int64_t * aggregate
        );    

Property aggregate

Size: 64 bit / 8 byte (value)
Handle of an aggregation (i.e. sorted collection).

Examples

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

void    GetColumns(__int64 model)
{
    __int64 ifcColumnInstances = sdaiGetEntityExtentBN(model, "IFCCOLUMN"),
            noIfcColumnInstances = sdaiGetMemberCount(ifcColumnInstances);
    if  (noIfcColumnInstances) {
        for  (__int64 i = 0; i < noIfcColumnInstances; i++) {
            __int64 ifcColumnInstance = 0;
            engiGetAggrElement(ifcColumnInstances, i, sdaiINSTANCE, &ifcColumnInstance);

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