sdaiCreateAggrBN

...

Syntax

//   Visual Studio for Windows
public:
__int64 __declspec(dllexport) * __stdcall sdaiCreateAggrBN(
            __int64 instance,
            char    * attributeName
        );

//   Linux, OS-X and non-Visual Studio Windows solutions
public:
int64_t * sdaiCreateAggrBN(
            int64_t instance,
            char    * attributeName
        );    

Property instance

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

Property attributeName

Size: 64 bit / 8 byte (reference)
Name of the attribute, for example Name of IFCROOT as defined in IFC4.exp.

Examples

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

//
//  Created result when stored as IFC:
//  #31313 = IFCPOSTALADDRESS($, $, $, $, ('RDF Ltd.', 'Main Office'), '32', 'Bankya', 'Sofia', '1320', 'Bulgaria');
//
__int64	ifcPostalAddressInstance = sdaiCreateInstanceBN(model, "IFCPOSTALADDRESS");

__int64	* addressLines = sdaiCreateAggrBN(ifcPostalAddressInstance, "AddressLines");
sdaiAppend((__int64) addressLines, sdaiSTRING, "RDF Ltd.");
sdaiAppend((__int64) addressLines, sdaiSTRING, "Main Office");

sdaiPutAttrBN(ifcPostalAddressInstance, "PostalBox", sdaiSTRING, "32");
sdaiPutAttrBN(ifcPostalAddressInstance, "Town", sdaiSTRING, "Bankya");
sdaiPutAttrBN(ifcPostalAddressInstance, "Region", sdaiSTRING, "Sofia");         //  It is allowed to mix sdaiUNICODE and sdaiSTRING
sdaiPutAttrBN(ifcPostalAddressInstance, "PostalCode", sdaiUNICODE, L"1320");    //  as long as each call is consitent in itself.
sdaiPutAttrBN(ifcPostalAddressInstance, "Country", sdaiSTRING, "Bulgaria");