engiGetEnumerationValue

Allows to retrieve enumeration values of an attribute by index.

Syntax

public const string ifcenginedll = @"ifcengine.dll";

[DllImport(IFCEngineDLL, EntryPoint = "engiGetEnumerationValue")]
public static extern IntPtr engiGetEnumerationValue(int_t attribute, int_t index, int_t valueType, out IntPtr enumerationValue);

public static string engiGetEnumerationValue(int_t attribute, int_t index)
        {
            IntPtr enumerationValue = IntPtr.Zero;
            engiGetEnumerationValue(attribute, index, sdaiSTRING, out enumerationValue);
            return System.Runtime.InteropServices.Marshal.PtrToStringAnsi(enumerationValue);
        }    

Property attribute

Size: 32 bit / 4 byte (reference)
...

Property index

Size: 32 bit / 4 byte (value)
...

Property valueType

Size: 32 bit / 4 byte (value)
...

Property enumerationValue

Size: 32 bit / 4 byte (reference)
...