Solid Edge FrameworkSupport Type Library
AddBy3Points Method
Specifies the coordinates of the first point.
Specifies the coordinates of the first point.
Specifies the coordinates of the second point.
Specifies the coordinates of the second point.
Specifies the coordinates of the third point.
Specifies the coordinates of the third point.
Description
Creates a Circle2d object from three nonlinear points that define the circle's circumference.
Syntax
Visual Basic
Public Function AddBy3Points( _
   ByVal x1 As Double, _
   ByVal y1 As Double, _
   ByVal x2 As Double, _
   ByVal y2 As Double, _
   ByVal x3 As Double, _
   ByVal y3 As Double _
) As Circle2d
Parameters
x1
Specifies the coordinates of the first point.
y1
Specifies the coordinates of the first point.
x2
Specifies the coordinates of the second point.
y2
Specifies the coordinates of the second point.
x3
Specifies the coordinates of the third point.
y3
Specifies the coordinates of the third point.
Example
Private Sub Form_Load()
    Dim objApp As SolidEdgeFramework.Application
    Dim objDoc As SolidEdgePart.PartDocument
    Dim objCircs As SolidEdgeFrameworkSupport.Circles2d
    Dim sDumpStatus As String    ' Used for temporary storage of datadump return string
    ' 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.PartDocument")
        objApp.Visible = True
    Else
        Set objDoc = objApp.ActiveDocument
    End If
    ' Create a Circles collection object
    Set objCircs = objDoc.ProfileSets.Add.Profiles.Add(pRefPlaneDisp:=objDoc.RefPlanes(1)).Circles2d
    ' Create a Circle object
    Call objCircs.AddBy3Points(x1:=0, y1:=0, x2:=0.01, y2:=0.02, x3:=0.02, y3:=0.01)
    ' USER DISPLAY
    ' Release objects
    Set objApp = Nothing
    Set objDoc = Nothing
    Set objCircs = Nothing
End Sub
See Also

Circles2d Collection  | Circles2d Members