Hi all, I am trying to combine two molecules and each molecule respectively has some generic data. The problem is that the generic data for the *bonds* from the molecule that is being added are not being copied over. I looked into the source about how the += operator behaves in the obmol and the atom generic data gets copied just fine because of the function AddAtom(), but the bond's generic data does not copied because a brand new bond is created and the bond's generic data from the other molecule never gets requested, see link: http://openbabel.svn.sourceforge.net/viewvc/openbabel/openbabel/trunk/src/mol.cpp?revision=4677&view=markup&pathrev=4677 <http://openbabel.svn.sourceforge.net/viewvc/openbabel/openbabel/trunk/src/mol.cpp?revision=4677&view=markup&pathrev=4677>
I already have a solution, but it is not as streamlined or elegant so i wanted to if someone could point out a different route. my solution: <http://forums.openbabel.org/file/n4655930/mysolution.png> Much appreciated, -Andi -- View this message in context: http://forums.openbabel.org/Bond-generic-data-tp4655930.html Sent from the General discussion mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb _______________________________________________ OpenBabel-discuss mailing list OpenBabel-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbabel-discuss