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

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

Property entity

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

Property attributeName

Size: 32 bit / 4 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(__int32 instance, char * attributeName, __int32 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().
    __int32 instanceType = sdaiGetInstanceType(instance);
    void    * attribute = sdaiGetAttrDefinition(instanceType, attributeName);

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