.. include:: ../substitutions

.. oe:namespace:: OEChem

.. meta::
   :keywords: OEMacroModelTypeNames

.. oe:function:: OEMacroModelTypeNames

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

      .. oe:api::

         bool OEMacroModelTypeNames(OEMolBase& mol)

   .. oe:language:: python

      .. oe:api:: python

         OEMacroModelTypeNames(mol: Union[OEGraphMol,OEMol,OEQMol]) -> bool

   This function loops through the atoms of the molecule, setting the
   string atom type property of each atom, to atom type name of the
   MacroModel atom type encoded in the atoms integer atom type property.
   This is approximately equivalent to following operation:

   .. code-block:: c++

      atm->SetType(OEMacroModelTypeName(atm->GetIntType()))

   If both the string and integer atom types are required, it is faster
   to call :oe:func:`OEChem::OEMacroModelAtomTypes` and then
   :oe:func:`OEChem::OEMacroModelTypeNames` (which reuses the results of
   the first call) than it is to call
   :oe:func:`OEChem::OEMacroModelAtomTypes` and
   :oe:func:`OEChem::OEMacroModelAtomTypeNames`.

