Repository navigation
From 0.10.0 a structure you drew can be turned in 3D: build it from the drawing, search its conformers, minimise it, scan a dihedral, measure it, wrap it in a surface, and put a 3D view of it on the page. PDB and mmCIF files open as proteins with their ligands, and a ligand comes out as a structure you can edit. The engine side, with every route and the methods behind the numbers, is docs/3D.md.
Select a structure and choose 3D > 3D View (Ctrl+3, Cmd+3 on a Mac). The view fills the window and follows your selection. To see the drawing beside it, click the button next to the close button (or double-click the title, or press Escape): it becomes a floating panel you can drag by its title and resize from its corner, and FormChem remembers which you chose. The button beside it hides the tools on the right for a model the full width of the window. The first time it opens it loads the 3D viewer (3Dmol.js), so FormChem starts no slower for people who never use 3D.
| Do | How |
|---|---|
| Turn | drag with the left button |
| Zoom | scroll, drag with the right button or Shift+drag, or the Zoom In and Zoom Out buttons |
| Pan | drag with the middle button or Ctrl+drag |
| Change the style | Wire, Stick, Ball and Stick, Space Filling, Cartoon (proteins), or 3D > Display |
| Add a surface | the Surface list (van der Waals, solvent accessible, solvent excluded) or 3D > Surface; ESP colours it by charge |
| Show the ligand | Focus the ligand; Reset view brings the whole model back |
| Spin | the spin button (off when your system asks for reduced motion) |
| Export | the download button: PNG, transparent PNG or glTF |
A drawing has no depth until you build it. Press Build 3D in the panel, or 3D > Build 3D from 2D. FormChem embeds the structure with ETKDGv3, keeping every wedge and every double bond as you drew them, minimises it with MMFF94 and stores the result in the drawing as one undo step. It then reads the stereo back from the 3D model and checks it against your drawing; the status line names the method and version and the energy, for example "Built: ETKDGv3+MMFF94, rdkit 2025.09.3 · -1.34 kcal/mol". Unspecified stereocentres are named in a warning, and for an AND or OR group the drawn member is built.
The force field list beside Minimise picks MMFF94, MMFF94s or UFF. For elements MMFF94 does not cover (tin, for example) FormChem uses UFF and says why.
- Minimise (3D > Minimise Energy) minimises the shown conformer and reports the energy before and after.
- Conformers... generates an ensemble (50 by default), minimises each, and keeps those within an energy window of the lowest (10 kcal/mol by default). The list shows each conformer's energy relative to the lowest and its population; click one to show it. Conformers that differ only in where the hydrogens point are merged, so ethanol has one.
Each run is one undo step.
Pick four bonded atoms in a row (or measure a dihedral first) and press Scan.... Choose the range and step and Run Scan: at each angle the dihedral is held and everything else is minimised, and the plot shows the energy against the angle with the minimum and the barrier. For butane's C-C-C-C the plot shows the anti minimum at 180 degrees, the gauche minima near 65 degrees and the eclipsed maximum at 0 degrees, a barrier of about 5.1 kcal/mol. Tick Keep each point as a conformer to keep the geometries; then click a point on the plot to see it.
Choose Distance, Angle or Dihedral under Measure and click two, three or four atoms. Ethanol's C-O bond reads 1.420 Å after minimising. Measurements on a 3D object on the page are saved with it.
The van der Waals, solvent accessible and solvent excluded surfaces are drawn see-through over the model. ESP colours the surface red (negative) to blue (positive) from the engine's empirical partial charges; the legend says it is approximate and names the method and the charge range. ESP is for structures you drew or opened from SD and MOL files, not for PDB models.
3D > Insert 3D View puts a 3D object beside the selected structure. Turn it, restyle it or add a surface in the panel, and the picture on the page follows, as one undo step for each burst of changes, without the page flashing. Double-click the object to open it in the panel again. The object moves, resizes, copies and exports like a picture, and prints as you left it.
File > Open a .pdb, .ent, .cif or .mmcif file (or drop it on Home) for a new drawing, or use File > Import or 3D > 3D Structure File... to add it to the drawing you have open. The protein shows as cartoon, ligands as ball and stick with green carbons, waters are hidden, and the main ligand is in focus. The import report names the chains, ligands and waters. The file is kept unchanged inside the .fchem drawing.
SD and MOL files with 3D coordinates keep them: each record becomes a structure with its file geometry ready to view, with no need to build.
Select a PDB or mmCIF model and choose 3D > Extract Ligand.... With several ligands FormChem asks which. The ligand lands beside the model as a structure you can edit, with its coordinates from the file kept for 3D. Common ligands (ATP, NAG, folate, glycerol and about 25 more) get their bond orders from FormChem's own table; for others the bond orders are worked out from the geometry, and the message says "bond orders inferred", so check them.
- 3D > Export 3D View as PNG...: the view as a picture, opaque or transparent.
-
3D > Export 3D View as glTF...: a
.glb3D model (atoms and bonds in element colours) for 3D viewers, slides and 3D printing. - File > Export > Export 3D Structure...: MOL, SD (every conformer, with energy and method), PDB or XYZ, every hydrogen included; a PDB or mmCIF model saves its original file.
3D coordinates belong to the structure they were built from. Change an element, a charge, a bond or a wedge, or add or delete atoms, and the structure's conformers are removed in the same undo step; build again. Moving atoms and changing colours keep them, and Undo brings them back.
From 0.12.0 FormChem runs xtb and CREST when you have installed them; it never includes or downloads them (they are LGPL-3.0 programs of the Grimme group). Get them from https://github.com/grimme-lab/xtb and https://github.com/crest-lab/crest (or conda-forge), then check Preferences > 3D > Tight-Binding Programs: each row shows the version and path FormChem found, or where to get the program. Set a path there when the program is not on your PATH.
- 3D > Optimise with xtb...: GFN2-xTB or GFN-FF, charge, unpaired electrons, an ALPB solvent (water, DMSO, chloroform and 21 more) or the gas phase, and either an optimisation or a single point energy. The result replaces the structure's conformers, as one undo step, with the energy in hartree and kcal/mol, the HOMO-LUMO gap and a label such as "xtb 6.7.1, GFN2-xTB, ALPB (Water)".
- 3D > Conformer Search with CREST...: the same settings plus the energy window (6 kcal/mol) and how many to keep (20). The ensemble replaces the conformers, lowest first, with populations; conformers whose stereo no longer matches the drawing are left out and counted.
The dialog shows progress and the program's last lines, Cancel Job stops a run, and a failed run keeps its folder so you can read the program's own files.
- xtb and CREST were checked with stand-in programs, not real installations.
- Surfaces on large proteins take a while and hold the window meanwhile.
- Measurements on a structure without a 3D object on the page last only while the panel is open.
- Atropisomers and allene axial chirality are not recognised.
build_3d, conformers_3d, minimise_3d, scan_dihedral and measure_3d work on a structure's conformers, open_3d_structure opens PDB, mmCIF, SD and MOL files, extract_ligand takes a ligand out, and export_3d writes MOL, SD, PDB or XYZ. From 0.12.0 xtb_optimise and crest_conformers run xtb and CREST when they are installed. See Agents.
FormChem
- Home
- Manual
- Getting Started
- Drawing
- Grid and Page
- Annotations
- Reactions
- Templates
- Printing and pages
- Keyboard Shortcuts
- Stereo and Queries
- Analysis
- Names
- Spectra and NMR
- 3D
- Databases
- Lab Notebook
- Biopolymers
- Live Structures
- Accessibility
- Formats and Export
- Clipboard
- Command Line
- Agents
- Agent Activity
- Terminal
- Extensions
- Project Format
- Architecture
- Desktop
- Troubleshooting
- Development
- Releasing
Documents