Save as sdf using code

User 4f3657cc2f

27-10-2009 20:05:25

I have integrated Marvin sketch on a page and removed the menu bar. I wish to get the structured saved as .SDF file. how this can be acheived using the code as We cant provide user access to menu bar.


Is it possible to save as sdf when clicked on a custom button and on execution of any code.


Thanks in advance.

ChemAxon 909aee4527

28-10-2009 06:40:32

Hi,


the example that is most similar to what you need is the following, however it uses MarvinView and a custom Open button:
http://www.chemaxon.com/marvin/examples/beans/view-simple/index.html


With MarvinSketch to implement a custom Save button, you will need to use the following API: mSketchPane.getMol("sdf")


Kind regards,
Judit