5 The feature **Translation** makes translation of a selected shape.
7 To create Translation in the active part:
9 #. select in the Main Menu *Part - > Translation* item or
10 #. click **Translation** button in the toolbar
12 .. image:: images/translation_vector_32x32.png
16 **Translation** button
18 The Vector of translation can be defined in three different ways:
20 .. image:: images/translation_vector_32x32.png
22 by by axis and distance
24 .. image:: images/translation_dxyz_32x32.png
28 .. image:: images/translation_2pt_32x32.png
32 Translation by axis and distance
33 --------------------------------
35 .. image:: images/Translation1.png
39 Translation by axis and distance property panel
43 - **Main objects** panel contains shapes to be translated. Shapes are selected in 3D OCC viewer or object browser;
44 - **Axis** defines vector along which the object will be translated. Vector is edge, axis selected in 3D OCC viewer or object browser;
45 - **Distance** defines the distance along the **Vector of translation**.
47 **TUI Command**: *model.addTranslation(Part_doc, [shape], axis, dist)*
49 **Arguments**: part + list of shapes in format *model.selection(TYPE, shape)* + axis in format *model.selection(TYPE, shape)*+ real (distance value).
54 Result of operation is shifted initial shape.
56 .. image:: images/translation_vector.png
60 Translation by axis and distance
62 **See Also** a sample TUI Script of a :ref:`tui_translation_vector` operation.
67 .. image:: images/Translation2.png
71 Translation by vector property panel
75 - **Main objects** panel contains shapes to be translated. Shapes are selected in 3D OCC viewer or object browser;
76 - **DX**, **DY**, **DZ** define vector using coordinates along the axis.
78 **TUI Command**: *model.addTranslation(Part_1_doc, [shape], DX, DY, DZ)*
80 **Arguments**: part + list of shapes in format *model.selection(TYPE, shape)* + 3 real (coordinate values).
85 Result of operation is shifted initial shape.
87 .. image:: images/translation_vector.png
93 **See Also** a sample TUI Script of a :ref:`tui_translation_DXDYDZ` operation.
96 Translation by two points
97 -------------------------
99 .. image:: images/Translation3.png
103 Translation by two points property panel
107 - **Main objects** panel contains shapes to be translated. Shapes are selected in 3D OCC viewer or object browser;
108 - **Start point** defines start vector point as point or vertex selected in 3D OCC viewer or object browser;
109 - **End point** defines end vector point as point or vertex selected in 3D OCC viewer or object browser;
111 **TUI Command**: *model.addTranslation(Part_doc, [shape], point1, point2)*
113 **Arguments**: part + list of shapes in format *model.selection(TYPE, shape)* + 2 points in format *model.selection(TYPE, shape)*.
118 Result of operation is shifted initial shape.
120 .. image:: images/translation_vector.png
124 Translation by two points
126 **See Also** a sample TUI Script of a :ref:`tui_translation_2points` operation.