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).
49 A solid box based on origin and with edges parallel to the coordinate axes.
51 .. image:: images/Box1.png
54 **See Also** a sample TUI Script of a :ref:`tui_create_boxdim` operation.
59 Box is created by two points of the box diagonal.
61 .. image:: images/Box_2points.png
66 - **Point 1** and **Point 2** define diagonal points of the box selected in 3D OCC viewer or object browser.
68 **TUI Command**: *model.addBox(Part_doc, point1, point2)*
70 **Arguments**: Part + 2 selected points (opposite vertices of the box)
75 A solid box based on two points and with edges parallel to the coordinate axes.
77 .. image:: images/Box2.png
83 **See Also** a sample TUI Script of a :ref:`tui_create_boxpnt` operation.