+.. |Cone_button.icon| image:: images/Cone_button.png
Cone
====
To create a Cone in the active part:
#. select in the Main Menu *Primitives - > Cone* item or
-#. click **Cone** button in the toolbar
-
-.. image:: images/Cone_button.png
- :align: center
-
-.. centered::
- **Cone** button
+#. click |Cone_button.icon| **Cone** button in the toolbar
The following property panel appears.
-.. image:: images/Cone.png
- :align: center
+.. figure:: images/Cone.png
+ :align: center
-.. centered::
Cone property panel
Input fields:
- **Top radius**;
- **Height**.
-**TUI Command**: *model.addCone(Part_doc, Point, Axis, Radius1, Radius2, Height)*
+**TUI Command**:
+
+.. py:function:: model.addCone(Part_doc, Point, Axis, Radius1, Radius2, Height)
-**Arguments**: Part + 1 vertex + 1 vector + 3 real values (base and top radii, heght).
+ :param part: The current part object.
+ :param object: Vertex.
+ :param object: Axis.
+ :param real: Radius 1.
+ :param real: Radius 2.
+ :param real: Height.
+ :return: Result object.
Result
""""""
If the radii are equal, the Cylinder will be created instead of cone.
-.. image:: images/Cone_res.png
- :align: center
+.. figure:: images/Cone_res.png
+ :align: center
-.. centered::
Cone created
**See Also** a sample TUI Script of :ref:`tui_create_cone` operation.