create_ellipse#
- Modeler2D.create_ellipse(position, major_radius, ratio, is_covered=True, name=None, matname=None, non_model=False, **kwargs)[source]#
Create an ellipse.
- Parameters:
- position
list
of
float
Center Position of the ellipse
- major_radius
flost
Length of the major axis of the ellipse
- ratio
float
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
- name
str
, default=None Name of the object. The default is
None
. IfNone
, a unique name NewObject_xxxxxx will be assigned)- matname
str
, default=None Name of the material. The default is
None
. IfNone
, the default material is assigned.- non_modelbool,
optional
Either if create the new object as model or non-model. The default is
False
.- **kwargs
optional
Additional keyword arguments may be passed when creating the primitive to set properties. See
pyaedt.modeler.cad.object3d.Object3d
for more details.
- position
- Returns:
pyaedt.modeler.cad.object3d.Object3d
Object 3d.
References
>>> oEditor.CreateEllipse
Examples
>>> ellipse1 = aedtapp.modeler.create_ellipse([0, -2, -2], 4.0, 0.2) >>> ellipse2 = aedtapp.modeler.create_ellipse(position=[0, -2, -2], major_radius=4.0, ratio=0.2, ... name="MyEllipse", matname="Copper")