User 797b906150
04-07-2013 16:44:32
Im a newbie to chemaxon.Im trying to do reactions using the MSketchPane. I was able to save and retrieve the compounds. But im having an issue with taking the reactants and the answer of the reaction. I have attached the file I was trying with below.How to provide the reaction rule in such situation? Please help me regarding this situation. This is what i have done.
MSketchPane pane = new MSketchPane();
pane.setMol(MoleculeProvider.getImportedMolecule());
Reactor reactor = new Reactor();
chemaxon.struc.RxnMolecule rxnMolecule = (chemaxon.struc.RxnMolecule) pane.getMol();
Molecule react1 = rxnMolecule.getReactant(0);
Molecule react2 = rxnMolecule.getReactant(1);
Molecule[] products=rxnMolecule.getReactants();