How to get mol file from mview html source page?

User b0a6205512

24-02-2011 15:28:28

hi, 


below is part of a html source file, it launches marvinview and shows pictures.


 


mview_name = "MView";


 mview_param("mol","\n  ChemDraw09240912582D\n\n 36 35  0  0  0  0  0  0  0  0999 V2000\nkl+U3VCV60\nSgTVgJxU60\nBbyV    Fd5V60\npvUWgJxU60\nnOwWuMJV60\nFlSXFd5V60\nDEuXPEQV80\nT2wTcHoV60\n0RbTQkDW60\n0RbTC5mW60\nIW6TMi4X60\n1+dVcHoV60\nVB2    VcHoV60\nb8gUgIAW60\nmGZU8fiW60\n2M4UXqzW60\n2M4U4dZX80\nkl+U688X80\nD6XVXqzW60\n5--Vw-EX60\nrQ3WPMnX60\nZLYW26-X60\nXq    zWq2dX60\nXqzWMi4X80\n1+dVlTRW80\nsrkVLKeY80\nHYaVZz5Y60\nVB2V26-X80\nKBWXDEuX80\n0bQYS7RT60\nkVvYrIiT70\nIG1XdfEU80\nF    lSXiqVU60\n+fxXdfEU60\n+fxXrIiT60\nKBWXhhNT80\n10201\n10D01\n20301\n30401\n40501\n50601\n60701\n60X01\n80901\n90A01\nA0    B01\nA0G01\nC0D01\nD0E01\nE0F01\nF0G01\nF0I01\nG0H01\nI0J01\nJ0K01\nJ0P02\nK0L01\nL0M01\nL0R01\nM0N01\nN0O01\nN0T02\nQ0    R02\nR0S01\nU0V01\nU0Z01\nW0X01\nX0Y01\nY0Z01\nZ0a01\nM  END\n");


mview_param("implicitH", "off");


mview_end();


I guess that marvinview uses second line of above to draw the molecular, which can be exported to other formats. Now i'm in a situation that i have the code (which is like second line above), how can i export it to the mol file?? Is there any mview_param("...") parameters i can use to have it automatically save to the file format I need?

My marvin verson is the latest one!

thanks very much!!!



 

ChemAxon 7c2d26e5cf

25-02-2011 16:31:54

Please see the following applet example.


Import/export of built-in and user defined molecule formats in JavaScript


You can do the same in MarvinView, just use JMView.getM(int,String) method instead of JMSketch.getMol(String).