expand#
- Modeler3DLayout.expand(assignment, size=1, expand_type='ROUND', replace_original=False)[source]#
Expand the object by a specific size.
- Parameters:
- assignment
str
Name of the object.
- size
float
,optional
Size of the expansion. The default is
1
.- expand_type
str
,optional
Type of the expansion. Options are
"ROUND"
,"MITER"
, and"CORNER"
. The default is"ROUND"
.- replace_originalbool,
optional
Whether to replace the original object. The default is
False
, in which case a new object is created.
- assignment
- Returns:
str
Name of the object.
References
>>> oEditor.Expand
Examples
>>> from ansys.aedt.core import Hfss3dLayout >>> h3d=Hfss3dLayout(version="2021.2") >>> h3d.modeler.layers.add_layer("TOP") >>> h3d.modeler.create_rectangle("TOP", [20,20],[50,50], name="rect_1") >>> h3d.modeler.create_line("TOP",[[25,25],[40,40]]) >>> out1 = h3d.modeler.expand("line_3") >>> print(out1) line_4