Lone Pairs for Image Export?

User 44bb556150

27-07-2007 22:41:57

Can we get a lone pairs visualization option for the image export API? None is listed under the common available export options:





http://www.chemaxon.com/marvin/doc/user/images-doc.html#image





It's clearly possible since the MarvinView applet itself can do it and a respective function exists in chemaxon.marvin.util.MolPainterCommon. I tried hacking my own version of PngExport (attached) to achieve the effect, but got a Java SecurityException since my class isn't an official, signed part of the Marvin jar.





It should just be a matter of editing





chemaxon.marvin.modules.ImageExport


- parseOption: Add another option check for a "lonepairs" option


- initPainter: Use the above parsed option to actually set the respective attribute on the MolPainterCommon





Using Marvin 4.1.10

User f359e526a1

28-07-2007 11:38:04

No problem, it can be included, the next minor release (sometime before the end of August) will be able to include lone pairs.

User 44bb556150

23-08-2007 18:49:47

I noticed that Marvin 4.1.12 just came out. Did this change (lone pairs option for image export) make it in there, or will that be in a future release? I didn't see it mentioned in the version history or documentation.

ChemAxon 7c2d26e5cf

24-08-2007 15:20:15

No, it is not ready yet. We will inform you when this option is implemented.

ChemAxon 7c2d26e5cf

20-01-2008 10:54:09

Image export option for displaying lone pairs is implemented. It will be available in next release (5.0.1).

User 44bb556150

10-10-2008 01:06:22

This feature was working in 5.01, but it appears to longer be supported in 5.1? Adding the "lp" image export option does not crash the image generator, but it seems to effectively ignore it now.

ChemAxon 7c2d26e5cf

13-10-2008 11:14:31

Can you show an example?


We have checked image export option but we have not found any problem. Lone pairs displayed arond the atoms if "lp" option was given.


Code:
molconvert png:lp lp.mrv -o lp.png

User 44bb556150

13-10-2008 18:40:00

I tried it again, even with the molconvert example provided, and the system still seemed to ignore the "lp" option. This was using Marvin version 5.1.1. I just tried downloading version 5.1.2 instead however, and this version does seem to work as expected.