OEGetDesignUnitComponentID

Attention

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

unsigned OEGetDesignUnitComponentID(const std::string &componentName)

This function returns numeric value from the OEDesignUnitComponents namespace given the input categoryName string. It will return the OEDesignUnitComponents.Unknown constant if the input name does not match any known component ID.