.. # split from OEDockingFunctions.rst:822


.. oe:namespace:: OEDocking

.. meta::
   :keywords: OEReceptorSetCustomConstraints

.. oe:function:: OEReceptorSetCustomConstraints

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

      .. oe:api::

         bool OEReceptorSetCustomConstraints(OEChem::OEMolBase& rec,
                                             const OECustomConstraints& cc)

   .. oe:language:: python

      .. oe:api:: python

         OEReceptorSetCustomConstraints(rec: Union[OEGraphMol,OEMol,OEQMol],
                                        arg2: OECustomConstraints) -> bool

   Sets the *receptor's* custom constraints (copied from *customConstraints*).

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

