Keep in mind that major axis is a vector,
therefore if you want to draw an ellipse as
horizontal oriented then Y coordinates must
be equal to zero:
Code:
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
Sub DrawHorizontalEllipse()
Dim oEllipse As AcadEllipse
Dim mAxis(0 To 2) As Double
Dim cenPt(0 To 2) As Double
Dim dblRatio As Double
' add an ellipse in the Model
cenPt(0) = 18#: cenPt(1) = 46.3333: cenPt(2) = 0#
mAxis(0) = 16.5: mAxis(1) = 0#: mAxis(2) = 0# '<--where 16.5 is half of the major axis
dblRatio = 0.25
Set oEllipse = ThisDrawing.ModelSpace.AddEllipse(cenPt, mAxis, dblRatio)
End Sub
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
Sub DrawVerticalEllipse()
Dim oEllipse As AcadEllipse
Dim mAxis(0 To 2) As Double
Dim cenPt(0 To 2) As Double
Dim dblRatio As Double
' add an ellipse in the Model
cenPt(0) = 18#: cenPt(1) = 46.3333: cenPt(2) = 0#
mAxis(0) = 0#: mAxis(1) = 16.5: mAxis(2) = 0# '<--where 16.5 is half of the major axis
dblRatio = 0.25
Set oEllipse = ThisDrawing.ModelSpace.AddEllipse(cenPt, mAxis, dblRatio)
End Sub