5 The feature Axis creates a new constructive axis line.
7 Axis is a construction object and it can be created as in a part as in part set. To create an axis:
9 #. select in the Main Menu *Construction - > Axis* item or
10 #. click **Axis** button in the toolbar
12 .. image:: images/axis_button.png
18 There are 6 algorithms for creation of an Axis:
20 .. image:: images/axis_dxyz_32x32.png
22 **By three dimensions** creates an axis by dimensions along X, Y, Z axes starting form existing origin.
24 .. image:: images/by_two_points_32x32.png
26 **By two points** creates an axis using existing points.
28 .. image:: images/axis_by_line_32x32.png
30 **By line** creates an axis using a line.
32 .. image:: images/axis_by_line_32x32.png
34 **As an axis of cilindrical face** creates an axis using a cilindrical face.
36 .. image:: images/axis_by_line_32x32.png
38 **By plane and point** creates an axis using a plane and point.
40 .. image:: images/axis_by_line_32x32.png
42 **By two planes** creates an axis as intersection of two planes.
47 .. image:: images/Axis1.png
51 **By dX, dY, dZ values**
53 In this case user has to define dX, dY, dZ values of a vector.
55 **TUI Commands**: *model.addAxis(Part_doc, 10, 10, 10)*
57 **Arguments**: Part + 3 values (dX, dY, dZ values).
62 .. image:: images/Axis2.png
68 In this case user has to select two points or vertices.
70 **TUI Commands**: *model.addAxis(Part_doc, model.selection("VERTEX", "Box_1_1/Back&Box_1_1/Left&Box_1_1/Top"), model.selection("VERTEX", "Box_1_1/Front&Box_1_1/Right&Box_1_1/Bottom"))*
72 **Arguments**: Part + 2 vertices.
77 .. image:: images/Axis3.png
83 In this case user has to select a linear edge.
85 **TUI Commands**: *model.addAxis(Part_doc, model.selection("EDGE", "Box_1_1/Left&Box_1_1/Top"))*
87 **Arguments**: Part + edge.
89 As an axis of cilindrical face
90 """"""""""""""""""""""""""""""
92 .. image:: images/Axis4.png
98 In this case user has to select a cylindrical face. Axis of the cylinder will define an axis object.
100 **TUI Commands**: *model.addAxis(Part_doc, model.selection("FACE", "Cylinder_1_1/Face_1"))*
102 **Arguments**: Part + cylindrical face.
107 .. image:: images/Axis5.png
111 **By a plane and point**
113 In this case user has to select a point or vertex and plane (or planar face). Axis will be defined as a normal from the point to the plane.
115 **TUI Commands**: *model.addAxis(Part_doc, model.selection("FACE", "Box_1_1/Front"), model.selection("VERTEX", "Box_1_1/Back&Box_1_1/Right&Box_1_1/Top"))*
117 **Arguments**: Part + plane + point.
122 .. image:: images/Axis6.png
128 In this case user has to select two planes. Intersection of that planes defines an axis. User can define offset for axis definition from both planes.
130 **TUI Commands**: *model.addAxis(Part_doc, model.selection("FACE", "Box_1_1/Top"), 5, False, model.selection("FACE", "Box_1_1/Front"), 3, False)*
132 **Arguments**: Part + plane + offcet value + is reversed flag + plane + offcet value + is reversed flag.
137 The Result of the operation will be an axis:
139 .. image:: images/CreatedAxis.png
145 **See Also** a sample TUI Script of a :ref:`tui_create_axis` operation.