This API is currently available in C++ and Python.

std::string OEGetDesignUnitComponentName(const unsigned componentID)

This function returns the name of the OEDesignUnit component from the input componentID, whose value is assumed to be from the OEDesignUnitComponents namespace. If the input ID does not match any of the known IDs in the namespace, the function returns “unknown”.