home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 5
/
DATAFILE_PDCD5.iso
/
utilities
/
m
/
moledraw
/
!MoleDraw
/
!Help
< prev
next >
Wrap
Text File
|
1996-02-04
|
44KB
|
964 lines
/***************************************************************************\
* *
* !MoleDraw, *
* *
* Molecular DTP, *
* *
* version 0.225D (4-Feb-96), *
* *
* © Simon Kilvington, 1993-96 *
* *
\***************************************************************************/
MoleDraw is an object based drawing program orientated towards producing
diagrams of chemical structures. It allows you to easily draw pictures of
molecules which can then be exported as Draw files to other applications.
To ease the transfer of data between MoleDraw and other applications it
supports the new RISC OS global clipboard. This allows you to cut, or copy,
data from one application and paste it into another, all at the touch of a
couple of keys.
Compatibility
=============
MoleDraw has only been tested under RISC OS 3.10. It should be compatible
with all versions of RISC OS from 3.00 onwards, but it will not work under
earlier versions.
MoleDraw requires Acorn's DrawFile module.
Overview
========
The basic principle behind creating drawings in MoleDraw is very much
like 'Draw'. That is, you choose an object from the toolbox, or from the
menu if you don't like toolboxes, then position it on the drawing.
Once objects have been added to the drawing they may be selected and then
moved, rotated, grouped together, etc.
The main difference between MoleDraw and Draw is that the objects used in
MoleDraw have been chosen to allow chemical structures to be quickly and
easily drawn. MoleDraw also knows about atoms and bonds and uses these
concepts to not only ease the production of neater drawings, but also to
allow you to build connection tables from your diagrams of chemical
structures. The connection tables can be saved as SMILES strings, these are
a popular and simple way of describing the connectivity in chemical
structures as a one dimensional string of characters. They are described in
the file '!MoleDraw.docs.SMILES'.
Although MoleDraw knows about bonds and atoms it allows you to draw any
structure you want, however chemically unreasonable it may be. The
philosophy is "you know what you are doing" and so it does not impose any
constraints on what you can draw. Silly structures can even be exported as
silly SMILES strings, although these will not be accepted as input to the
2D->3D/3D->2D converter that will be my next project.
MoleDraw's toolbox contains the following tools, each of which may also
be accessed from the main menu. Their use is described below.
+-------------------+-------------------+
| Bond | Select |
+-------------------+-------------------+
| Dashed bond | Erase |
+-------------------+-------------------+
| Wedge | Label |
+-------------------+-------------------+
| Dashed wedge | Caption |
+-------------------+-------------------+
| Thick bond | Arrows (menu) |
+-------------------+-------------------+
| Thick dashed bond | Orbitals (menu) |
+-------------------+-------------------+
| Wiggly bond | Objects (menu) |
+-------------------+-------------------+
| Chain | Reflected chain |
+-------------------+-------------------+
| 3 atom ring | 4 atom ring |
+-------------------+-------------------+
| 5 atom ring | 6 atom ring |
+-------------------+-------------------+
| 7 atom ring | 8 atom ring |
+-------------------+-------------------+
| Chair | Reflected chair |
+-------------------+-------------------+
| Cyclopentadiene | Benzene |
+-------------------+-------------------+
The toolbox icons may be quite big in small screen modes, ie 12 (640x256
pixels), 27 (640x480) etc. This is because I use mode 39 (896x352) which has
a fairly large screen area. Mode 31 (800x600) is also quite nice, and you
get the hi-res icons.
Using bond and ring tools
=========================
Firstly use the 'Style' menu to choose the colour, line width etc that
you want your new object to have. The description of the 'Style' menu below
explains exactly what is effected by the 'Line width', 'Bold width' etc.
Once you have decided on a style choose the object type you want to add
to the drawing either from the toolbox or the 'Enter' menu. To add an object
to the drawing first click with 'select' where you want the object to
appear. The position of the object will be shown as a light blue outline
which moves as you move the mouse. Once the object is in the desired
position click again with 'select' to add it. You may click with 'adjust' at
this point instead to move the position of the initial click and start
entering the object again.
Pressing the 'Escape' key at any point will abandon the entering process.
From the 'Tools' menu you may select 'Fixed lengths' and/or 'Fixed
angles'. These restrict the size and orientation of the objects and allow
you to ensure that all your molecules turn out the same size. Note that
moving the mouse when entering 'Chain' objects changes the number of bonds
to be added, not the length of the bonds which is always the 'Fixed' bond
length.
Even if 'Fixed lengths' and/or 'Fixed angles' are selected if your last
mouse click when entering a bond is over an atom the bond will end at that
atom. This applies to rings too, and so polycyclic structures can quite
easily be constructed.
The 3, 4, 5, 6, 7 and 8 atom ring tools can be used to produce aromatic
rings, ie with a circle drawn in the middle of them. To get aromatic rings
hold down 'Shift' when you first click with 'select', or if you subsequently
click with 'adjust'. At it's closest point, the circle will be one and a
half times the bond spacing away from the bonds that form the ring.
When a new bond is aligned on top of an existing single bond it will
become a double bond, doubles will become triples, and triples will go back
to singles again. This only happens for the single bond tools. The rings,
the chains, and the chairs will not increase the bond order of existing
bonds they overlap.
The program places an atom at the end of each bond, these can not be seen
but may later have a label added to them, or be output as a connection table
in the form of a SMILES string.
Using tools with a menu
=======================
The 'Arrows', 'Orbitals' and 'Objects' tools each have a menu of objects
associated with them. Before you can use one of these tools you must choose
from its menu which object you want to enter. To display the tool's menu
either click with 'menu' or double click with 'select' on the toolbox icon,
or use the 'Enter' menu. Once an object is chosen from a tool's menu it will
be used each time the tool is used.
Once an object has been associated with the tool proceed as before to add
it to the drawing, ie click with 'select' initially, move the mouse to
position the object correctly, and click with 'select' again to add it.
As before, 'adjust' can be used to reposition the object's starting
point, and 'Escape' abandons the process.
Note: when entering objects they are drawn as outlines to speed up the
screen updat