create_region#
- Modeler3D.create_region(pad_value=300, pad_type='Percentage Offset', name='Region', **kwarg)[source]#
Create an air region.
- Parameters:
- pad_value
float
,str
,list
of
floats
orlist
of
str
,optional
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"]
.- pad_type
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.
- name
str
,optional
Region name. The default is
None
, in which case the name is generated automatically.
- pad_value
- Returns:
ansys.aedt.core.modeler.cad.object_3d.Object3d
Region object.
References
>>> oEditor.CreateRegion