2 .. |point_button.icon| image:: images/point_button.png
7 Point feature creates a new construction point.
9 Point is a construction object and it can be created in a part or in a partset. To create a point:
11 #. select in the Main Menu *Construction - > Point* item or
12 #. click |point_button.icon| **Point** button in the toolbar
14 There are 5 algorithms for creation of a Point:
16 .. image:: images/point_by_xyz_32x32.png
18 **By X,Y,Z** creates a point by three coordinates.
20 .. image:: images/point_by_distance_on_edge_32x32.png
22 **By distance on edge** creates a point on an edge.
24 .. image:: images/point_by_projection_32x32.png
26 **By projection on edge or plane** creates a point by projecting an existing point on an edge or plane.
28 .. image:: images/point_by_intersection_32x32.png
30 **By intersection of objects** creates a point by intersection of planes or/ and edges.
32 .. image:: images/point_by_geometrical_property_32x32.png
34 **By geometrical property of object** creates a point in COG or center of arc or circle.
39 .. image:: images/Point1.png
43 **By X,Y,Z coordinates**
45 A point is created by X, Y, and Z coordinates.
49 .. py:function:: model.addPoint(Part_doc, 50, 50, 50)
51 :param part: The current part object.
55 :return: Result object.
60 The Result of the operation will be a construction point:
62 .. image:: images/CreatePoint1.png
66 **Point by coordinates**
68 **See Also** a sample TUI Script of :ref:`tui_create_point_xyz` operation.
73 .. image:: images/Point2.png
79 To create a point, select an edge in a viewer and define a distance along the edge, where point will be defined. This distance can be defined by an absolute value or by a relative one as a ratio to the edge length. The direction of the edge can be reversed by the corresponded check box.
83 .. py:function:: model.addPoint(Part_doc, model.selection("EDGE", "Box_1_1/Left&Box_1_1/Top"), 0.5, True, False)
85 :param part: The current part object.
86 :param object: An edge.
88 :param boolean: Is by ratio.
89 :param boolean: Is reversed.
90 :return: Result object.
95 The Result of the operation will be a construction point created on edge:
97 .. image:: images/CreatePoint2.png
101 **Point created on edge**
103 **See Also** a sample TUI Script of :ref:`tui_create_point_edge` operation.
105 By projection on edge or plane
106 ------------------------------
108 To create a point by projection it is necessary to select an existing point or wertex which will be projected and an edge or a plane (planar face) on which it will be projected:
112 .. image:: images/Point3.png
116 **By projection on an edge**
120 .. image:: images/Point3-1.png
124 **By projection on a plane**
127 The new point will be created by projection of the selected point on the selected object.
131 .. py:function:: model.addPoint(Part_doc, model.selection("VERTEX", "Box_1_1/Front&Box_1_1/Left&Box_1_1/Top"), model.selection("EDGE", "Box_1_1/Right&Box_1_1/Top"))
133 :param part: The current part object.
134 :param object: A vertex.
135 :param object: An edge or plane.
136 :return: Result object.
141 The Result of the operation will be a construction point created by projection on a plane or an edge:
143 .. image:: images/CreatePoint3.png
147 **Point created by projection on a plane**
149 **See Also** a sample TUI Script of :ref:`tui_create_point_projection` operation.
151 By intersection of objects
152 --------------------------
154 A point can be created by intersection of selected objects:
158 .. image:: images/Point4.png
162 **Intersection of edges**
166 .. image:: images/Point4-1.png
170 **Intersection of and edge and a plane**
172 In this case it is possible to define an offset from a plane along the plane normal for the created point.
176 .. image:: images/Point4-2.png
180 **Intersection of three planes**
182 The new point will be defined by intersection of the selected objects.
186 .. py:function:: model.addPoint(Part_doc, model.selection("EDGE", "Box_1_1/Front&Box_1_1/Top"), model.selection("FACE", "Box_1_1/Left"), 10, False)
188 :param part: The current part object.
189 :param object: An edge.
190 :param object: A plane.
192 :param boolean: Is offset reversed.
193 :return: Result object.
198 The Result of the operation will be a construction point created by intersection of objects:
200 .. image:: images/CreatePoint4.png
204 **Point created by intersection of axis**
206 **See Also** a sample TUI Script of :ref:`tui_create_point_intersection` operation.
208 By geometrical property of object
209 ---------------------------------
211 It is possible to use the following property of selected object:
213 **A center of gravity**
215 .. image:: images/Point5.png
219 **By center of gravity**
221 **A center of circle or arc**
223 .. image:: images/Point5-1.png
227 **By center of a circle**
229 To create a point, select a desirable object.
233 .. py:function:: model.addPoint(Part_1_doc, model.selection("SOLID", "Box_1_1"))
235 :param part: The current part object.
236 :param object: Solid.
237 :return: Result object.
242 The Result of the operation will be a construction point defined by object property:
244 .. image:: images/CreatePoint5.png
248 **Point created in COG of a cylinder**
250 **See Also** a sample TUI Script of :ref:`tui_create_point_object` operation.