1 .. |remove_subshapes_btn.icon| image:: images/remove_subshapes_btn.png
6 Remove Sub-Shapes allows removing sub shapes from wires, shells, compsolids and compounds.
8 To Remove Sub-Shapes in the active part:
10 #. select in the Main Menu *Features - > Remove Sub-Shapes* item or
11 #. click |remove_subshapes_btn.icon| **Remove Sub-Shapes** button in the toolbar
13 The following property panel will be opened:
15 .. figure:: images/RemoveSubShapes.png
20 .. |by_removing| image:: images/remove_subshapes_32x32.png
21 .. |by_keeping| image:: images/keep_subshapes_32x32.png
23 - **Shape** shape from which sub-shapes should be removed. Only wires, shells, compsolids or compounds are allowed for selection.
25 There are 2 options for removing sub-shapes:
27 |by_removing| **By removing** allows selecting sub-shapes to be removed.
29 - **Sub-Shapes to remove** the list of sub-shapes which should be removed.
33 .. py:function:: model.addRemoveSubShapes(Part_1_doc, object)
35 :param part: The current part object.
36 :param object: The object.
37 :return: Created object.
39 .. py:function:: Remove_SubShapes_1.setSubShapesToRemove(subShapes)
41 :param list: A list of objects.
43 |by_keeping| **By keeping** allows select sub-shapes to be kept.
45 - **Sub-Shapes to keep** the list of sub-shapes which should be kept.
49 .. py:function:: model.addRemoveSubShapes(Part_1_doc, object)
51 :param part: The current part object.
52 :param object: The object.
53 :return: Created object.
55 .. py:function:: Remove_SubShapes_1.setSubShapesToKeep(subShapes)
57 :param list: A list of sub-shapes to keep.
63 The Result of the operation will be a shape without removed sub-shapes:
65 .. figure:: images/remove_subshapes_result.png
70 **See Also** a sample TUI Script of :ref:`tui_create_remove_subshapes` operation.