]> SALOME platform Git repositories - modules/shaper.git/blob - src/SketchPlugin/doc/sketchCopy.rst
Salome HOME
Task #3231: Sketcher Offset of a curve
[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 .. image:: images/SketchCopy_panel.png
19   :align: center
20
21 .. centered::
22    Sketch copy panel
23
24 Select a sketch feature to copy. On Apply button press the copied sketch will be created in the Object Browser tree.
25
26
27 **TUI Command**:
28
29 .. py:function:: model.copySketch(Doc, Sketch)
30
31     :param document: A document where to copy the sketch.
32     :param object: A sketch to be copied.
33     :return: Copied sketch.
34
35 **See Also** a sample TUI Script of :ref:`tui_copy_sketch` operation.