5 Remove Sub-Shapes allows removing sub shapes from wires, shells, compsolids and compounds.
7 To Remove Sub-Shapes in the active part:
9 #. select in the Main Menu *Features - > Remove Sub-Shapes* item or
10 #. click **Remove Sub-Shapes** button in the toolbar
12 .. image:: images/remove_subshapes_btn.png
16 **Remove Sub-Shapes** button
18 The following property panel will be opened:
20 .. image:: images/RemoveSubShapes.png
26 - **Shape** shape from which sub-shapes should be removed. Only wires, shells, compsolids or compounds are allowed for selection.
28 There are 2 options for removing sub-shapes:
30 .. image:: images/remove_subshapes_32x32.png
32 **By removing** allows selecting sub-shapes to be removed.
34 - **Sub-Shapes to remove** the list of sub-shapes which should be removed.
37 | *Remove_SubShapes_1 = model.addRemoveSubShapes(Part_1_doc, object)*
38 | *Remove_SubShapes_1.setSubShapesToRemove(subShapes)*
40 **Arguments**: Part + object; List of sub-shapes to remove.
43 .. image:: images/keep_subshapes_32x32.png
45 **By keeping** allows select sub-shapes to be kept.
47 - **Sub-Shapes to keep** the list of sub-shapes which should be kept.
50 | *Remove_SubShapes_1 = model.addRemoveSubShapes(Part_1_doc, object)*
51 | *Remove_SubShapes_1.setSubShapesToKeep(subShapes)*
53 **Arguments**: Part + object; List of sub-shapes to keep.
59 The Result of the operation will be a shape without removed sub-shapes:
61 .. image:: images/remove_subshapes_result.png
67 **See Also** a sample TUI Script of :ref:`tui_create_remove_subshapes` operation.