.. oe:namespace:: OEChem

.. meta::
   :keywords: OESetOEQMol

.. oe:function:: OESetOEQMol

   .. oe:language:: java

      .. oe:api:: java

         boolean OESetOEQMol(OEBase obj, String tag, OEQMol mol)

   .. oe:language:: python

      .. oe:api:: python

         OESetOEQMol(obj, tag, mol)

   .. oe:language:: csharp

      .. oe:api:: csharp

         boolean OESetOEQMol(OEBase obj, String tag, OEQMol mol)

   .. oe:language:: python java csharp

      Attaches a copy of the :ref:`OEQMol <OEChem_OEQMol>` ``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::OEGetOEQMol`

   .. 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.
