+.. |feature_compsolid.icon| image:: images/feature_compsolid.png
CompSolid
=========
To create a compsolid in the active part:
#. select in the Main Menu *Build - > CompSolid* item or
-#. click **CompSolid** button in the toolbar
-
-.. image:: images/feature_compsolid.png
- :align: center
-
-.. centered::
- **CompSolid** button
+#. click |feature_compsolid.icon| **CompSolid** button in the toolbar
The following property panel will be opened:
-.. image:: images/Compsolid.png
+.. figure:: images/Compsolid.png
:align: center
-.. centered::
Create a compsolid
Select one or several shapes in the viewer.
**Cancel** button cancels the operation.
-**TUI Command**: *model.addCompSolid(Part_doc, Shapes)*
+**TUI Command**:
+
+.. py:function:: model.addCompSolid(Part_doc, Shapes)
-**Arguments**: Part document + list of shapes.
+ :param part: The current part object.
+ :param list: A list of shapes.
+ :return: Result object.
Result
""""""
The result of the operation will be a compsolid created from the selected shapes:
-.. image:: images/CreateCompsolid.png
+.. figure:: images/CreateCompsolid.png
:align: center
-.. centered::
Result of the operation.
**See Also** a sample TUI Script of :ref:`tui_create_compsolid` operation.