Sketcher WinkelFestlegen

From FreeCAD Documentation
This page is a translated version of the page Sketcher ConstrainAngle and the translation is 28% complete.
Outdated translations are marked like this.

Sketcher WinkelFestlegen

Menüeintrag
Sketch → Sketcher constraints → Winkel festlegen
Arbeitsbereich
Sketcher
Standardtastenkürzel
K A
Eingeführt in Version
-
Siehe auch
Sketcher AbstandFestlegen, Sketcher RechtwinkligFestlegen

Beschreibung

Die Randbedingung Winkel festlegen ist eine maßliche Randbedingung, die dazu dient, Winkel in der Skizze festzulegen. Sie ist in der Lage, die Neigungen einzelner Linien, Winkel zwischen den Linien, Winkel der Schnittpunkte von Kurven und Winkelbereiche von Kreisbögen festzulegen.

Anwendung

See also: Drawing aids.

Continue mode

  1. Make sure there is no selection.
  2. There are several ways to invoke the tool:
    • introduced in version 1.0: If the Dimensioning constraints preference is set to Single tool (default): press the down arrow to the right of the button and select the Constrain angle option from the dropdown.
    • If this preference has a different value (and in version 0.21 and below): press the Constrain angle button.
    • Select the Sketch → Sketcher constraints → Constrain angle option from the menu.
    • introduced in version 1.0: Right-click in the 3D view and select the Dimension → Constrain angle option from the context menu.
    • Use the keyboard shortcut: K then A.
  3. The cursor changes to a cross with the tool icon.
  4. Do one of the following:
    • Select two lines.
    • Select a point and two edges (in that order).
    • Select an edge, a point and an edge (idem).
  5. If a driving dimensional constraint is created, depending on the preferences, a dialog opens to edit its value. A negative value will reverse the angle direction.
  6. An Angle constraint is added. If a point and two edges have been selected, up to two Point to object constraints can also be added. See Examples.
  7. Optionally keep creating constraints.
  8. To finish, right-click or press Esc, or start another geometry or constraint creation tool.

Run-once mode

  1. Do one of the following:
    • Select a single line.
    • Select a single circular arc.
    • Select two lines.
    • Select a point and two edges (in any order).
  2. Invoke the tool as explained above.
  3. Optionally edit the constraint value.
  4. An Angle constraint is added. If a point and two edges have been selected, up to two Point on object constraints can also be added. See Examples.

Examples

Neigungswinkel einer Linie

Die Randbedingung legt den polaren Winkel der Linienrichtung fest. Es ist der Winkel zwischen der Linie und der X-Achse der Skizze.

Winkel eines Kreisbogens

In diesem Modus fixiert die Randbedingung die Winkelspannweite eines Kreisbogens.

Zwischen Linien

In diesem Modus legt die Randbedingung den Winkel zwischen zwei Linien fest. Es ist nicht erforderlich, dass sich die Linien schneiden.

Zwischen Kurven im Schnittpunkt (Winkel-über-Punkt)

The angle between the two edges at a given point is fixed. The point can be any point, e.g. the center of a circle, the endpoint of an edge, or the origin, it can belong to either or both edges, and it can also be a Point object. If required Point on object constraint(s) are added to ensure the point lies on both (extended) edges. These additional constraints are called helper constraints.

Skripten

Die Randbedingung WinkelFestlegen kann in Makros und von der Python-Konsole aus wie folgt erstellt werden:

# line slope angle
Sketch.addConstraint(Sketcher.Constraint('Angle',iline,angle))

# angular span of arc
Sketch.addConstraint(Sketcher.Constraint('Angle',iarc,angle))

# angle between lines
Sketch.addConstraint(Sketcher.Constraint('Angle',iline1,pointpos1,iline2,pointpos2,angle))

# angle-via-point (no helper constraints are added automatically when from python)
Sketch.addConstraint(Sketcher.Constraint('AngleViaPoint',icurve1,icurve2,geoidpoint,pointpos,angle))

wobei:

  • Sketch ein Skizzenobjekt ist
  • iline, iline1, iline2 sind ganze Zahlen, die die Zeilen durch ihre Ordnungszahlen in Sketch angeben.
  • pointpos1, pointpos2 sollte 1 für den Startpunkt und 2 für den Endpunkt sein. Die Wahl der Endpunkte ermöglicht die Einstellung des internen (oder externen) Winkels, und sie beeinflusst die Art und Weise, wie die Randbedingung auf dem Bildschirm dargestellt wird.
  • geoidpoint und pointpos in AngleViaPoint sind die Indizes, die den Schnittpunkt angeben.
  • angle ist der Winkelwert im Bogenmaß. Der Winkel wird zwischen Tangentenvektoren im Gegenuhrzeigersinn gezählt. Tangentenvektoren zeigen für die Linien von Anfang bis Ende (oder umgekehrt, wenn der Endpunkt im Modus Winkel zwischen Linien angegeben wird) und für Kreise, Bögen und Ellipsen entlang der Richtung entgegen dem Uhrzeigersinn. Die Größe wird auch als Winkel akzeptiert (z.B. App.Units.Quantity('45 deg'))

Die Seite Sketcher Skripten erklärt die Werte, die für iline, iline1, iline2, pointpos1, pointpos2, geoidpoint und pointpos verwendet werden können und enthält weitere Beispiele, wie man Randbedingungen mit Python-Skripten erstellt.