MarvinSketch Example 1.4

You can use My Templates in the sketcher applet, just open Insert -> My Templates menu.

My Templates are enabled in Swing if the isMyTemplatesEnabled applet parameter is set to true.

<script LANGUAGE="JavaScript1.1" SRC="../../marvin.js"></script>
<script LANGUAGE="JavaScript1.1">
<!--
msketch_begin("../..", 540, 480);
msketch_param("isMyTemplatesEnabled", "true");
msketch_end();
//-->
</script>

 

The next example shows how to set which atoms and bonds users are allowed to draw.