Software Developer's Kit - ChemDraw

Send comments on this topic
MakeConstraint Method
See Also 
ConstraintType
Indicates type of constraint.

Description

Member of ChemDraw Control.Document.

Creates a new constraint in the document

Syntax

Visual Basic
Public Function MakeConstraint( _
   ByVal ConstraintType As Long _
) As Constraint

Parameters

ConstraintType
Indicates type of constraint.

Return Type

Example

'Declares variables 
 Dim myDocument As
ChemDrawControl11Ctl.Document 

 Private Sub cmdCommand_Click()
     
Set MyConstraint = myDocument.MakeConstraint kCDConstraintTypeAngle
     myConstraint.selected = True  
     ctlChemDraw.Zoom 1000
 End Sub

See Also