Draft Rectangle/de: Difference between revisions
Renatorivo (talk | contribs) (Created page with "Beispiel:") |
(Updating to match new version of source page) |
||
(41 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
<languages/> |
|||
{{GuiCommand/de|Name=Draft Rectangle|Name/de=Draft Rectangle|Workbenches=[[Draft Module/de|Draft]], [[Arch Module/de|Arch]]|MenuLocation=Draft -> Rectangle|Shortcut=R E|SeeAlso=[[Part Box/de|Part Box]]}} |
|||
{{Docnav/de |
|||
==Description== |
|||
|[[Draft_Ellipse/de|Ellipse]] |
|||
The rectangle tool creates a rectangle by picking two opposite points. It takes the [[Draft Linestyle|linewidth and color]] previously set on the Tasks tab. |
|||
|[[Draft_Polygon/de|Polygon]] |
|||
|[[Draft_Workbench/de|Draft]] |
|||
|IconL=Draft_Ellipse.svg |
|||
|IconR=Draft_Polygon.svg |
|||
|IconC=Workbench_Draft.svg |
|||
}} |
|||
{{GuiCommand/de |
|||
|Name=Draft Rectangle |
|||
|Name/de=Draft Rechteck |
|||
|MenuLocation=Entwurf → Rechteck |
|||
|Workbenches=[[Draft_Workbench/de|Draft]], [[Arch_Workbench/de|Arch]] |
|||
|Shortcut={{KEY|R}} {{KEY|E}} |
|||
|SeeAlso=[[Part Box/de|Part Würfel]] |
|||
}} |
|||
<span id="Description"></span> |
|||
==Beschreibung== |
|||
Der Befehl [[Image:Draft_Rectangle.svg|24px]] '''Draft Rechteck''' erstellt ein Rechteck aus zwei Punkten auf der aktuellen [[Draft_SelectPlane/de|Arbeitsebene]]. |
|||
Du kannst optional eine 45-Grad-Fase oder eine runde Verrundung zu jeder Ecke des Rechtecks hinzufügen, und du kannst das Rechteck in eine Reihe von gleich großen Reihen und Spalten unterteilen. |
|||
[[Image:Draft_Rectangle_example.jpg|400px]] |
[[Image:Draft_Rectangle_example.jpg|400px]] |
||
{{Caption|Ein durch zwei Punkte festgelegtes Rechteck}} |
|||
<span id="Usage"></span> |
|||
==How to use== |
|||
==Anwendung== |
|||
# Press the {{KEY|[[Image:Draft Rectangle.png|16px]] [[Draft Rectangle]]}} button, or press {{KEY|R}} then {{KEY|E}} keys |
|||
# Click a first corner point on the 3D view, or type a [[Draft_Coordinates|coordinate]] |
|||
See also: [[Draft_Tray|Draft Tray]], [[Draft_Snap|Draft Snap]] and [[Draft_Constrain|Draft Constrain]]. |
|||
# Click another opposite point on the 3D view, or type a [[Draft_Coordinates|coordinate]]. The rectangle will also be a face, even if it appears as wireframe. |
|||
# There are several ways to invoke the command: |
|||
#* Press the {{Button|[[Image:Draft_Rectangle.svg|16px]] [[Draft_Rectangle|Rectangle]]}} button. |
|||
#* Select the {{MenuCommand|Drafting → [[Image:Draft_Rectangle.svg|16px]] Rectangle}} option from the menu. |
|||
#* Use the keyboard shortcut: {{KEY|R}} then {{KEY|E}}. |
|||
# The {{MenuCommand|Rectangle}} task panel opens. See [[#Options|Options]] for more information. |
|||
# Pick the first point in the [[3D_view|3D view]], or type coordinates and press the {{Button|[[Image:Draft_AddPoint.svg|16px]] Enter point}} button. |
|||
# Pick the second point in the [[3D_view|3D view]], or type coordinates and press the {{Button|[[Image:Draft_AddPoint.svg|16px]] Enter point}} button. This point must not be constrained to the X, Y or Z axis. |
|||
==Options== |
==Options== |
||
* Press {{KEY|X}}, {{KEY|Y}} or {{KEY|Z}} after a point to constrain the next point on the given axis. |
|||
The single character keyboard shortcuts available in the task panel can be changed. See [[Draft_Preferences|Draft Preferences]]. The shortcuts mentioned here are the default shortcuts (for version 0.22). |
|||
* To enter coordinates manually, simply enter the numbers, then press {{KEY|ENTER}} between each X, Y and Z component. |
|||
* Press {{KEY|R}} or click the checkbox to check/uncheck the {{KEY|'''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. |
|||
* To manually enter coordinates enter the X, Y and Z component, and press {{KEY|Enter}} after each. Or you can press the {{Button|[[Image:Draft_AddPoint.svg|16px]] Enter point}} button when you have the desired values. It is advisable to move the pointer out of the [[3D_view|3D view]] before entering coordinates. |
|||
* Press {{KEY|T}} or click the checkbox to check/uncheck the {{KEY|'''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 {{KEY|R}} or click the {{MenuCommand|Relative}} checkbox to toggle relative mode. If relative mode is on, the coordinates of the second point are relative to the first point, else they are relative to the coordinate system origin. |
|||
* Press {{KEY|CTRL}} while drawing to force [[Draft_Snap|snapping]] your point to the nearest snap location, independently of the distance. |
|||
* Press {{KEY|G}} or click the {{MenuCommand|Global}} checkbox to toggle global mode. If global mode is on, coordinates are relative to the global coordinate system, else they are relative to the [[Draft_SelectPlane|working plane]] coordinate system. {{Version|0.20}} |
|||
* Press {{KEY|SHIFT}} while drawing to [[Draft_Constrain|constrain]] your next point horizontally or vertically in relation to the last one. |
|||
* Press {{KEY| |
* Press {{KEY|F}} or click the {{MenuCommand|Filled}} checkbox to toggle filled mode. If filled mode is on, the created rectangle will have {{PropertyData|Make Face}} set to {{TRUE}} and will have a filled face. |
||
* Press {{KEY| |
* Press {{KEY|N}} or click the {{MenuCommand|Continue}} checkbox to toggle continue mode. If continue mode is on, the command will restart after finishing, allowing you to continue creating rectangles. |
||
* Press {{KEY|S}} to switch [[Draft_Snap|Draft snapping]] on or off. |
|||
* Rectangles, when in "Flat Lines" display mode, can display a hatch pattern, by setting their "Pattern" property. |
|||
* Press {{KEY|Esc}} or the {{Button|Close}} button to abort the command. |
|||
==Notes== |
|||
* A Draft Rectangle can be edited with the [[Draft_Edit|Draft Edit]] command. |
|||
==Preferences== |
|||
See also: [[Preferences_Editor|Preferences Editor]] and [[Draft_Preferences|Draft Preferences]]. |
|||
* If the {{MenuCommand|Edit → Preferences... → Draft → General → Create Part primitives if possible}} option is checked, the command will create a [[Part_Plane|Part Plane]] instead of a Draft Rectangle. |
|||
==Properties== |
==Properties== |
||
* {{PropertyData|Length}}: Specifies the length of the rectangle |
|||
See also: [[Property_editor|Property editor]]. |
|||
* {{PropertyData|Width}}: Specifies the width of the rectangle |
|||
* {{PropertyData|Chamfer Size}}: Specifies the size of chamfered corners |
|||
A Draft Rectangle object is derived from a [[Part_Part2DObject|Part Part2DObject]] and inherits all its properties. It also has the following additional properties: |
|||
* {{PropertyData|Fillet Radius}}: Specifies a curvature radius to give to the corners of the rectangle |
|||
* {{PropertyView|Texture 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. |
|||
=== Data === |
|||
* {{PropertyView|Pattern}}: Specifies a hatch pattern to fill the wire with |
|||
* {{PropertyView|Pattern Size}}: Specifies the size of the hatch pattern |
|||
{{TitleProperty|Draft}} |
|||
* {{PropertyData|Area|Area}}: (read-only) specifies the area of the face of the rectangle. The value will be {{value|0.0}} if {{PropertyData|Make Face}} if {{FALSE}}. |
|||
* {{PropertyData|Chamfer Size|Length}}: specifies the length of the chamfers at the corners of the rectangle. |
|||
* {{PropertyData|Columns|Integer}}: specifies the number of equal-sized columns in which the rectangle is divided. |
|||
* {{PropertyData|Fillet Radius|Length}}: specifies the radius of the fillets at the corners of the rectangle. |
|||
* {{PropertyData|Height|Distance}}: specifies the height of the rectangle. |
|||
* {{PropertyData|Length|Distance}}: specifies the length of the rectangle. |
|||
* {{PropertyData|Make Face|Bool}}: specifies if the rectangle makes a face or not. If it is {{TRUE}} a face is created, otherwise only the perimeter is considered part of the object. |
|||
* {{PropertyData|Rows|Integer}}: specifies the number of equal-sized rows in which the rectangle is divided. |
|||
=== View === |
|||
{{TitleProperty|Draft}} |
|||
* {{PropertyView|Pattern|Enumeration}}: specifies the [[Draft_Pattern|Draft Pattern]] with which to fill the face of the rectangle. This property only works if {{PropertyData|Make Face}} is {{TRUE}} and if {{PropertyView|Display Mode}} is {{value|Flat Lines}}. |
|||
* {{PropertyView|Pattern Size|Float}}: specifies the size of the [[Draft_Pattern|Draft Pattern]]. |
|||
* {{PropertyView|Texture Image|File}}: specifies the path of the image file to be mapped onto the face of the rectangle. Blanking this property will remove the image. The rectangle should have the same proportions as the image to avoid distortions. |
|||
==Scripting== |
==Scripting== |
||
The Rectangle tool can by used in [[macros]] and from the python console by using the following function: |
|||
See also: [https://freecad.github.io/SourceDoc/ Autogenerated API documentation] and [[FreeCAD Scripting Basics|FreeCAD Scripting Basics]]. |
|||
<syntaxhighlight> |
|||
makeRectangle (length, width, [placement], [facemode]) |
|||
</syntaxhighlight> |
|||
To create a Draft Rectangle use the {{incode|make_rectangle}} method ({{Version|0.19}}) of the Draft module. This method replaces the deprecated {{incode|makeRectangle}} method. |
|||
* Creates a Rectangle object with length in X direction and height in Y direction. |
|||
* If a placement is given, it is used. |
|||
{{Code|code= |
|||
* If facemode is False, the rectangle is shown as a wireframe, otherwise as a face. |
|||
rectangle = make_rectangle(length, height, placement=None, face=None, support=None) |
|||
* The current Draft linewidth and color will be used. |
|||
}} |
|||
* Returns the newly created object. |
|||
* Creates a {{incode|rectangle}} object with {{incode|length}} in the X direction and {{incode|height}} in the Y direction, with units in millimeters. |
|||
* If {{incode|placement}} is {{incode|None}} the rectangle is created at the origin and the length will be parallel to the X axis. |
|||
* If {{incode|face}} is {{incode|True}}, the rectangle will make a face, that is, it will appear filled. |
|||
Beispiel: |
Beispiel: |
||
{{Code|code= |
|||
<syntaxhighlight> |
|||
import FreeCAD as App |
|||
import Draft |
|||
Draft.makeRectangle(10,4) |
|||
</syntaxhighlight> |
|||
doc = App.newDocument() |
|||
{{clear}} |
|||
<languages/> |
|||
rectangle1 = Draft.make_rectangle(4000, 1000) |
|||
rectangle2 = Draft.make_rectangle(1000, 4000) |
|||
zaxis = App.Vector(0, 0, 1) |
|||
p3 = App.Vector(1000, 1000, 0) |
|||
place3 = App.Placement(p3, App.Rotation(zaxis, 45)) |
|||
rectangle3 = Draft.make_rectangle(3500, 250, placement=place3) |
|||
doc.recompute() |
|||
}} |
|||
{{Docnav |
|||
|[[Draft_Ellipse|Ellipse]] |
|||
|[[Draft_Polygon|Polygon]] |
|||
|[[Draft_Workbench|Draft]] |
|||
|IconL=Draft_Ellipse.svg |
|||
|IconR=Draft_Polygon.svg |
|||
|IconC=Workbench_Draft.svg |
|||
}} |
|||
{{Draft Tools navi{{#translation:}}}} |
|||
{{Userdocnavi{{#translation:}}}} |
Latest revision as of 05:04, 9 January 2024
Draft Rechteck |
Menüeintrag |
---|
Entwurf → Rechteck |
Arbeitsbereich |
Draft, Arch |
Standardtastenkürzel |
R E |
Eingeführt in Version |
- |
Siehe auch |
Part Würfel |
Beschreibung
Der Befehl Draft Rechteck erstellt ein Rechteck aus zwei Punkten auf der aktuellen Arbeitsebene.
Du kannst optional eine 45-Grad-Fase oder eine runde Verrundung zu jeder Ecke des Rechtecks hinzufügen, und du kannst das Rechteck in eine Reihe von gleich großen Reihen und Spalten unterteilen.
Ein durch zwei Punkte festgelegtes Rechteck
Anwendung
See also: Draft Tray, Draft Snap and Draft Constrain.
- There are several ways to invoke the command:
- Press the Rectangle button.
- Select the Drafting → Rectangle option from the menu.
- Use the keyboard shortcut: R then E.
- The Rectangle task panel opens. See Options for more information.
- Pick the first point in the 3D view, or type coordinates and press the Enter point button.
- Pick the second point in the 3D view, or type coordinates and press the Enter point button. This point must not be constrained to the X, Y or Z axis.
Options
The single character keyboard shortcuts available in the task panel can be changed. See Draft Preferences. The shortcuts mentioned here are the default shortcuts (for version 0.22).
- To manually enter coordinates enter the X, Y and Z component, and press Enter after each. Or you can press the Enter point button when you have the desired values. It is advisable to move the pointer out of the 3D view before entering coordinates.
- Press R or click the Relative checkbox to toggle relative mode. If relative mode is on, the coordinates of the second point are relative to the first point, else they are relative to the coordinate system origin.
- Press G or click the Global checkbox to toggle global mode. If global mode is on, coordinates are relative to the global coordinate system, else they are relative to the working plane coordinate system. introduced in version 0.20
- Press F or click the Filled checkbox to toggle filled mode. If filled mode is on, the created rectangle will have DatenMake Face set to
true
and will have a filled face. - Press N or click the Continue checkbox to toggle continue mode. If continue mode is on, the command will restart after finishing, allowing you to continue creating rectangles.
- Press S to switch Draft snapping on or off.
- Press Esc or the Close button to abort the command.
Notes
- A Draft Rectangle can be edited with the Draft Edit command.
Preferences
See also: Preferences Editor and Draft Preferences.
- If the Edit → Preferences... → Draft → General → Create Part primitives if possible option is checked, the command will create a Part Plane instead of a Draft Rectangle.
Properties
See also: Property editor.
A Draft Rectangle object is derived from a Part Part2DObject and inherits all its properties. It also has the following additional properties:
Data
Draft
- DatenArea (
Area
): (read-only) specifies the area of the face of the rectangle. The value will be0.0
if DatenMake Face iffalse
. - DatenChamfer Size (
Length
): specifies the length of the chamfers at the corners of the rectangle. - DatenColumns (
Integer
): specifies the number of equal-sized columns in which the rectangle is divided. - DatenFillet Radius (
Length
): specifies the radius of the fillets at the corners of the rectangle. - DatenHeight (
Distance
): specifies the height of the rectangle. - DatenLength (
Distance
): specifies the length of the rectangle. - DatenMake Face (
Bool
): specifies if the rectangle makes a face or not. If it istrue
a face is created, otherwise only the perimeter is considered part of the object. - DatenRows (
Integer
): specifies the number of equal-sized rows in which the rectangle is divided.
View
Draft
- AnsichtPattern (
Enumeration
): specifies the Draft Pattern with which to fill the face of the rectangle. This property only works if DatenMake Face istrue
and if AnsichtDisplay Mode isFlat Lines
. - AnsichtPattern Size (
Float
): specifies the size of the Draft Pattern. - AnsichtTexture Image (
File
): specifies the path of the image file to be mapped onto the face of the rectangle. Blanking this property will remove the image. The rectangle should have the same proportions as the image to avoid distortions.
Scripting
See also: Autogenerated API documentation and FreeCAD Scripting Basics.
To create a Draft Rectangle use the make_rectangle
method (introduced in version 0.19) of the Draft module. This method replaces the deprecated makeRectangle
method.
rectangle = make_rectangle(length, height, placement=None, face=None, support=None)
- Creates a
rectangle
object withlength
in the X direction andheight
in the Y direction, with units in millimeters. - If
placement
isNone
the rectangle is created at the origin and the length will be parallel to the X axis. - If
face
isTrue
, the rectangle will make a face, that is, it will appear filled.
Beispiel:
import FreeCAD as App
import Draft
doc = App.newDocument()
rectangle1 = Draft.make_rectangle(4000, 1000)
rectangle2 = Draft.make_rectangle(1000, 4000)
zaxis = App.Vector(0, 0, 1)
p3 = App.Vector(1000, 1000, 0)
place3 = App.Placement(p3, App.Rotation(zaxis, 45))
rectangle3 = Draft.make_rectangle(3500, 250, placement=place3)
doc.recompute()
- Drafting: Line, Polyline, Fillet, Arc, Arc by 3 points, Circle, Ellipse, Rectangle, Polygon, B-spline, Cubic Bézier curve, Bézier curve, Point, Facebinder, ShapeString, Hatch
- Annotation: Text, Dimension, Label, Annotation styles, Annotation scale
- Modification: Move, Rotate, Scale, Mirror, Offset, Trimex, Stretch, Clone, Array, Polar array, Circular array, Path array, Path link array, Point array, Point link array, Edit, Subelement highlight, Join, Split, Upgrade, Downgrade, Wire to B-spline, Draft to sketch, Set slope, Flip dimension, Shape 2D view
- Draft Tray: Select plane, Set style, Toggle construction mode, AutoGroup
- Snapping: Snap lock, Snap endpoint, Snap midpoint, Snap center, Snap angle, Snap intersection, Snap perpendicular, Snap extension, Snap parallel, Snap special, Snap near, Snap ortho, Snap grid, Snap working plane, Snap dimensions, Toggle grid
- Miscellaneous: Apply current style, Layer, Manage layers, Add a new named group, Move to group, Select group, Add to construction group, Toggle normal/wireframe display, Create working plane proxy, Heal, Show snap toolbar
- Additional: Constraining, Pattern, Preferences, Import Export Preferences, DXF/DWG, SVG, OCA, DAT
- Context menu:
- Layer container: Merge layer duplicates, Add new layer
- Layer: Activate this layer, Select layer contents
- Text: Open hyperlinks
- Wire: Flatten
- Working plane proxy: Write camera position, Write objects state
- Erste Schritte
- Installation: Herunterladen, Windows, Linux, Mac, Zusätzlicher Komponenten, Docker, AppImage, Ubuntu Snap
- Grundlagen: Über FreeCAD, Graphische Oberfläche, Mausbedienung, Auswahlmethoden, Objektname, Programmeinstellungen, Arbeitsbereiche, Dokumentstruktur, Objekteigenschaften, Hilf FreeCAD, Spende
- Hilfe: Tutorien, Video Tutorien
- Arbeitsbereiche: Std Base, Arch, Assembly, CAM, Draft, FEM, Inspection, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Surface, TechDraw, Test Framework