2D/3D Structure Display Short Answer

Question types ::: qtype_easyostructure
Maintained by Carl LeBlond
Short answer question type in which the teacher can easily build 2D/3D structures in Marvin Sketch and display in Marvin View. Requires Marvin Applets from Chemaxon.
Latest release:
16 sites
5 fans
Current versions available: 1


This software is no longer maintained and has been superseded by the OpenOChem LTI Assessment System.

The 2D/3D Structure Display short answer question type is a short answer
question with MarvinSketch for building question content and MarvinView for
displaying question content. Anything that you can construct in MarvinSketch
can be easily used in short answer questions.
You can ask questions such as;
  • Are the two chlorine groups in the following structure cis or trans?
  • What is the name of the following reaction?
  • Does this structure have R or S absolute stereochemistry?


  • Interactive - students can rotate molecules in 3D.
  • instructor builds molecules and reactions with simple editor (Marvin Sketch)
  • Different display options include line bond, normal (Lewis structure like) and 3D Ball and Stick.
  • Structures can be optimized in 2D and 3D before display.


This plugin adopts the same license that Moodle does.  The Marvin Applets are free for academic purposes.


This plugin was developed at the Indiana University of Pennsylvania (IUP).  Neither IUP or Carl LeBlond are affiliated with Chemaxon.


This plugin requires Marvin Applets from Chemaxon which can be downloaded here.  Download the full package and install it at your web servers root directory.


Example questions are provided as a Moodle xml file in the examples folder. (coming soon)


This plugin is part of set EasyOChem.


Screenshot #0
Screenshot #1


Carl LeBlond (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS


  • Anthony Borrow
    Tue, Apr 8, 2014, 12:53 PM

    Many thanks for sharing this plugin with the Moodle community.

    I was successfully able to install the plugin and it appears to function as expected; however, I did not do much testing with Marvin and the applets seemed to cause some pretty serious lag on my system but that may just be the way I have java configured on my system. I am not sure how comfortable I would be installing java on a production server - at the very least it opens up another possible vulnerability point. I would classify it as a security concern and would recommend caution. It would be nice if the location of the marvin code could be a setting that could be modified via the user interface.

    Please provide a documentation URL. You are welcome to create your documentation in Moodle Docs, See http://docs.moodle.org/dev/Plugin_documentation for more information.

    Peace - Anthony
  • Wed, Apr 9, 2014, 12:54 AM
    Anthony - I added an admin setting so admins can set the path to their marvin install and added a documentation url. I will alos make these changes to the other Marvin Applet based qtypes I've submitted.

    Chemaxon has released a javascript version which should alleviate some of the security concerns, but it currently is limited in features. When Chamaxon's javascript version becomes more stable and has good feature set, I plan to rewrite this qtype to use it.
    Thanks! - Carl
  • Anthony Borrow
    Wed, Apr 9, 2014, 5:45 AM
    Carl - Many thanks for providing an option to set the path to Marvin. Hopefully the javascript version gets added soon enough; however, keep in mind that the js will need to have a GPL compatible license to be uploaded to Moodle plugins. Peace - Anthony
  • Anthony Borrow
    Wed, Apr 9, 2014, 8:01 AM
    It is encouraged to follow Moodle's coding style as outlined in:


    Tthe code checker plugin can be quite helpful in fine tuning your code and can be found at:


    You may wish to consider using that tool to further improve your plugin although most of these appear to be rather insignificant. In any case, below are the initial results:

    question/type/easyostructure/lib.php - 1 error(s) and 0 warning(s)
    question/type/easyostructure/renderer.php - 3 error(s) and 0 warning(s)
    question/type/easyostructure/edit_easyostructure_form.php - 4 error(s) and 0 warning(s)
    question/type/easyostructure/question.php - 1 error(s) and 0 warning(s)
    question/type/easyostructure/lang/en/qtype_easyostructure.php - 1 error(s) and 0 warning(s)
    question/type/easyostructure/easyostructure_script.js - 50 error(s) and 0 warning(s)
    question/type/easyostructure/backup/moodle2/backup_qtype_easyomech_plugin.class.php - 1 error(s) and 0 warning(s)
    question/type/easyostructure/backup/moodle2/restore_qtype_easyomech_plugin.class.php - 1 error(s) and 0 warning(s)
    question/type/easyostructure/backup/moodle1/lib.php - 1 error(s) and 0 warning(s)
    question/type/easyostructure/db/upgradelib.php - 1 error(s) and 0 warning(s)
    question/type/easyostructure/version.php - 1 error(s) and 0 warning(s)
    question/type/easyostructure/module.js - 1394 error(s) and 0 warning(s)
    question/type/easyostructure/settings.php - 2 error(s) and 1 warning(s)
    question/type/easyostructure/questiontype.php - 1 error(s) and 0 warning(s)
    question/type/easyostructure/README.txt - 1 error(s) and 0 warning(s)
    Total: 1463 error(s) and 1 warning(s)
  • Wed, Apr 9, 2014, 8:26 AM
    Anthony - I uploaded new version with cleaned up code styling for the php files. The module.js contains a function that has been minified and therefore gives significant style errors. Not sure what I can do about that. Thanks! Carl
  • Germán and Temudgin
    Sat, Apr 19, 2014, 10:31 PM
    A Moodle Docs page was added at http://docs.moodle.org/26/en/2D/3D_structure_display_short_answer

    This question type add-on was added to the list at http://docs.moodle.org/26/en/Third-party_question_types
  • Fri, Dec 16, 2016, 7:28 PM
    I was effectively ready to introduce the module and it seems to work of course.
    Though, I didn't do much testing with Marvin and the applets appeared to bring about some really genuine slack on my framework however that may simply be the way I have java designed on my framework.
    I am not certain how agreeable java would be on a generation server cheapessaywriter.net and would order it as a security concern and would suggest alert. It would be decent if the area of the marvin code could be a setting that could be adjusted by other means.
  • Tue, May 2, 2017, 9:55 PM
    Well u have describe this very well, looking forward to see more things like this thanks mmorpg games
  • Sat, May 6, 2017, 4:27 PM
    Different regions in the world observe Mother’s day on different dates. It is most commonly celebrated in the months of March Happy Mother’s Day 2017 Happy Mothers Day 2017 WishesHappy Mothers Day 2017 Poems
  • Mon, May 8, 2017, 2:05 PM
    Great post. Thanks for Posting. Its very impressive and interesting. when is memorial day 2017memorial day quotes for soldiersmemorial day pictures images
  • Mon, May 8, 2017, 2:05 PM
Please login to post comments