1 .. |bool_common.icon| image:: images/bool_common.png
6 Common feature implements a Boolean operation for extraction of a common part from a set of selected shapes.
8 To perform a Common operation in the active part:
10 #. select in the Main Menu *Features - > Common* item or
11 #. click |bool_common.icon| **Common** button in the toolbar
13 There are 2 options for creation of a Common:
15 .. image:: images/bool_common_simple.png
17 **Simple** common part between all selected objects.
19 .. image:: images/bool_common_advanced.png
21 **Advanced** common part for each object between this object and all tools.
27 .. image:: images/boolean_common_simple_property_panel.png
33 - **Objects** contains a list of objects selected in the Object Browser or in the Viewer.
34 If a subshape that belongs to a compsolid/compound was selected, other shapes of this compsolid/compound will be ignored.
35 - **See preview** button shows a result of the operation.
39 .. py:function:: model.addCommon(Part_doc, objects)
41 :param part: The current part object
42 :param list: A list of objects.
43 :return: Created object
48 The Result of the operation will be a shape which is a common for all selected shapes:
50 .. image:: images/CreatedCommon.png
56 **See Also** a sample TUI Script of :ref:`tui_create_common` operation.
61 .. image:: images/boolean_common_advanced_property_panel.png
67 - **Objects** contains a list of objects selected in the Object Browser or in the Viewer.
68 If a subshape that belongs to a compsolid/compound was selected, other shapes of this compsolid/compound will be cut from
69 other objects (to avoid self-intersection) and added to the result.
70 - **Tools** contains a list of objects selected in the Object Browser or in the Viewer, which will be fused with tool objects.
71 If a subshape that belongs to a compsolid/compound was selected, other shapes of this compsolid/compound will be ignored.
72 - **See preview** button shows a result of the operation.
76 .. py:function:: model.addCommon(Part_doc, objects, tools)
78 :param part: The current part object
79 :param list: A list of objects.
80 :param list: A list of tools.
81 :return: Created object
86 For each selected object, the common part between this object and all tools will be found:
88 .. image:: images/boolean_common_result.png
94 **See Also** a sample TUI Script of :ref:`tui_create_common` operation.