sdaiCreateAggr

...

Syntax

public const string IFCEngineDLL = @"IFCEngine.dll";

[DllImport(IFCEngineDLL, EntryPoint = "sdaiCreateAggr")]
public static extern Int32 sdaiCreateAggr(Int32 instance, Int32 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, byte[] 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 = IfcEngine.x86.sdaiGetInstanceType(instance),
          attribute = IfcEngine.x86.sdaiGetAttrDefinition(instanceType, attributeName);

    return IfcEngine.x86.sdaiCreateAggr(instance, attribute);
}