How to get Ketcher to open from a smiles code? #6193
-
Essentially, I have integrated Ketcher into a task pane in Microsoft Excel. The next step for me is to get the active cell smiles code and have Ketcher load that molecule so that I can edit it and then put it back into the active cell in reference. I opened up the dev console on both Microsoft Edge and Firefox and attempted this line: Any ideas without having to actually having to mess within Ketcher's code itself? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi @MarcoMatlock |
Beta Was this translation helpful? Give feedback.
-
By the way, could you please record small video how the integration with Excel works? Maybe we can include your project at least into our documentation, so it will be useful for other users. |
Beta Was this translation helpful? Give feedback.
Hi @MarcoMatlock
I think ketcher.setMolecule('CCCC') should work :)
So please try to pass a string to ketcher.setMolecule instead of variable CCCC which is not defined as I can see.