From Loose Fragments to a Connected Molecule: A Safer Building Workflow

Assembling a molecule in 3D can become surprisingly fiddly: atoms need plausible connections, hydrogens may need adjustment, and a fragment can overlap the structure instead of fitting into it. Building atom by atom gives you control, but it also means managing many small steps. In SAMSON, the Add editor helps streamline that work by letting you build with individual atoms or reusable molecular fragments—and by providing options for orientation, substitution checks, hydrogen adjustment, and merging nearby atoms.

The key is to treat these options as part of a deliberate workflow, not as a substitute for checking the structure. Here’s how to use them to make fragment assembly easier to manage.

Set up the builder before you start

Open Preferences > Editors > Add and review the builder options. For a typical fragment-building session, consider enabling Adjust hydrogens when adding fragments, Automatically orient fragments on substitution, Merge neighboring atoms, and Prevent unexpected substitutions. These settings help the editor adjust hydrogens based on valences, position fragments to reduce atom overlap, merge atoms that are close enough, and flag operations that may be implausible.

With substitution checks enabled, acceptable operations appear with a green overlay and forbidden ones with a red overlay. That visual feedback can help you catch a questionable connection before you commit to it. You can change these settings in Preferences if they don’t suit your task.

Preferences for the Add editor

Choose the right way to connect

Activate the Add editor (shortcut A). Its current fragment appears in the Viewport, and the Asset Browser gives you access to atoms and available assets. For a simple structure, select an atom such as carbon, then click in the Viewport to place it. When hydrogen adjustment is enabled, SAMSON attempts to add the hydrogens needed for the atom’s valence.

To extend a structure, there are two useful connection gestures:

  • Substitute an atom: hover over the atom to replace and click. SAMSON positions the incoming atom or fragment using the atoms’ covalent radii.
  • Create a bond: press on the atom you want to connect to, hold, move the pointer away, then release at a bond-like distance.

These approaches solve different problems. Substitution is useful when replacing a hydrogen or another atom with a new group. Creating a bond gives you a way to attach the current fragment to an existing atom without using that replacement gesture. If the result doesn’t look right, undo is available through Edit > Undo.

Adding and orienting a molecular fragment

Use assets to avoid rebuilding familiar groups

For a functional group or larger piece of a molecule, look in the Asset Browser instead of recreating every atom. Browse its folders or search with Filter assets…. Double-clicking an asset makes it the current fragment in the Add editor. You can also make a fragment from a selection already in your document: select it, right-click, and choose Use selection to build.

Before placing a fragment, confirm which atom will serve as its substitution point. To change it, hold Ctrl on Windows/Linux or Cmd on macOS and choose the desired atom in the fragment. This small check matters: the substitution point determines where the fragment attaches to the structure.

For example, the documented Bisphenol A workflow starts with a propane skeleton, changes the current asset to phenol, selects the appropriate carbon in the phenol fragment as the substitution atom, then replaces two hydrogens on the central propane carbon. The editor reorients the phenol fragments during substitution. Interactive minimization can be switched on with Z to relax the model while building, and switched off by pressing Z again.

Building Bisphenol A from a propane skeleton and phenol fragments

Make the result easier to inspect

Automatic orientation and hydrogen adjustment are helpful, but they are best understood as building aids. Inspect the connection and the resulting structure, especially after changing bond orders or charges. For bond-order edits, use the Edit bonds editor; note that editing a bond through the Inspector does not automatically adjust hydrogens. If you need to reposition a newly added fragment, select it and use a Move editor. You can also rotate a fragment around a bond with the Local Move Editor by clicking the bond.

A practical sequence is: set the Add editor options, choose or create the fragment, verify its substitution atom, connect it using the appropriate gesture, and then inspect and adjust the result. That sequence reduces avoidable rework while keeping you in control of the molecular structure.

For the full workflow and additional examples, see the SAMSON Building molecules documentation.

Note: SAMSON and all SAMSON Extensions are free for non-commercial use. Get SAMSON at https://www.samson-connect.net.

Comments are closed.