.. # split from OEDockingFunctions.rst:656


.. oe:namespace:: OEDocking

.. meta::
   :keywords: OEReceptorSetBoundLigand

.. oe:function:: OEReceptorSetBoundLigand

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

      .. oe:api::

         bool OEReceptorSetBoundLigand(OEChem::OEMolBase& receptor,
                                       const OEChem::OEMolBase& boundLigand)

   .. oe:language:: python

      .. oe:api:: python

         OEReceptorSetBoundLigand(rec: Union[OEGraphMol,OEMol,OEQMol],
                                  boundLig: Union[OEGraphMol,OEMol,OEQMol]) -> bool

   Sets the bound ligand on *receptor* to be a copy of *boundLigand*.

   Returns true if successful.

   It is only valid to call this function if *receptor* is a valid receptor 
   (i.e., :oe:func:`OEDocking::OEIsReceptor` returns true).

