EndParameter Example

Using Programming Languages other than VBA

Sub Example_EndParameter()
	' This example creates an ellipse and enters the start and
	' end parameters to create an elliptical arc.
	Dim ellObj As AcadEllipse
	Dim majAxis(0 To 2) As Double
	Dim center(0 To 2) As Double
	Dim radRatio As Double

	' Create an ellipse in model space
	center(0) = 5#: center(1) = 5#: center(2) = 0#
	majAxis(0) = 10: majAxis(1) = 20#: majAxis(2) = 0#
	radRatio = 0.3
	Set ellObj = ThisDrawing.ModelSpace.AddEllipse(center, majAxis, radRatio)

	' Enter a start parameter of 1.57, and an end parameter of 6.28
	ellObj.StartParameter = 1.57
	ellObj.EndParameter = 6.28
	ZoomAll

	' Find the start and end parameters for the ellipse
	MsgBox "The ellipse has a start parameter of " & ellObj.StartParameter & " and an end parameter of " & ellObj.EndParameter, vbInformation, "EndParameter Example"
End Sub

 

   Comments?