Salome HOME
Cosmetics. Move XML files to the separate folder inside a corresponding project in VS.
[modules/shaper.git] / src / SketchPlugin / doc / sketchCopy.rst
1 .. _create_sketch_copy:
2 .. |SketchCopy.icon|    image:: images/SketchCopy.png
3
4 Sketch Copy
5 ===========
6
7 This macro will just copy the selected sketch feature into a new sketch feature and disappear.
8 So, the new sketch feature will be placed into the current history location with all sub-elements 
9 of the sketch copied.
10
11 To start a Sketch Copy operation:
12
13 #. select in the Main Menu *Macros - > Sketch Copy* item  or
14 #. click |SketchCopy.icon| **Sketch Copy** button in Macros toolbar:
15
16 The following property panel appears:
17
18 .. figure:: images/SketchCopy_panel.png
19    :align: center
20
21    Sketch copy panel
22
23 Select a sketch feature to copy. On Apply button press the copied sketch will be created in the Object Browser tree.
24
25
26 **TUI Command**:
27
28 .. py:function:: model.copySketch(Doc, Sketch)
29
30     :param document: A document where to copy the sketch.
31     :param object: A sketch to be copied.
32     :return: Copied sketch.
33
34 **See Also** a sample TUI Script of :ref:`tui_copy_sketch` operation.