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 objarcs2d As SolidEdgeFrameworkSupport.Arcs2d
    Dim objarc2d As SolidEdgeFrameworkSupport.Arc2d
    Dim x1 As Double, y1 As Double, dblRads1 As Variant
    Dim dblSetValue As Double
    Dim VarArc2d1 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 arcs2d object
    Set objarcs2d = objSheet.Arcs2d
    'create an arc2d
    Set objarc2d = objarcs2d.AddByCenterStartEnd(xCenter:=0, yCenter:=0, _
                                                 xStart:=0.15, yStart:=0#, xEnd:=0, yEnd:=0.15)
    'set the arc radius
    objarc2d.Radius = 0.5
    'scale the arc2d
    dblSetValue = 0.5
    VarArc2d1 = objarc2d.Scale(Factor:=dblSetValue)
    ' USER DISPLAY
    ' Release objects
    Set objApp = Nothing
    Set objDoc = Nothing
    Set objSheet = Nothing
    Set objarcs2d = Nothing
    Set objarc2d = Nothing
End Sub
See Also

Arc2d Object  | Arc2d Members

Send comments on this topic.