engiGetEntityUniqueRuleAttributeByIterator

Iterates attributes of unique rule. Returns first attribute name if prev is NULL. Returns NULL when prev is the name of the last attribute.

Syntax

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

[DllImport(IFCEngineDLL, EntryPoint = "engiGetEntityUniqueRuleAttributeByIterator")]
public static extern IntPtr engiGetEntityUniqueRuleAttributeByIterator(int_t rule, string prev, out IntPtr domain);

[DllImport(IFCEngineDLL, EntryPoint = "engiGetEntityUniqueRuleAttributeByIterator")]
public static extern IntPtr engiGetEntityUniqueRuleAttributeByIterator(int_t rule, byte[] prev, out IntPtr domain);

public static string engiGetEntityUniqueRuleAttributeByIterator(int_t rule, out string prev)
        {
            IntPtr domain = IntPtr.Zero;
            engiGetEntityUniqueRuleAttributeByIterator(rule, out prev, out domain);
            return System.Runtime.InteropServices.Marshal.PtrToStringAnsi(domain);
        }    

Property rule

Size: 64 bit / 8 byte (reference)
???.

Property prev

Size: 64 bit / 8 byte (reference)
???.

Property domain

Size: 64 bit / 8 byte (reference)
???.