create_ellipse

Modeler2D.create_ellipse(position, major_radius, ratio, is_covered=True, name=None, matname=None)

Create an ellipse.

Parameters
positionlist of float

Center Position of the ellipse

major_radiusflost

Length of the major axis of the ellipse

ratiofloat

Ratio of the major axis to the minor axis of the ellipse

is_coveredbool

Specify whether the ellipse is a sheet (covered) or a line object

namestr, default=None

Name of the object. The default is None. If None , a unique name NewObject_xxxxxx will be assigned)

matnamestr, default=None

Name of the material. The default is None. If None, the default material is assigned.

Returns
pyaedt.modeler.Object3d.Object3d

Object3d

References

>>> oEditor.CreateEllipse

Examples

>>> ellipse1 = aedtapp.modeler.primitives.create_ellipse([0, -2, -2], 4.0, 0.2)
>>> ellipse2 = aedtapp.modeler.primitives.create_ellipse(position=[0, -2, -2], major_radius=4.0, ratio=0.2,
...                                                     name="MyEllipse", matname="Copper")