6 The feature Box creates a box solid.
8 To create a Box in the active part:
10 #. select in the Main Menu *Primitives - > Box* item or
11 #. click **Box** button in the toolbar:
13 .. image:: images/box.png
19 There are 2 algorithms for creation of a Box:
21 .. image:: images/box_2pt_32x32.png
25 .. image:: images/box_dxyz_32x32.png
33 Box is created by dimensions along X, Y, Z axis starting from the origin.
35 .. image:: images/Box_dimensions.png
40 - **DX**, **DY**, **DZ** define sizes of the box along corresponding coordinate axes.
42 **TUI Command**: *model.addBox(Part_doc, DX, DY, DZ)*
44 **Arguments**: Part + 3 real values (dimensions at origin).
50 Box is created by two points of the box diagonal.
52 .. image:: images/Box_2points.png
57 - **Point 1** and **Point 2** define diagonal points of the box selected in 3D OCC viewer or object browser.
59 **TUI Command**: *model.addBox(Part_doc, point1, point2)*
61 **Arguments**: Part + 2 selected points (opposite vertices of the box)
66 The edges of the created boxes are parallel to the coordinate axes.
68 .. image:: images/Boxes.png
74 **See Also** a sample TUI Script of a :ref:`tui_create_box` operation.