.. include:: ../substitutions

.. oe:namespace:: OEChem

.. meta::
   :keywords: OESetMMCIFData

.. oe:function:: OESetMMCIFData

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

      .. oe:api::

         bool OESetMMCIFData(OEMolBase& mol, const std::string& value)
         bool OESetMMCIFData(OEMolBase& mol, const OECIFData& cifData)

   .. oe:language:: python

      .. oe:api:: python

         OESetMMCIFData(mol: Union[OEGraphMol,OEMol,OEQMol], value: str) -> bool
         OESetMMCIFData(mol: Union[OEGraphMol,OEMol,OEQMol], cifData: OECIFData) -> bool

   Sets mmCIF metadata on a molecule. If metadata already exists,
   it is replaced with the new value.

   .. seealso::

      * :oe:func:`OEChem::OEAddMMCIFData` function to add MMCIF data
      * :ref:`section_moldata_MMCIF` section

   .. note::

      Unicode characters are not supported in either the data tag or the data value.
