create_subregion#
- Modeler3D.create_subregion(padding_values, padding_types, assignment, name=None)#
Create a subregion.
- Parameters:
- padding_values
float
,str
,list
of
floats
orlist
of
str
Padding values to apply. If a list is not provided, the same value is applied to all padding directions. If a list of floats or strings is provided, the values are interpreted as padding for
["+X", "-X", "+Y", "-Y", "+Z", "-Z"]
.- padding_types
str
orlist
of
str
,optional
Padding definition. The default is
"Percentage Offset"
. Options are"Absolute Offset"
,"Absolute Position"
,"Percentage Offset"
, and"Transverse Percentage Offset"
. When using a list, different padding types can be provided for differentdirections.
- assignment
list
of
str
One or more names of the parts to include in the subregion.
- name
str
,optional
Region name. The default is
None
, in which case the name is generated automatically.
- padding_values
- Returns:
ansys.aedt.core.modeler.cad.object_3d.Object3d
Subregion object.
References
>>> oEditor.CreateRegion