Write Method

Applies To:

Molecule object


Writes a Molecule object data to a structure file.


Molecule.Write ( BSTR/String filename )

filename  path and name of target file


The method writes the following file types:
MDL Molfile (*.mol)
ChemDraw (*.cdx)
ChemDraw 3.5 (*.chm)
MDL Sketch (*.skc)
MDL Graphic (*.tgf)
SMD 4.2 file (*.smd)
Conn. Table (*.ct)
MSI Molfile (*.msm)
Questel F1 (*.f1d)
Questel F1Q (*.f1q)
MDL Rxn (*.rxn)
GIF (*.gif)
TIFF (*.tif)
PNG (*.png)
Metafile (*.wmf)

NOTE: To write any file other than MOL, you must have ChemDraw installed on your system.


The following Visual Basic code saves the current molecule as Test.cdx in the ChemFinder folder in drive D.
Dim Path As String                 'File path variable      Dim CurrentMolecule As Object      'Molecule object

Path = "D:\ChemFinder\Test.cdx"    'Assign file path
CurrentMolecule.Write Path         'Write file

See Also:

Read Method

2005 CambridgeSoft Corporation. All Rights Reserved. Privacy Statement
Tel  800 315-7300 / 617 588-9300     Fax  617 588-9390     Email   info@cambridgesoft.com
CambridgeSoft Corporation, 100 CambridgePark Drive, Cambridge, MA 02140 USA