Software Developer's Kit - ChemDraw

Send comments on this topic
MakeBond Method
See Also 
at1
Indicates the atom at the first end of the bond.
at2
Indicates the atom at the second end of the bond.

Description

Member of ChemDraw Control.Document.

Creates a new bond in the document

Syntax

Visual Basic
Public Function MakeBond( _
   ByVal at1 As Atom, _
   ByVal at2 As Atom _
) As Bond

Parameters

at1
Indicates the atom at the first end of the bond.
at2
Indicates the atom at the second end of the bond.

Return Type

Example

'Declares variables
 Dim myDocument As
ChemDrawControl11Ctl.Document 
 Private Sub cmdCommand_Click()
    
Set MyBond = myDocument.MakeBond(myAtom1, myAtom2)
     myBond.selected = True  
     ctlChemDraw.Zoom 1000
 End Sub

See Also