create_subregion#
- Modeler3D.create_subregion(padding_values, padding_types, assignment, name=None)#
Create a subregion.
- Parameters:
- padding_values
float,str,listoffloatsorlistofstr 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
strorlistofstr,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
listofstr 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.Object3dSubregion object.
References
>>> oEditor.CreateRegion