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 .. figure:: images/point_by_xyz_32x32.png
20 **By X,Y,Z** creates a point by three coordinates.
22 .. figure:: images/point_by_distance_on_edge_32x32.png
26 **By distance on edge** creates a point on an edge.
28 .. figure:: images/point_by_projection_32x32.png
32 **By projection on edge or plane** creates a point by projecting an existing point on an edge or plane.
34 .. figure:: images/point_by_intersection_32x32.png
38 **By intersection of objects** creates a point by intersection of planes or/ and edges.
40 .. figure:: images/point_by_geometrical_property_32x32.png
44 **By geometrical property of object** creates a point in COG or center of arc or circle.
46 --------------------------------------------------------------------------------
51 .. figure:: images/Point1.png
54 **By X,Y,Z coordinates**
56 A point is created by X, Y, and Z coordinates.
60 .. py:function:: model.addPoint(Part_doc, 50, 50, 50)
62 :param part: The current part object.
66 :return: Result object.
71 The Result of the operation will be a construction point:
73 .. figure:: images/CreatePoint1.png
76 **Point by coordinates**
78 **See Also** a sample TUI Script of :ref:`tui_create_point_xyz` operation.
83 .. figure:: images/Point2.png
88 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 corresponding check-box.
92 .. py:function:: model.addPoint(Part_doc, model.selection("EDGE", "Box_1_1/Left&Box_1_1/Top"), 0.5, True, False)
94 :param part: The current part object.
95 :param object: An edge.
97 :param boolean: Is by ratio.
98 :param boolean: Is reversed.
99 :return: Result object.
104 The Result of the operation will be a construction point created on edge:
106 .. figure:: images/CreatePoint2.png
109 **Point created on edge**
111 **See Also** a sample TUI Script of :ref:`tui_create_point_edge` operation.
113 By projection on edge or plane
114 ------------------------------
116 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:
120 .. figure:: images/Point3.png
123 **By projection on an edge**
127 .. figure:: images/Point3-1.png
130 **By projection on a plane**
133 The new point will be created by projection of the selected point on the selected object.
137 .. 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"))
139 :param part: The current part object.
140 :param object: A vertex.
141 :param object: An edge or plane.
142 :return: Result object.
147 The Result of the operation will be a construction point created by projection on a plane or an edge:
149 .. figure:: images/CreatePoint3.png
152 **Point created by projection on a plane**
154 **See Also** a sample TUI Script of :ref:`tui_create_point_projection` operation.
156 By intersection of objects
157 --------------------------
159 A point can be created by intersection of selected objects:
163 .. figure:: images/Point4.png
166 **Intersection of edges**
170 .. figure:: images/Point4-1.png
173 **Intersection of and edge and a plane**
175 In this case it is possible to define an offset from a plane along the plane normal for the created point.
179 .. figure:: images/Point4-2.png
182 **Intersection of three planes**
184 The new point will be defined by intersection of the selected objects.
188 .. 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)
190 :param part: The current part object.
191 :param object: An edge.
192 :param object: A plane.
194 :param boolean: Is offset reversed.
195 :return: Result object.
200 The Result of the operation will be a construction point created by intersection of objects:
202 .. figure:: images/CreatePoint4.png
205 **Point created by intersection of axis**
207 **See Also** a sample TUI Script of :ref:`tui_create_point_intersection` operation.
209 By geometrical property of object
210 ---------------------------------
212 It is possible to use the following property of selected object:
214 **A center of gravity**
216 .. figure:: images/Point5.png
219 **By center of gravity**
221 **A center of circle or arc**
223 .. figure:: images/Point5-1.png
226 **By center of a circle**
228 To create a point, select a desirable object.
232 .. py:function:: model.addPoint(Part_1_doc, model.selection("SOLID", "Box_1_1"))
234 :param part: The current part object.
235 :param object: Solid.
236 :return: Result object.
241 The Result of the operation will be a construction point defined by object property:
243 .. figure:: images/CreatePoint5.png
246 **Point created in COG of a cylinder**
248 **See Also** a sample TUI Script of :ref:`tui_create_point_object` operation.