Solid Edge FrameworkSupport Type Library
Scale Method
Specifies the factor by which the referenced object is to be scaled.
Description
Scales the referenced object by a specified factor.
Syntax
Visual Basic
Public Sub Scale( _
   ByVal Factor As Double _
) 
Parameters
Factor
Specifies the factor by which the referenced object is to be scaled.
Example
Private Sub Form_Load()
    Dim objApp As SolidEdgeFrameWork.Application
    Dim objDoc As SolidEdgeDraft.DraftDocument
    Dim objSheet As SolidEdgeDraft.Sheet
    Dim objEllipses As SolidEdgeFrameworkSupport.Ellipses2d
    Dim objEllipse1 As SolidEdgeFrameworkSupport.Ellipse2d
    Dim dblScale As Double, dblArea As Double
    Dim temp As Variant
    ' Report errors
    Const PI = 3.14159265358979
    ' Create/get the application with specific settings
    On Error Resume Next
    Set objApp = GetObject(, "SolidEdge.Application")
    If Err Then
        Err.Clear
        Set objApp = CreateObject("SolidEdge.Application")
        Set objDoc = objApp.Documents.Add("SolidEdge.DraftDocument")
        objApp.Visible = True
    Else
        Set objDoc = objApp.ActiveDocument
    End If
    'getting the Active Sheet object
    Set objSheet = objDoc.ActiveSheet
    'Get the Ellipses2d object
    Set objEllipses = objSheet.Ellipses2d
    'Create an ellipse2d object
    Set objEllipse1 = objEllipses.AddByCenter(xCenter:=0.3, yCenter:=0.25, _
                                              xMajor:=0.1, yMajor:=0, Ratio:=0.5, Orientation:=igGeom2dOrientClockwise)
    ' Get the Area
    dblArea = objEllipse1.Area
    'Scale the Ellipse object
    dblScale = 2
    temp = objEllipse1.Scale(factor:=dblScale)
    ' USER DISPLAY
    ' Release objects
    Set objApp = Nothing
    Set objDoc = Nothing
    Set objSheet = Nothing
    Set objEllipses = Nothing
    Set objEllipse1 = Nothing
End Sub
See Also

Ellipse2d Object  | Ellipse2d Members