Draft Rectangle

From FreeCAD Documentation
Revision as of 10:54, 6 August 2014 by Mario52 (talk | contribs)

Rectangle

Emplacement du menu
Draft → Rectangle
Ateliers
Planche à dessin
Raccourci par défaut
R E
Introduit dans la version
-
Voir aussi
Cube

Description

Cet outil trace un Rectangle par la sélection de deux points opposés. La ligne nouvellement créée adopte le style de ligne actif.

Utilisation

  1. Pressez le bouton rectangle ou pressez les touches R then E.
  2. Cliquez le premier point du coin dans la vue 3D, ou tapez les coordonnées.
  3. Cliquez le deuxième point du coin opposé du Rectangle dans la vue 3D, ou tapez les coordonnées. Le rectangle, sera également une face, même s'il apparaît comme filaire.

Options

  • Press X, Y or Z after a point to constrain the next point on the given axis.
  • To enter coordinates manually, simply enter the numbers, then press ENTER between each X, Y and Z component.
  • Press R or click the checkbox to check/uncheck the Relative button. If relative mode is on, the coordinates of the next point are relative to the last one. If not, they are absolute, taken from the (0,0,0) origin point.
  • Press T or click the checkbox to check/uncheck the Continue button. If continue mode is on, the Rectangle tool will restart after you finish or close it, allowing you to draw another one without pressing the Rectangle button again.
  • Press CTRL while drawing to force snapping your point to the nearest snap location, independently of the distance.
  • Press SHIFT while drawing to constrain your next point horizontally or vertically in relation to the last one.
  • Press I or the Filled button to have the rectangle to appear as a face after it has been closed. This simply sets the View->Property of the Rectangle to "Flat lines" or "Wireframe", so it can easily be changed later.
  • Press ESC or the Cancel button to abort the current Line command.
  • Rectangles, when in "Flat Lines" display mode, can display a hatch pattern, by setting their "Pattern" property.

Properties

  • DonnéesLength: Specifies the length of the rectangle
  • DonnéesWidth: Specifies the width of the rectangle
  • DonnéesChamfer Size: Specifies the size of chamfered corners
  • DonnéesFillet Radius: Specifies a curvature radius to give to the corners of the rectangle
  • VueTexture Image: Allows to give the path to an image file to be mapped on the rectangle. It is up to you to give the rectangle the same proportion as the image if you want to avoid distortions. Blanking this property will remove the image.
  • VuePattern: Specifies a hatch pattern to fill the wire with
  • VuePattern Size: Specifies the size of the hatch pattern

Script

L'outil text-top=Rectangle Rectangle, peut être utilisé dans les macros et dans la console Python, en utilisant la fonction suivante :

 makeRectangle (length, width, [placement], [facemode])
  • Crée un objet Rectangle, avec, une longueur de direction X, et, une hauteur de direction Y.
  • Si une position est donnée, elle est utilisée.
  • Si facemode a la valeur False, le rectangle est représenté par un filaire, sinon comme une face.
  • La largeur et la couleur de ligne spécifiées seront utilisées. Retourne l'objet nouvellement créé.

Exemple:

 import FreeCAD,Draft
 Draft.makeRectangle(10,4)