.. oe:namespace:: OEChem

.. meta::
   :keywords: OESetOEMol

.. oe:function:: OESetOEMol

   .. oe:language:: java

      .. oe:api:: java

         boolean OESetOEMol(OEBase obj, String tag, OEMol mol)

   .. oe:language:: python

      .. oe:api:: python

         OESetOEMol(obj, tag, mol)

   .. oe:language:: csharp

      .. oe:api:: csharp

         boolean OESetOEMol(OEBase obj, String tag, OEMol mol)

   .. oe:language:: python java csharp

      Attaches a copy of the :ref:`OEMol <OEChem_OEMol>` ``mol`` to
      the :ref:`OEBase <OESystem_OEBase>` ``obj`` using the ``tag`` as
      :ref:`generic data<chapter_genericdata>`.

      .. seealso::

         * The :ref:`section_attaching_other_objects` section for example code
         * :oe:func:`OEChem::OEGetOEMol`

   .. oe:language:: c++

      This function is provided in CSharp, Java and Python wrappers and
      is not needed in C++.  Use the templated
      :oe:meth:`OESystem::OEBaseDataT::SetData` method instead.
