Software Developer's Kit - ChemDraw

Send comments on this topic
MakeSymbol Method
See Also 
type

Description

Member of ChemDraw Control.Document.

Creates a new symbol in the document

Syntax

Visual Basic
Public Function MakeSymbol( _
   ByVal type As CDSymbolType _
) As Symbol

Parameters

type
ValueDescription
kCDSymbolTypeLonePair indicates a lone pair of electrons
kCDSymbolTypeElectron indicates a single non bonded electron (used on radicals)
kCDSymbolTypeRadicalCation indicates a positive charge (used on radicals)
kCDSymbolTypeRadicalAnion indicates a negative charge (used on radicals)
kCDSymbolTypeCirclePlus positive charge (used on structures)
kCDSymbolTypeCircleMinus negative charge (used on structures)
kCDSymbolTypeDaggerdagger
kCDSymbolTypeDoubleDagger double dagger
kCDSymbolTypePlus positive charge (used on structures)
kCDSymbolTypeMinus negative charge (used on structures)
kCDSymbolTypeRacemic stereochemical flag indicates a mixture of the exact stereoisomer as drawn and its enantiomer (and)
kCDSymbolTypeAbsolute stereochemical flag indicates the exact stereoisomer as drawn
kCDSymbolTypeRelativestereochemical flag indicates the exact stereoisomer as drawn or its enantiomer (or)

Return Type

Example

'Declares variables 
 Dim myDocument As
ChemDrawControl11Ctl.Document 
 Private Sub cmdCommand_Click()
     
Set MySymbol = myDocument.MakeSymbol kCDSymbolTypeCirclePlus 
     mySymbol.selected = True
 End Sub

See Also