create_box

Modeler3D.create_box(position, dimensions_list, name=None, matname=None)

Create a box.

Parameters
positionlist

Center point for the box in a list of [x, y, z] coordinates.

dimensions_listlist

Dimensions for the box in a list of [x, y, z] coordinates.

namestr, optional

Name of the box. The default is None, in which case the default name is assigned.

matnamestr, optional

Name of the material. The default is None, in which case the default material is assigned. If the material name supplied is invalid, the default material is assigned.

Returns
pyaedt.modeler.Object3d.Object3d

3D object.

References

>>> oEditor.CreateBox

Examples

>>> from pyaedt import hfss
>>> hfss = Hfss()
>>> origin = [0,0,0]
>>> dimensions = [10,5,20]
>>> #Material and name are not mandatory fields
>>> box_object = hfss.modeler.primivites.create_box(origin, dimensions, name="mybox", matname="copper")