engiGetAttrDomainNameBN

This call can be used to get the domain of an attribute. Technically engiGetAttrDomainNameBN will transform into the following call

    engiGetAttrDomainName(
            sdaiGetAttrDefinition(
                    entity,
                    attributeName
                ),
            domainName
        );

Syntax

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

[DllImport(IFCEngineDLL, EntryPoint = "engiGetAttrDomainNameBN")]
public static extern IntPtr engiGetAttrDomainNameBN(int_t entity, string attributeName, out IntPtr domainName);

[DllImport(IFCEngineDLL, EntryPoint = "engiGetAttrDomainNameBN")]
public static extern IntPtr engiGetAttrDomainNameBN(int_t entity, byte[] attributeName, out IntPtr domainName);

public static string engiGetAttrDomainNameBN(int_t entity, out string attributeName)
        {
            IntPtr domainName = IntPtr.Zero;
            engiGetAttrDomainNameBN(entity, out attributeName, out domainName);
            return System.Runtime.InteropServices.Marshal.PtrToStringAnsi(domainName);
        }    

Property entity

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

Property attributeName

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

Property domainName

Size: 32 bit / 4 byte (reference)
The attribute that will be filled with the domain name.