.. include:: ../substitutions

.. oe:namespace:: OEChem

.. meta::
   :keywords: OEAddPDBData

.. oe:function:: OEAddPDBData

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

      .. oe:api::

         bool OEAddPDBData(OEMolBase& mol, const OESDDataPair& dp)
         bool OEAddPDBData(OEMolBase& mol, const std::string& tag,
                           const std::string& value)

   .. oe:language:: python

      .. oe:api:: python

         OEAddPDBData(mol: Union[OEGraphMol,OEMol,OEQMol], dp: OESDDataPair) -> bool
         OEAddPDBData(mol: Union[OEGraphMol,OEMol,OEQMol], tag: str, value: str) -> bool

   Adds a PDB tag and value data pair to a molecule. Both the tag and
   the value must be a string.
   If an item with the same tag already exists, another item is added
   to the molecule.

   .. seealso::

      * :oe:func:`OEChem::OESetPDBData` function to set (replace) PDB data
      * :ref:`section_moltaggeddata_PDB` section

   .. note::

      Unicode characters are not supported neither in the data tag nor in the data value.
