Software Developer's Kit - ChemDraw

Send comments on this topic
ScaleXYZ Method
See Also 
factorX
Indicates the scaling factor along the x axis.
factorY
Indicates the scaling factor along the y axis.
factorZ
Indicates the scaling factor along the z axis.
scaleLabels
Indicates whether labels will be scaled as well or not.
scaleSettings
Indicates whether the settings will be scaled as well or not.

Description

Member of ChemDrawControl.Objects.

Scale the objects by a specified factor

Syntax

Visual Basic
Public Sub ScaleXYZ( _
   ByVal factorX As Double, _
   ByVal factorY As Double, _
   Optional ByVal factorZ As Double = 1, _
   Optional ByVal scaleLabels As Boolean = True, _
   Optional ByVal scaleSettings As Boolean = True _
) 

Parameters

factorX
Indicates the scaling factor along the x axis.
factorY
Indicates the scaling factor along the y axis.
factorZ
Indicates the scaling factor along the z axis.
scaleLabels
Indicates whether labels will be scaled as well or not.
scaleSettings
Indicates whether the settings will be scaled as well or not.

Remarks

Private Sub Command1_Click()
Dim myObjs As ChemDrawControl11Ctl.Objects
Set myObjs = ctlChemDraw.selection.Objects
myObjs.ScaleXYZ 200, 400

End Sub

Private Sub Command2_Click()
Dim myObjs As ChemDrawControl11Ctl.Objects
Set myObjs = ctlChemDraw.selection.Objects
myObjs.Rotate 90

Example

'Scales 
 Private Sub Command1_Click()
     Dim myOBjs As ChemDrawCtl.Objects 
     Set myObjs = ChemDrawCtl.Selection.Objects
     myObjs.ScaleXYZ 200, 400
 End Sub

See Also