Software Developer's Kit - ChemDraw

Send comments on this topic
AtomGeometry Property
See Also 

Description

Member of ChemDraw Control.Atom.

Returns the geometry of this atom

Property type

Read-only property

Syntax

Visual Basic
Public Property AtomGeometry() As CDAtomGeometry

Return Type

Remarks

This is an enumerated property. It returns the coordination of the atom, i.e. how this atom is joined to the other atoms. The number of atoms and implicit and explicit hydrogens must equal the number of attachments for the specified geometry.  The value Zero means that the geometry is unknown.

Example

'Declares variable vAtom
 Dim vAtom As ChemDrawControl10Ctl.Atom
'Checks that there is an atom loaded in the variable
 If  Selection.Atoms.Count < 1
Then
     Exit Sub
 End If

 Private Sub cmdAtomGeometry_Click()
     Text1.text = vAtom.Geometry
 End Sub

See Also