sdaiGetMemberCount

...

Syntax

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

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

Property aggregate

Size: 32 bit / 4 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(__int32 model)
{
    __int32 ifcColumnInstances = sdaiGetEntityExtentBN(model, "IFCCOLUMN"),
            noIfcColumnInstances = sdaiGetMemberCount(ifcColumnInstances);
    if  (noIfcColumnInstances) {
        for  (__int32 i = 0; i < noIfcColumnInstances; i++) {
            __int32 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);
        }
    }
}