.. include:: ../substitutions

.. oe:namespace:: OEChem

.. meta::
   :keywords: OEMacroModelAtomTypes

.. oe:function:: OEMacroModelAtomTypes

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

      .. oe:api::

         bool OEMacroModelAtomTypes(OEMolBase& mol)

   .. oe:language:: python

      .. oe:api:: python

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

   This function sets the integer atom type property of every atom in a
   molecule to its MacroModel atom type.  The integer atom type indices
   are defined in the :oe:constns:`OEChem::OEMModType` namespace, and each
   atom is assigned a value using the
   :oe:meth:`OEChem::OEAtomBase::SetIntType` method.  The
   :oe:func:`OEChem::OEMacroModelAtomTypes` function returns ``false`` if any
   atom was assigned type zero, *i.e.* unknown, and returns the value
   ``true`` otherwise.

