I am trying to modify a script that someone else wrote.
 
It gets a smiles from chemspider and then asks OpenBabel to convert it to a mol 
file. The problem is there are no 3D coordinates. I know that I have to add the 
option -get3d, but I am not sure where to insert it in the second line of code. 
Any help will be greatly appreciated.
 
Best regards
Zeno
 
    conn = httplib.HTTPConnection('www.chemspider.com')
    
conn.request('GET',"/OpenBabel.asmx/Convert?what=%s&fromFormat=%s&toFormat=%s"%(smiles,"smi","mol"))
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122912
_______________________________________________
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss

Reply via email to