Skip to content

Structure to Name Developer Guide

Using the API for generating the name of a molecule:

1
2
3
4
5
Molecule m = ...;

String name = MolExporter.exportToFormat(m, "name");

String traditionalName = MolExporter.exportToFormat(m.toFormat, "name:t");

The exact behavior of Structure to Name can be configured by including format options after the name parameter and a colon, for instance name:common.

See the Structure to Name User Guide for more information.