Building a molecule atom by atom gives you control, but it can also turn a simple edit into a long sequence of clicks. Starting from a fragment can be faster—provided you connect the right atoms and keep an eye on geometry. A misplaced attachment point or an unexpected substitution can change the structure you intended to make.
In SAMSON, the Add editor lets you assemble molecules from individual atoms, fragments in the Asset Browser, or fragments you have already selected in your document. The workflow below focuses on a practical problem: adding a molecular fragment while keeping the connection and resulting structure understandable.
Set up before adding fragments
Before building, check the Add editor options in Interface > Preferences > Editors > Add. For a typical construction workflow, consider enabling:
- Adjust hydrogens when adding fragments, so hydrogens are adjusted automatically as atoms or fragments are added or connected, based on valences.
- Automatically orient fragments on substitution, so SAMSON attempts to position a fragment to avoid overlapping atoms when connecting it to a molecule.
- Prevent unexpected substitutions, which marks acceptable operations in green and forbidden ones in red.
- Merge neighboring atoms, if you want atoms that are sufficiently close to be merged when connecting a fragment.
These options are recommendations and safeguards, not a substitute for checking the final structure. You can change them in Preferences if your task calls for different behavior.
Choose a fragment and its attachment point
Open the Asset Browser and browse its folders, or use Filter assets… to search. Double-click an asset to make it the current fragment for the Add editor. Assets can range from functional groups and rings to larger molecules, so choosing a fragment that already contains the chemistry you need can reduce repetitive construction.
The attachment atom matters. When using a fragment, hold Ctrl on Windows/Linux or Cmd on macOS and choose the atom in the fragment that should connect to the existing structure. If you are substituting atoms and need to choose which atom or bond in the asset participates in the replacement, hold Shift and make that choice. Taking a moment to confirm the attachment point can prevent a connection at the wrong site.

Connect by substitution or by making a bond
There are two useful ways to connect atoms or fragments:
- Substitute an atom: move the fragment over the atom you want to replace and click. SAMSON positions the new atom or fragment with covalent radii in mind. With unexpected-substitution prevention enabled, pay attention to the green or red overlay before committing.
- Create a bond: press and hold on the atom you want to attach to, move the cursor away, and release at a bond-like distance.
Substitution is useful when replacing a hydrogen or another atom with a group. Bond creation is useful when you want to join a fragment without replacing the target atom. The best choice depends on the structure you are building and the intended connectivity.
For example, the documentation demonstrates assembling phenol fragments and constructing Bisphenol A from a propane backbone. In that workflow, the phenol attachment atom is chosen first, then two hydrogens on the central carbon are substituted with phenol fragments. Automatic orientation helps place each incoming fragment, while the overlay provides a visual cue about whether the operation is considered acceptable.

Check geometry as you build
Interactive minimization can be switched on with Z or through Edit > Minimize. You can continue building while it runs, then press Z again to stop it. This provides a way to relax the system during construction, but it does not replace checking connectivity, bond orders, or whether the resulting structure matches your intended molecule.
If the fragment needs a different orientation after placement, select it and use a Move editor. The Local Move Editor, activated with M, lets you set a rotation pivot by clicking an atom; clicking a bond can select the shortest fragment for rotation around that bond. This is useful when the connection is correct but the fragment needs a more suitable orientation.
Finally, check the document hierarchy if you need to organize the result. The Add editor places new atoms and bonds in the hierarchy automatically, while the Document view lets you add, move, or extract structural nodes. You can also undo and redo edits through Edit > Undo and Edit > Redo.
For the full building workflow and related controls, see the SAMSON Building molecules guide.
Note: SAMSON and all SAMSON Extensions are free for non-commercial use. Get SAMSON.
