Skip to content

How to getSmiles() with version 2.2? #614

Answered by AndreiMazol
ixdi asked this question in Q&A
Discussion options

You must be logged in to vote

Dear @ixdi ,

This moment Ketcher is under redesign so we are focusing on code changes rather than documentation. Documentation will be updated a little bit later.

To get SMILES you need to use the following method:

getSmilesAsync(isExtended: boolean = false): Promise<string>

Example of usage:

ketcher.getSmilesAsync().then(smiFile => console.log(smiFile))

Best regards,
Andrei

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ixdi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #613 on July 08, 2021 08:09.