X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchPlugin%2Fdoc%2FrectangleFeature.rst;h=8181e58b4dd42747a6d9480c87f1ab3146204eac;hb=15fc1914159f4671968f56eb32d878a022edcd8b;hp=c2afc18021a7ea2339ed1271237f3d648d73c65c;hpb=547a3952b37fe76f0d4e031a7d8a943ac6a45bb5;p=modules%2Fshaper.git diff --git a/src/SketchPlugin/doc/rectangleFeature.rst b/src/SketchPlugin/doc/rectangleFeature.rst index c2afc1802..8181e58b4 100644 --- a/src/SketchPlugin/doc/rectangleFeature.rst +++ b/src/SketchPlugin/doc/rectangleFeature.rst @@ -1,10 +1,50 @@ + .. _create_sketch_rectangle: Rectangle ========= +Rectangle feature creates a rectangle by two opposite points in the current Sketch. -.. image:: images/Rectangle.png +The result is represented in form of four Lines which compose a rectangle. +Two lines have Vertical constraint and two others have Horizontal constraint. + +To add a new Rectangle to the Sketch: + +#. select in the Main Menu *Sketch - > Rectangle* item or +#. click **Rectangle** button in Sketch toolbar: + +.. image:: images/rectangle.png + :align: center + +.. centered:: + **Rectangle** button + +The following property panel appears: + +.. image:: images/Rectangle_panel.png :align: center .. centered:: - Create a rectangle + Rectangle + +Click in the view once to set the first corner, then move the mouse and click a second time to set the opposite corner. +If an existing object is clicked, a constraint for the point will be created automatically. + +Start and end points coordinates are displayed in the property panel. + +**TUI Command**: *Sketch_1.addRectangle(X1, Y1, X2, Y2)* + +**Arguments**: 4 values (coordinates of the start and end points). + +Result +"""""" + +Created rectangle appears in the view. + +.. image:: images/Rectangle_res.png + :align: center + +.. centered:: + Rectangle created + +**See Also** a sample TUI Script of :ref:`tui_create_rectangle` operation. \ No newline at end of file