create_conical_rings#
- Modeler3D.create_conical_rings(axis, origin, bottom_radius, top_radius, cone_height, ring_height, thickness=None, name=None)#
Create rings in a conical shape.
- Parameters:
- axis
str
Coordinate system of the axis.
- origin
list
,optional
List of
[x, y, z]
coordinates for the center position of the bottom of the cone.- bottom_radius
float
Bottom radius of the cone.
- top_radius
float
Top radius of the cone.
- cone_height
float
Height of the cone.
- ring_height
float
Ring height.
- thickness
float
,optional
Ring thickness. The default is
None
, in which case a 2D sheet is created.- name
str
,optional
Name of the cone. The default is
None
, in which case the default name is assigned.
- axis
- Returns:
list
of
ansys.aedt.core.modeler.cad.object_3d.Object3d
, boolList of 3D object or
False
if it fails.
References
>>> oEditor.CreatePolyline >>> oEditor.SweepAroundAxis >>> oEditor.ThickenSheet
Examples
This example shows how to create rings along Z axis with a cone shape.
>>> from ansys.aedt.core import Hfss >>> app = Hfss() >>> position = [0,0,0] >>> cone_object = aedtapp.modeler.create_conical_rings(axis='Z', origin=[0, 0, 0], ... bottom_radius=2, top_radius=3, cone_height=4, ring_height=0.1)