.. # split from OEDockingFunctions.rst:1062


.. oe:namespace:: OEDocking

.. meta::
   :keywords: OEWriteReceptorFile

.. oe:function:: OEWriteReceptorFile

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

      .. oe:api::

         bool OEWriteReceptorFile(const OEChem::OEMolBase& receptor,
                                  std::string filename)
         bool OEWriteReceptorFile(OEChem::OEMolBase& receptor,
                                  std::string filename)

   .. oe:language:: python

      .. oe:api:: python

         OEWriteReceptorFile(receptor: Union[OEGraphMol,OEMol,OEQMol],
                             filename: str) -> bool

   Writes a *receptor* to file *filename* 

   Returns true if successful.

   .. note::
      
      All receptor files must be in either .oeb or .oeb.gz format.

