Solid Edge FrameworkSupport Type Library
Mirror Method
Description
Copies the referenced object about an axis.
Syntax
Visual Basic
Public Function Mirror( _
   ByVal x1 As Double, _
   ByVal y1 As Double, _
   ByVal x2 As Double, _
   ByVal y2 As Double, _
   Optional ByVal BooleanCopyFlag As Variant _
) As Object
Parameters
x1
y1
x2
y2
BooleanCopyFlag
Example
Private Sub Form_Load()
    Dim objApp As SolidEdgeFrameWork.Application
    Dim objDoc As SolidEdgeDraft.DraftDocument
    Dim objSheet As SolidEdgeDraft.Sheet
    Dim objCurves As solidedgeframeworksupport.Curves2d
    Dim objCurve1 As solidedgeframeworksupport.Curve2d
    Dim objCurve2 As solidedgeframeworksupport.Curve2d
    Dim dblPoint(1 To 8) As Double
    Dim objcurve3 As Object
    Dim lngcount As Long
    ' 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
    'create Curves collection
    Set objCurves = objSheet.Curves2d
    'Define points
    dblPoint(1) = 0.15
    dblPoint(2) = 0.15
    dblPoint(3) = 0.25
    dblPoint(4) = 0.15
    dblPoint(5) = 0.25
    dblPoint(6) = 0.25
    dblPoint(7) = 0.15
    dblPoint(8) = 0.25
    'Create curve
    Set objCurve1 = objCurves.AddByPoints(Pointcount:=4, Points:=dblPoint, FitType:=igDirectFit, Closed:=False)
    'mirror curve
    Set objCurve2 = objCurve1.Mirror(x1:=0.1, y1:=0.3, x2:=0.3, y2:=0.3, BooleanCopyFlag:=True)



    ' USER DISPLAY
    ' Release objects
    Set objApp = Nothing
    Set objDoc = Nothing
    Set objSheet = Nothing
    Set objCurves = Nothing
    Set objCurve1 = Nothing
    Set objCurve2 = Nothing
End Sub
See Also

Curve2d Object  | Curve2d Members