+.. |axis_button.icon| image:: images/axis_button.png
Axis
====
Axis is a construction object and it can be created in a part or in a partset. To create an axis:
#. select in the Main Menu *Construction - > Axis* item or
-#. click **Axis** button in the toolbar
-
-.. image:: images/axis_button.png
- :align: center
-
-.. centered::
- **Axis** button
+#. click |axis_button.icon| **Axis** button in the toolbar
There are 6 algorithms for creation of an Axis:
An axis is defined by dX, dY and dZ values of a vector.
-**TUI Commands**: *model.addAxis(Part_doc, 10, 10, 10)*
+**TUI Commands**:
-**Arguments**: Part + 3 values (dX, dY, dZ values).
+.. py:function:: model.addAxis(Part_doc, 10, 10, 10)
+
+ :param part: The current part object.
+ :param real: dX.
+ :param real: dY.
+ :param real: dZ.
+ :return: Result object.
Result
""""""
An axis is defined by two points or vertices.
-**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"))*
+**TUI Commands**:
+
+.. py:function:: 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"))
-**Arguments**: Part + 2 vertices.
+ :param part: The current part object.
+ :param object: Vertex 1.
+ :param object: Vertex 2.
+ :return: Result object.
**See Also** a sample TUI Script of :ref:`tui_create_axis_points` operation.
An axis is defined by a linear edge.
-**TUI Commands**: *model.addAxis(Part_doc, model.selection("EDGE", "Box_1_1/Left&Box_1_1/Top"))*
+**TUI Commands**:
-**Arguments**: Part + edge.
+.. py:function:: model.addAxis(Part_doc, model.selection("EDGE", "Box_1_1/Left&Box_1_1/Top"))
+
+ :param part: The current part object.
+ :param object: Edge.
+ :return: Result object.
Result
""""""
An axis is defined by a cylindrical face. Axis of the cylinder will be an axis object.
-**TUI Commands**: *model.addAxis(Part_doc, model.selection("FACE", "Cylinder_1_1/Face_1"))*
+**TUI Commands**:
+
+.. py:function:: model.addAxis(Part_doc, model.selection("FACE", "Cylinder_1_1/Face_1"))
-**Arguments**: Part + cylindrical face.
+ :param part: The current part object.
+ :param object: Cylindrical face.
+ :return: Result object.
Result
""""""
An axis is defined by a point or vertex and plane (or planar face) as a normal from the point to the plane.
-**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"))*
+**TUI Commands**:
-**Arguments**: Part + plane + point.
+.. py:function:: 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"))
+
+ :param part: The current part object.
+ :param object: Plane.
+ :param object: Point.
+ :return: Result object.
Result
""""""
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.
-**TUI Commands**: *model.addAxis(Part_doc, model.selection("FACE", "Box_1_1/Top"), 5, False, model.selection("FACE", "Box_1_1/Front"), 3, False)*
+**TUI Commands**:
+
+.. py:function:: model.addAxis(Part_doc, model.selection("FACE", "Box_1_1/Top"), 5, False, model.selection("FACE", "Box_1_1/Front"), 3, False)
-**Arguments**: Part + plane + offset value + is reversed flag + plane + offset value + is reversed flag.
+ :param part: The current part object.
+ :param object: Plane 1.
+ :param real: Offset value.
+ :param boolean: Is reversed.
+ :param object: Plane 2.
+ :param real: Offset value.
+ :param boolean: Is reversed.
+ :return: Result object.
Result
""""""