sdaiCreateAggr

...

Syntax

//   Visual Studio for Windows
public:
__int32 __declspec(dllexport) * __stdcall sdaiCreateAggr(
            __int32 instance,
            void    * attribute
        );

//   Linux, OS-X and non-Visual Studio Windows solutions
public:
int32_t * sdaiCreateAggr(
            int32_t instance,
            void    * attribute
        );    

Property instance

Size: 32 bit / 4 byte (value)
Handle of an instance within an IFC file, for example #31313 = IFCWALLSTANDARDCASE(...)

Property attribute

Size: 32 bit / 4 byte (value)
A handle to the an attribute of a certain entity, for example attribute Name of entity IFCROOT.

Examples

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

__int32 * localCreateAggrBN(__int32 instance, char * attributeName)
{
    //
    //  This function is an alternative to the API call sdaiCreateAggrBN()
    //  based on sdaiCreateAggr().
    //
    //  Use of sdaiCreateAggr() can lead to performance improvement compared to sdaiCreateAggrBN().
    //
    __int32 instanceType = sdaiGetInstanceType(instance);
    void    * attribute = sdaiGetAttrDefinition(instanceType, attributeName);

    return  sdaiCreateAggr(instance, attribute);
}