.. include:: ../substitutions

.. oe:namespace:: OEChem

.. meta::
   :keywords: OEWriteCDXFile

.. oe:function:: OEWriteCDXFile

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

      .. oe:api::

         bool OEWriteCDXFile(oemolostream& ofs, OEMolBase& mol)

   .. oe:language:: python

      .. oe:api:: python

         OEWriteCDXFile(ofs: oemolostream, mol: Union[OEGraphMol,OEMol,OEQMol]) -> bool


   Writes the given molecule to the output molstream in ChemDraw CDX file
   format.

