You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi I'm trying to use the Ketcher API via scripts integrated into the HTML structure of the page. I'm having trouble generating queries since aromatized queries need to be used for correct matching. I tried using some methods from the various discussions open here (since there is no documentation on the API) but none of them work.
Hi I'm trying to use the Ketcher API via scripts integrated into the HTML structure of the page. I'm having trouble generating queries since aromatized queries need to be used for correct matching. I tried using some methods from the various discussions open here (since there is no documentation on the API) but none of them work.
This is the function I use:
setTimeout(function() {
ketcher = window.ketcher;
ketcher.setSettings('{"dearomatize-on-load": true}');
ketcher.editor.setOptions({ "autoAromatize": true });
ketcher.setMolecule("C1C=CC=C(Br)C=1");
}, 5000);
I expect that although it provides a Kekulè structure it will be flavored as if I used the appropriate button already present in the editor.
This however does not happen and the structure remains in the form of Kekulè.
I would like to know if what I am doing is wrong or if perhaps there are other functions that can satisfy my need.
Desktop (please complete the following information):
Ketcher version: v2.7.1
The text was updated successfully, but these errors were encountered: