partridgejiang / Kekule.js

A Javascript cheminformatics toolkit.
http://partridgejiang.github.io/Kekule.js
MIT License
248 stars 61 forks source link

save mol file failed #263

Closed niuzhenjiang closed 2 years ago

niuzhenjiang commented 2 years ago
let mol = this.chemComposer.getChemObj();
let molData = Kekule.IO.saveFormatData(mol, Kekule.IO.DataFormat.MOL);
Kekule.NativeServices.saveFileData(document, molData, null, {'initialFileName': 'myData.mol'});

i tryed format: Kekule.IO.DataFormat.SMILES,it can be saved .smi file. but Kekule.IO.DataFormat.MOL and Kekule.IO.DataFormat.SD format failed.i don't konw how can i fix it. please help me,thanks!