Solid Edge Geometry Type Library
GetEllipseData Method
Returns the coordinates of the point that is the center of the referenced Ellipse object.
Returns the unit vector that is perpendicular to the plane of the referenced Ellipse object.
Returns the coordinates of the major axis vector of the referenced Ellipse object.
Returns the ratio of the length of the minor axis over the length of the major axis of the referenced ellipse.
Description
Returns the surface geometry data on the referenced Ellipse object.
Syntax
Visual Basic
Public Sub GetEllipseData( _
   ByRef CenterPoint() As Double, _
   ByRef AxisVector() As Double, _
   ByRef MajorAxis() As Double, _
   ByRef MinorMajorRatio As Double _
) 
Parameters
CenterPoint
Returns the coordinates of the point that is the center of the referenced Ellipse object.
AxisVector
Returns the unit vector that is perpendicular to the plane of the referenced Ellipse object.
MajorAxis
Returns the coordinates of the major axis vector of the referenced Ellipse object.
MinorMajorRatio
Returns the ratio of the length of the minor axis over the length of the major axis of the referenced ellipse.
Example
Private Sub Form_Load()
    Dim objApp As SolidEdgeframework.Application
    Dim objDoc As SolidEdgepart.PartDocument
    Dim objBody As solidedgegeometry.Body
    Dim objEdges As Object
    Dim objGeom As Object
    Dim objEllpEdge As solidedgegeometry.Edge
    Dim objEllipse As solidedgegeometry.Ellipse
    Const TESTFILE = "T:\vbtests\testcases\Curve3d.par"
    Dim dblAxis() As Double, dblCenPt() As Double
    Dim dblMajAxis() As Double, dblRatio As Double
    ' 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
    ' Open the TestFile
    Set objDoc = objApp.Documents.Open(TESTFILE)
    ' Get the Model object
    Set objBody = objDoc.Models(1).Body
    ' Get Edges Collection object
    Set objEdges = objBody.Edges(EdgeType:=igQueryEllipse)
    ' Get an Elliptical Edge
    Set objEllpEdge = objEdges(1)
    ' Get the Elliptical Curve
    Set objEllipse = objEllpEdge.Geometry
    ' Get the EllipseData
    Call objEllipse.GetEllipseData(CenterPoint:=dblCenPt, AxisVector:=dblAxis(), MajorAxis:=dblMajAxis, MinorMajorRatio:=dblRatio)

    ' USER DISPLAY
    ' Release objects
    Set objApp = Nothing
    Set objDoc = Nothing
    Set objBody = Nothing
    Set objEllpEdge = Nothing
    Set objEdges = Nothing
    Set objEllipse = Nothing
End Sub
See Also

Ellipse Object  | Ellipse Members