WOLFRAM

  • Import supports the CDX file format.

Background & Context

    • MIME type: chemical/x-cdxChemDraw Exchange format.
    • Used by CambridgeSoft Corporation's ChemDraw application to store molecular data.
    • Binary format.
    • Stores two-dimensional atomic coordinates, chemical bond information and metadata.

Import

  • Import["file.cdx"] imports a CDX file as a molecule.
  • Two-dimensional coordinates from the CDX file are stored in the molecule in the AtomDiagramCoordinates option value.
  • Use mol["AtomDiagramCoordinates"] to retrieve the coordinates from the imported molecule mol.
  • See the following reference pages for full general information:
  • Importimport from a file
    CloudImportimport from a cloud object
    ImportStringimport from a string
    ImportByteArrayimport from a byte array

Import Elements

  • General Import elements:
  • "Elements" list of elements and options available in this file
    "Summary"summary of the file
    "Rules"list of rules for all available elements

Examples

Basic Examples  (2)Summary of the most common use cases

Import a CDX file as a molecule:

Out[1]=1

Show the molecule in a 2D structure diagram:

Out[2]=2

Coordinate and stereo information read in from the file are stored in the AtomDiagramCoordinates and StereochemistryElements option values:

Out[3]=3

Import a model of a symmetric triglyceride from a CDX file:

Out[1]=1

Show the molecule in a 2D structure diagram:

Out[2]=2