sdaiCreateAggr
Syntax
public const string enginedll = @"engine.dll"; [DllImport(enginedll, EntryPoint = "sdaiCreateAggr")] public static extern Int32 x86_sdaiCreateAggr(Int32 instance, Int32 attribute); [DllImport(enginedll, EntryPoint = "sdaiCreateAggr")] public static extern Int32 x64_sdaiCreateAggr(Int64 instance, Int64 attribute); public static Int32 sdaiCreateAggr(Int64 instance, Int64 attribute) { if (IntPtr.Size == 4) { var _result = x86_sdaiCreateAggr((Int32)instance, (Int32)attribute); return _result; } else { return x64_sdaiCreateAggr(instance, attribute); } }
Property instance
Size: 32 bit / 4 byte (value)Property attribute
Size: 32 bit / 4 byte (reference)
Example (based on pure API calls)
Here you can find code snippits that show how the API call sdaiCreateAggr can be used.
using RDF; // include at least engine.cs within your solution Int64 localCreateAggrBN(Int64 instance, string 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 = ifcengine.sdaiGetInstanceType(instance), attribute = ifcengine.sdaiGetAttrDefinition(instanceType, attributeName); return ifcengine.sdaiCreateAggr(instance, attribute); }