.. # split from OEDockingFunctions.rst:810


.. oe:namespace:: OEDocking

.. meta::
   :keywords: OEReceptorGetCustomConstraints

.. oe:function:: OEReceptorGetCustomConstraints

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

      .. oe:api::

         OECustomConstraints OEReceptorGetCustomConstraints(const OEChem::OEMolBase& rec)

   .. oe:language:: python

      .. oe:api:: python

         OEReceptorGetCustomConstraints(rec: Union[OEGraphMol,OEMol,OEQMol]) -> OECustomConstraints

   Returns a copy of the *receptor's* custom constraints 
 
   It is only valid to call this function if *receptor* is a valid receptor 
   (i.e., :oe:func:`OEDocking::OEIsReceptor` returns true).

