+.. |trim.icon| image:: images/Trim.png
Trim
====
To create a Trim in the active Sketch:
#. select in the Main Menu *Sketch - > Trim* item or
-#. click **Trim** button in Sketch toolbar:
-
-.. image:: images/trim.png
- :align: center
-
-.. centered::
- **Trim** button
+#. click |trim.icon| **Trim** button in Sketch toolbar:
Property panel:
-.. image:: images/Trim_panel.png
- :align: center
+.. figure:: images/Trim_panel.png
+ :align: center
-.. centered::
Trim
Input fields:
The selected segment is highlighted in the view:
-.. image:: images/Trim_segment_sel.png
+.. figure:: images/Trim_segment_sel.png
:align: center
-.. centered::
The segment to remove
-**TUI Command**: *Sketch_1.addTrim(Feature, PositionPoint)*
+**TUI Command**:
+
+.. py:function:: Sketch_1.addTrim(Feature, PositionPoint)
+
+ :param object: Line, arc or circle.
+ :param object: Position point.
+ :return: Result object.
**Arguments**: feature (line, arc or circle) and position point (a point on or closest to the segment to remove)
Created Trim appears in the view.
-.. image:: images/Trim_res.png
- :align: center
+.. figure:: images/Trim_res.png
+ :align: center
-.. centered::
Created trim
**See Also** a sample TUI Script of :ref:`tui_create_trim` operation.