SchMovable (Object)

Manage the transformation of a schematic component.

Methods


Sub Rotate( iDb1RotationAngleInRadian)
Rotate a schematic object with an angle in radian.
Parameters:
iDb1RotationAngleInRadian
Rotation angle (from x-axis) in radian.
Example:
 
 Dim objThisIntf As SchMovable

  ...
 objThisIntf.Rotate
 
Sub Scale( iDb1ScaleFactor)
Scale a schematic object with a scale factor.
Parameters:
oDb1ScaleFactor
The current scale factor of the component.
Example:
 
 Dim objThisIntf As SchMovable

  ...
 objThisIntf.Scale
 
Sub ScaleSelectedObjects( iLCntblToScale, iDb1ScaleFactor)
Scale a list of schematic objects with a scale factor.
Parameters:
iLCntblToScale
List of selected objects to scale.
oDb1ScaleFactor
The current scale factor.
Example:
 
 Dim objThisIntf As SchMovable
 Dim objArg1 As SchListOfObjects

  ...
 objThisIntf.ScaleSelectedObjectsobjArg1,objArg1
 
Sub Transform( iDb6TransMatrix)
Transform a schematic object with a transformation matrix.
Parameters:
iDb6TransMatrix
Transformation matrix. See for explanation of this argument.
Example:
 
 Dim objThisIntf As SchMovable
 Dim dbVar1(6) As CATSafeArrayVariant
  ...
 objThisIntf.TransformdbVar1
 
Sub Translate( iDb2Vector)
Translate a schematic object with a vector.
Parameters:
iDb2Vector
X-Y components of a translation vector.
Example:
 
 Dim objThisIntf As SchMovable
 Dim dbVar1(2) As CATSafeArrayVariant
  ...
 objThisIntf.TranslatedbVar1