.. include:: ../substitutions

.. oe:namespace:: OEChem

.. meta::
   :keywords: OEWritePDBFile

.. oe:function:: OEWritePDBFile

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

      .. oe:api::

         bool OEWritePDBFile(oemolostream& ofs, OEMolBase& mol,
                             unsigned int flavor = OEOFlavor::PDB::DEFAULT)

   .. oe:language:: python

      .. oe:api:: python

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

   Writes the molecule as a Brookhaven PDB format file to the output
   stream 'ofs'.  A number of different PDB format variants are supported
   by the use of 'flavor' parameter from the
   :oe:constns:`OEChem::OEOFlavor::PDB` namespace.

