5 Axis feature creates a new constructive axis line.
7 Axis is a construction object and it can be created in a part or in a partset. 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 cylindrical face** creates an axis using a cylindrical 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 the intersection of two planes.
47 .. image:: images/Axis1.png
51 **By dX, dY, dZ values**
53 An axis is defined by dX, dY and 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 The Result of the operation will be an axis defined by vector from origin:
64 .. image:: images/CreatedAxis1.png
68 **Axis by three dimensions**
70 **See Also** a sample TUI Script of :ref:`tui_create_axis_xyz` operation.
76 .. image:: images/Axis2.png
82 An axis is defined by two points or vertices.
84 **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"))*
86 **Arguments**: Part + 2 vertices.
88 **See Also** a sample TUI Script of :ref:`tui_create_axis_points` operation.
93 The Result of the operation will be an axis based on two points:
95 .. image:: images/CreatedAxis2.png
99 **Axis by two points**
101 **See Also** a sample TUI Script of :ref:`tui_create_axis_points` operation.
107 .. image:: images/Axis3.png
113 An axis is defined by a linear edge.
115 **TUI Commands**: *model.addAxis(Part_doc, model.selection("EDGE", "Box_1_1/Left&Box_1_1/Top"))*
117 **Arguments**: Part + edge.
122 The Result of the operation will be an axis based on the selected line:
124 .. image:: images/CreatedAxis3.png
130 **See Also** a sample TUI Script of :ref:`tui_create_axis_line` operation.
133 As an axis of cylindrical face
134 ------------------------------
136 .. image:: images/Axis4.png
142 An axis is defined by a cylindrical face. Axis of the cylinder will be an axis object.
144 **TUI Commands**: *model.addAxis(Part_doc, model.selection("FACE", "Cylinder_1_1/Face_1"))*
146 **Arguments**: Part + cylindrical face.
151 The Result of the operation will be an axis of the selected cylinder:
153 .. image:: images/CreatedAxis4.png
157 **Axis cylindrical face**
159 **See Also** a sample TUI Script of :ref:`tui_create_axis_cylinder` operation.
165 .. image:: images/Axis5.png
169 **By a plane and point**
171 An axis is defined by a point or vertex and plane (or planar face) as a normal from the point to the plane.
173 **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"))*
175 **Arguments**: Part + plane + point.
180 The Result of the operation will be an axis:
182 .. image:: images/CreatedAxis5.png
186 **Axis by plane and point**
188 **See Also** a sample TUI Script of :ref:`tui_create_axis_plane` operation.
194 .. image:: images/Axis6.png
200 An axis is defined by two planes. The intersection of the planes defines an axis. It is possible to define offset for axis definition from both planes.
202 **TUI Commands**: *model.addAxis(Part_doc, model.selection("FACE", "Box_1_1/Top"), 5, False, model.selection("FACE", "Box_1_1/Front"), 3, False)*
204 **Arguments**: Part + plane + offset value + is reversed flag + plane + offset value + is reversed flag.
209 The Result of the operation will be an axis:
211 .. image:: images/CreatedAxis6.png
215 **Axis by two planes**
217 **See Also** a sample TUI Script of :ref:`tui_create_axis_twoplanes` operation.