sdaiCreateAggr

...

Syntax

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

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

Property instance

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

Property attribute

Size: 64 bit / 8 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.

__int64 * localCreateAggrBN(__int64 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().
    //
    __int64 instanceType = sdaiGetInstanceType(instance);
    void    * attribute = sdaiGetAttrDefinition(instanceType, attributeName);

    return  sdaiCreateAggr(instance, attribute);
}