Software Developer's Kit - ChemDraw

Send comments on this topic
Radical Property
See Also 

Description

Member of ChemDraw Control.Atom.

Sets and returns the atomic radical attribute of this atom.

Property type

Read-write property

Syntax

Visual Basic
Public Property Radical() As CDRadical

Return Type

Remarks

Radicals are indicated with the appropriate symbol from the Chemical Symbols Palette and they are assigned to the nearest atom.  Radicals always occupy one free valence, in addition to any charge effects. This is an enumerated property whose values are: Singlet, Triplet, Doublet or None.

Example

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

'Reads and sets this property
 Private Sub cmdRadical_Click() 
     myAtom.Radical = val(text1.text) 
     Text2.text = myAtom.Radical  
 End Sub

See Also