create_weave#

Weave.create_weave(app: Hfss | Maxwell3d | Q3d | Icepak, assignment: int | str | Object3d, weave_style: str | None = None, name: str | None = None) Object3d#

Create a woven yarn geometry (warp and fill) clipped to the provided reference object.

Parameters:
app:

AEDT application instance used by the Weave object.

assignmentint, str, or ansys.aedt.core.modeler.cad.object_3d.Object3d

Reference body used to create the weave.

weave_style: str, optional

Weave style. Styles are available in WEAVE_STYLES constant.

name: str, optional

Name prefix for the created weave bodies. The default is None, in which case the default name is assigned.

Returns:
Object3d

The created weave object.

Examples

>>> from ansys.aedt.core.modeler.advanced_cad.weave import Weave
>>> from ansys.aedt.core import Hfss
>>> hfss = Hfss()
>>> sub = hfss.modeler.create_box([0, 0, 0], [5, 10, 2])
>>> weave = Weave()
>>> weave.create_weave(hfss, sub)