.. include:: ../../toolkit-substitutions

.. oe:namespace:: OEChem

.. meta::
   :keywords: OECreateBondSmartsString

.. oe:function:: OECreateBondSmartsString

   .. attention::

      |PRELIMINARY-API|

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

      .. oe:api::

         bool OECreateBondSmartsString(std::string& str,
                                       const OEChem::OEBondBase* bnd,
                                       unsigned int bondSMARTSFlags = OESMARTSBondFlag::BondDefault,
                                       bool bExplicitDelim = false)



   .. oe:language:: python

      .. oe:api::

         OECreateSmartsBondString(OEBondBase bnd, int bondflags,
                                  bool delim = False) -> str

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

      For a specified bond, generate a SMARTS string of query qualifiers based on the specified bond's environment
      and using the constraints defined by the :oe:constns:`OEChem::OESMARTSBondFlag` namespace.

   .. oe:language:: java csharp

      This function is only provided in C++ and python.
