.. include:: ../substitutions

.. oe:namespace:: OEChem

.. meta::
   :keywords: OECreateSlnString

.. oe:function:: OECreateSlnString

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

      .. oe:api::

         void OECreateSlnString(std::string& str, const OEMolBase& mol,
                                unsigned int flavor = OESLNFlag::DEFAULT)

   .. oe:language:: python

      .. oe:api:: python

         OECreateSlnString(str: str, mol: Union[OEGraphMol,OEMol,OEQMol],
                           flavor: int) -> None

   Creates a *Tripos* SLN string representing a given molecule.
   Several variants of SLN format are supported by using different flavors from
   the :oe:constns:`OEChem::OESLNFlag` namespace.
