Lewis Structure Drawing Tool

The Lewis Structure Drawing Tool lets you create questions that require students to:

The tool uses the solutionAppletFlash answer type.

Note: For instructions on Organic Chemistry answer types (solutionOchemSkeletal and solutionOchemMechanism) that use the MarvinSketch drawing tool, see the release notes.

 

Requirements

To use the Lewis Structure Drawing Tool, you need:

Important: To receive the last four files, contact Mastering Support. Be sure to save all of these files to the same folder. The drawing tool won't work if they're in separate folders.

Overview

  1. Set up the Lewis structure drawing answer.
  2. Specify drawing parameters in the Lewis Structure Drawing Tool.
  3. Copy drawing tool parameters into the answer box.
  4. Create correct expressions, correct answers, and wrong answers.

Optionally, if you want atoms or molecules to display on the canvas by default, you can create an xml file and add it to your assets. For details, see Creating assets that contain atoms or molecules.

The next sections provide details. For examples of using the tool, see Chiral molecular drawing example and Select atom example.

Note: Do not use this tool for complex ions since it doesn't handle brackets or ligands.

Set up the Lewis structure drawing answer

  1. Create a new item for the drawing.
  2. Under Value in the answer box, right-click and remove the solutionMultipleChoiceRadio answer type.
  3. Click add and select solutionAppletFlash.
  4. In the new answer box displayed, enter lewisdraw.swf beside Applet Name.

Specify drawing parameters in the Lewis Structure Drawing Tool

  1. Open the Lewis Structure Drawing Tool, lewisdraw_authoring_2013.html, in a browser that has the Flash plugin.


  2. Set the grading options for the problem on the lower left:

    Click a grading setting option to toggle whether or not it will be active. (Any selected grading setting is highlighted in blue. Unselected settings are grayed out.)
  3.   Grade hydrogen atoms
      Grade cis/tran isomers
      Grade chirality
      Grade lone pair electrons
  1. Set how students will complete the problem by clicking the button in the upper right, labeled both by default, and selecting both (enables both drawing and selecting), draw, or select.

    ""

Note: The name of this button changes, reflecting the last choice made.

Copy drawing tool parameters into the answer box

  1. Right-click the drawing canvas and select get parameters.
  2. In the Parameters box, press Ctrl + V to paste the drawing’s parameters, which appear as codes. (See Parameter codes below for descriptions.)

Note: You no longer need to add a URL to the end of the parameters.

  1. Enter the pixel Width and Height for the drawing. The minimum size is width 500 and height 500. (Don't enter "pixels".)
  2. Create correct expressions, correct answers, and wrong answers.

Parameter codes

These codes are automatically entered into the answer box when you paste parameters from the Lewis Structure Drawing Tool. This table is for reference only (1 = graded, 0 = not graded).

Code Meaning
Qtype=

draw – The part involves drawing only.

both – The part involves both drawing and selecting.

select – The part involves selecting only.

Hydrogens=1 Students must include all hydrogen atoms for a correct grade. The hydrogen grading option applies only to carbon atoms, since hydrogen atoms are automatically graded for all non-carbon atoms. Whether hydrogen grading is on or off, PF4H requires students to draw the H for a correct answer. If hydrogen grading is off, students can draw CH4 by entering C for a correct answer; drawing CH5 however, would still be incorrect. Hydrogen atoms generally are omitted from the grade for large alkanes or ring structures for which line-bond formulas are appropriate.
Nonbinding=1 Students must include all lone-pair and non-bonding electrons for correct grade. In most cases you will NOT want to grade based on nonbonding electrons.
Chirality=1 Students must draw a specific enantiomer for a correct grade. In most cases you will NOT want to grade chirality.
Isometry=1 Student must enter the correct cis or trans isomer to be marked correct. Unless you are dealing with alkenes you will probably NOT want to grade isometry.
Skeleton=0 This option is always set to 0. This feature is not available with the Lewis Structure Drawing Tool.

 

Create correct expressions, correct answers, and wrong answers

Use the tabs at the top of the Lewis Structure Drawing Tool to create correct expressions, correct answers, and wrong answers, and then copy expressions and answers into the answer box. For a detailed example, see Chiral molecular drawing example.

Note: To allow multiple correct answers to be graded as equivalent for molecules with resonance (such as aromatics or the sulfite ion), code each correct resonance structure as its own Correct Answer(s) value.

Toolbar button Purpose How to use it

Select

Moves atoms or bonds within a molecule. You can also change the angle or length of a bond using the arrow tool.
  1. Click the Select button.
  2. On the canvas, click and drag an atom or bond to move it to a new position. Atoms and bonds will be highlighted in green.

Highlight (checkmark)

""

Enables selection of bonds or atoms in a selection question. For example:

You might need to answer a question by selecting (i.e., identifying) a particular atom in a provided molecular drawing.

To select individual items:

  1. Click the Highlight button.
  2. On the canvas, select an atom or bond. The selected item changes from black to blue.

To select a group of items:

  1. Click the Highlight button.
  2. On the canvas, click and drag to create a box around the parts of the molecule you want to select as a group.

Bond

 

"" = Single Bond
(Clicking this bond on the canvas cycles from single to double to triple to single, etc.)

"" = Wedge Bond
(The bond is directed toward you.)

"" = Hash bond
(The bond is directed toward the canvas.)

To draw bonds between atoms. Default = Single Bond

When the Single Bond tool is selected, click on the canvas to add a C — C bond.

To connect two existing atoms:

  1. Click and drag from the first atom to the second atom.
  2. Release the mouse button.

To add atoms and bonds at the same time:

  1. Click one of the Atom buttons (see description below).
  2. Click on the canvas and drag. When you release the mouse button, a bond to the same atom appears. To change the second atom, select an Atom button and click the one on the canvas that you want to replace.

To edit a bond type after you have added it:

  • With the Single Bond button active, click any bond on the canvas. If you continue clicking, the bond type cycles from single to double to triple to single, etc.

Atom

"" = Carbon

"" = Hydrogen

"" = Oxygen

"" = Nitrogen

"" = Sulfur

"" = Phosphorous

"" = Fluorine

"" = Bromine

"" = Chlorine

"" = Iodine

"" = Unspecified Halogen

"" = Periodic Table

To add an atom to the canvas.

  1. Click an atom button.
  2. Click the canvas to place the new atom.

To change any element symbol that appears on the canvas:

  • Select a new atom button and click on the existing atom on the canvas.

If the atom you want is not available as an atom button:

  1. Click the More button to open the periodic table.
  2. Click an atom on the periodic table to select it.
  3. Close the periodic table.
  4. Click on the canvas to add the atom you just selected.

Charge

"" = Increase Charge

"" = Decrease Charge

To add or change an atom’s charge. The default charge is 0.

To increase the charge on an atom:

  1. Click the Increase Charge button.
  2. On the canvas, click on the atom to which you want to increase the charge.
  3. Continue to click, until you see the charge value you want.

To decrease the charge on an atom:

  1. Click the Decrease Charge button.
  2. On the canvas, click on the atom to which you want to decrease the charge.
  3. Continue to click, until you see the charge value you want.

Alternate method to increase or decrease the charge:

  1. Click either the Increase or Decrease Charge button.
  2. Click the atom on the canvas.
  3. Type the charge, such as 2 or -1.

Electron Dot

"" = One Electron

"" = Two Electrons

To place electron-dot pairs or single electrons on an atom. The default is two electrons (electron pair).

  1. Click the One Electron or Two Electrons button.
  2. Click to add the electron(s) to the atom of your choice on the canvas.

To change the position of electron(s):

With the electron dot button active, click the electron(s) on the canvas, and drag to rotate them around the atom.

Important: Adding two single electrons in a drawing is NOT the same as adding an electron pair.

Eraser

""

To delete parts of molecules.

To erase all of your work at once: Click the Reset button (described below).

  1. Click the Eraser button.
  2. Click a molecule part (bond, atom, charge, or electron) on the canvas to delete it.

Note: If you click an atom with the Eraser button active, any associated bond is also deleted.

Reset

""

Clears the canvas to its starting point, whether it was blank or contained portions of a molecule.

To delete just a portion of your work: Use the Eraser button (described above).

Click the Reset button to return the canvas to its original state.

 

Tips for working with the Lewis Structure Drawing Tool

Copying expressions and answers into the answer box

The answer string generated depends on the parameters that are set. Make sure the parameters are correct before generating the answer string with get answer string, as described below.

  1. When you're done creating the correct expression, right-click the canvas and choose get correct expression.
  2. In the Item Editor, click add correctExpression and paste (Ctrl + V) the information into the box.
  3. In the Lewis Structure Drawing Tool, right-click the canvas and choose get answer string.
  4. In the Item Editor, paste (Ctrl + V) the information into the Correct Answer(s) box.
  5. In the Lewis Structure Drawing Tool, change the molecule as needed for an incorrect answer.
  6. Right-click the canvas and choose get answer string.
  7. In the Item Editor, click add expression beside Wrong Answer(s), and paste (Ctrl + V) the information into the box.

 

See also:

Creating assets that contain atoms or molecules

Select atom example

Chiral molecular drawing example

Grading chiral molecules