Femtet Macro Help/Manual
 

Home / Modeling / CGaudi / Method / CreateEllipseFace

CreateEllipseFace Method

Syntax

CreateEllipseFace(Center As CGaudiPoint, R1 As Double, R2 As Double) As CGaudiBody

Return Value

Returns newly created body if succeeded.
Returns Nothing if failed.

Parameters

Center   Coordinates of the center of the ellipse
R1   1st radius (in the 1st subaxis direction).
R2   2nd radius (in the 2nd subaxis direction).

Notes

Creates the ellipse face.
2nd subaxis is orthogonal to both principal axis and subaxis.
See CGaudiPlane for the detail.

Example

Dim Femtet As New CFemtet
Dim Gaudi As CGaudi
Dim Body As CGaudiBody
Dim PointA As New CGaudiPoint

'Creates new project
If Femtet.OpenNewProject() = False Then
Femtet.ShowLastError
End If

'Substitute Femtet.Gaudi for variable Gaudi.
Set Gaudi = Femtet.Gaudi



PointA.SetCoord 0, 0, 0

Set Body = Gaudi.CreateEllipseFace(PointA, 10, 5.5)