.. include:: ../../toolkit-substitutions

.. oe:namespace:: OEBio

.. oe:function:: OEGetDesignUnitComponentName

   .. attention::

      |TWOLANGUAGE|

   .. oe:language:: c++ java csharp

      .. oe:api::

         std::string OEGetDesignUnitComponentName(const unsigned componentID)

   .. oe:language:: python

      .. oe:api:: python

         OEGetDesignUnitComponentName(componentID: int) -> str

   This function returns the name of the :ref:`OEDesignUnit <OEBio_OEDesignUnit>` component from
   the input ``componentID``, whose value is assumed to be from
   the :oe:constns:`OEBio::OEDesignUnitComponents` namespace. If the input ID does not match
   any of the known IDs in the namespace, the function returns "unknown".

   .. seealso::

      * :oe:func:`OEBio::OEGetDesignUnitComponentID` function
      * :oe:func:`OEBio::OEGetDesignUnitComponentNamesFromMask` function
