How to getSmiles() in js with version 2.4.1? #1286
-
Hi, I am trying to export current structure as a SMILES string in js with version 2.4.1.
With version 2.4.1 (standalone), I have the following error: 'Uncaught TypeError: ketcher.getSmilesAsync is not a function' Can you let me know how to proceed with version 2.4.1 ? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Dear @dboeglin , in scope of release 2.4 API of Ketcher has been reworked, to get SMILES you need to use the following code:
Regards, |
Beta Was this translation helpful? Give feedback.
Dear @dboeglin ,
in scope of release 2.4 API of Ketcher has been reworked, to get SMILES you need to use the following code:
ketcher.getSmiles().then((res) => console.log(res))
Regards,
Andrei