Re: [Open Babel] Generate svg with implicit hydrogens

2013-04-16 Thread Quentin Delettre
. Hope it will help others. Le 14/04/2013 15:39, Noel O'Boyle a écrit : -xd is conv.AddOption("d", c.OUTOPTIONS) -d is molecule.OBMol.DeleteHydrogens() (or mol.removeh()) We should document this, to make it easier to translate from obabel options to code. - Noel On 12 April 2013

[Open Babel] Generate svg with implicit hydrogens

2013-04-14 Thread Quentin Delettre
Hi, I would like to generate svg for a molecule, inside a python script. I use this code |...| |c = ob.OBConversion()|| ||c.SetOutFormat("svg")|| ||c.AddOption("d", c.OUTOPTIONS, "1")|| ||c.WriteFile(molecule.OBMol,"molecule.svg")| but can't find the way to obtain the molec