//   Visual Studio for Windows
void __declspec(dllexport) * __stdcall sdaiGetAttrDefinition(
            __int64 entity,
            char    * attributeName

//   Linux, OS-X and non-Visual Studio Windows solutions
void * sdaiGetAttrDefinition(
            int64_t entity,
            char    * attributeName

Property entity

Size: 64 bit / 8 byte (value)
Handle of an entity (schema item/class), for example IFCWALLSTANDARDCASE as defined in IFC4.exp.

Property attributeName

Size: 64 bit / 8 byte (reference)
Name of the attribute, for example Name of IFCROOT as defined in IFC4.exp.


Here you can find code snippits that show how the API call sdaiGetAttrDefinition can be used.

void * localGetAttrBN(__int64 instance, char * attributeName, __int64 valueType, void * value)
    //  This function is an alternative to the API call sdaiGetAttrBN()
    //  based on sdaiGetAttr().
    //  Use of sdaiGetAttr() can lead to performance improvement compared to sdaiGetAttrBN().
    __int64 instanceType = sdaiGetInstanceType(instance);
    void    * attribute = sdaiGetAttrDefinition(instanceType, attributeName);

    return  sdaiGetAttr(instance, attribute, valueType, value);