create_circle#
- Modeler2D.create_circle(origin, radius, num_sides=0, is_covered=True, name=None, material=None, non_model=False, **kwargs)#
Create a circle.
- Parameters:
- origin
list ApplicationName.modeler.Position(x,y,z) object
- radius
floatorstr Radius of the object.
- num_sides
int,optional Number of sides. The default is
0, which is correct for a circle.- is_coveredbool
Specify whether the ellipse is a sheet (covered) or a line object
- name
str,optional Name of the object. The default is
None. IfNone, a unique name"NewObject_xxxxxx"will be assigned)- material
str,optional Name of the material. The default is
None. IfNone, the default material is assigned.- non_modelbool,
optional Either to create the new object as model or non-model. The default is
False.- **kwargsoptional
Additional keyword arguments may be passed when creating the primitive to set properties. See
ansys.aedt.core.modeler.cad.object_3d.Object3dfor more details.
- origin
- Returns:
References
>>> oEditor.CreateCircle
Examples
>>> circle1 = aedtapp.modeler.create_circle([0, -2, -2], 3) >>> circle2 = aedtapp.modeler.create_circle( ... origin=[0, -2, -2], radius=3, num_sides=6, name="MyCircle", material="Copper" ... )