Software Developer's Kit - ChemDraw

Send comments on this topic
MakeGeometry Method
See Also 
geomType
Indicates type of geometry.

Description

Member of ChemDraw Control.Document.

Creates a new geometry in the document

Syntax

Visual Basic
Public Function MakeGeometry( _
   ByVal geomType As Long _
) As Geometry

Parameters

geomType
Indicates type of geometry.

Return Type

Example

'Declares variables 
 Dim myDocument As
ChemDrawControl11Ctl.Document 
 Private Sub cmdCommand_Click()
     Set MyGeometry = myDocument.MakeGeometry kCDGeometryTypePointFromPointNormalDistance
     myGeometry.selected = True  
     ctlChemDraw.Zoom 1000
 End Sub

See Also