create_region#

Modeler3D.create_region(pad_value=300, pad_type='Percentage Offset', name='Region', **kwarg)[source]#

Create an air region.

Parameters:
pad_valuefloat, str, list of floats or list 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_typestr, 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 different

directions.

namestr, optional

Region name. The default is None, in which case the name is generated automatically.

Returns:
ansys.aedt.core.modeler.cad.object_3d.Object3d

Region object.

References

>>> oEditor.CreateRegion