Sketcher ConstrainAngle/pl: Difference between revisions

From FreeCAD Documentation
No edit summary
(Created page with "W tym trybie, kąt pomiędzy dwoma krzywymi jest związany w punkcie ich przecięcia. Punkt przecięcia może znajdować się na przedłużeniach krzywych. Punkt ten powinien...")
Line 74: Line 74:
[[Image:Sketcher ConsraintAngle mode4.png|600px]]
[[Image:Sketcher ConsraintAngle mode4.png|600px]]


W tym trybie, kąt pomiędzy dwoma krzywymi jest związany w punkcie ich przecięcia. Punkt przecięcia może znajdować się na przedłużeniach krzywych. Punkt ten powinien być wyraźnie określony, ponieważ krzywe zwykle przecinają się w więcej niż jednym punkcie.
In this mode, angle between two curves is constrained at the point of their intersection. The intersection point can be on curves' extensions. The point should be specified explicitly, since curves typically intersect in more than one point.


For the constraint to work correctly, the point must be on both curves. So, as the constraint is invoked, the point will be automatically constrained onto both curves ([[Sketcher helper constraint|helper constraints]] will be added, if necessary), and the angle between curves will be constrained at the point. These [[Sketcher helper constraint|helper constraints]] are plain regular constraints. They can be added manually, or deleted. There are no helper constraints on the example picture above, because the point selected is already the intersection of curves.
For the constraint to work correctly, the point must be on both curves. So, as the constraint is invoked, the point will be automatically constrained onto both curves ([[Sketcher helper constraint|helper constraints]] will be added, if necessary), and the angle between curves will be constrained at the point. These [[Sketcher helper constraint|helper constraints]] are plain regular constraints. They can be added manually, or deleted. There are no helper constraints on the example picture above, because the point selected is already the intersection of curves.

Revision as of 14:57, 7 November 2020

Szkicownik: Wiązanie kąta

Lokalizacja w menu
Szkicownik → Wiązania szkicownika → Wiązanie kąta
Środowisko pracy
Szkicownik
Domyślny skrót
A
Wprowadzono w wersji
-
Zobacz także
Szkicownik: Wiązanie odległości, Szkicownik: Wiązanie prostopadłości

Opis

Angle constraint is a datum constraint intended to fix angles in sketch. It is capable of setting slopes of individual lines, angles between lines, angles of intersections of curves, and angle spans of circular arcs.

Usage

There are four different ways the constraint can be applied:

  • to individual lines
  • between lines
  • to intersections of curves
  • to arcs of circles

To apply angle constraint, one should the follow the steps:

  1. Select one, two or three entities in the sketch. The mode will be chosen depending on the selection.
  2. Invoke the constraint using several methods:
    • Pressing the Constrain angle button in the toolbar.
    • Using the A keyboard shortcut. (A is for Angle)
    • Using the Sketch → Sketcher constraints → Constrain angle form the top menu entry
  3. A datum edit dialog box pops up.
  4. Modify the angle if necessary. Note: The angle can be entered as an expression that will be evaluated and the result will be stored.
  5. Click OK

As with any datum constraint, it is possible to change the angle value later by double-clicking the constraint in constraint list or 3d view. Entering a negative value will cause the angle direction to flip.

Constraint modes

Line slope angle

Accepted selection: line

The constraint sets the polar angle of line's direction. It is the angle between the line and X axis of the sketch.

Arc span (v0.15)

Accepted selection: arc of circle

In this mode, the constraint fixes angular span of a circular arc.

Pomiędzy liniami

Wybór zaakceptowany: linia + linia

W tym trybie wiązanie ustawia kąt pomiędzy dwoma liniami. Nie jest wymagane, aby te linie się przecinały.

Między krzywymi na przecięciu (kąt w punkcie) (v0.15)

Wybór zaakceptowany: dowolna linia / krzywa + dowolna linia / krzywa + dowolny punkt

W tym trybie, kąt pomiędzy dwoma krzywymi jest związany w punkcie ich przecięcia. Punkt przecięcia może znajdować się na przedłużeniach krzywych. Punkt ten powinien być wyraźnie określony, ponieważ krzywe zwykle przecinają się w więcej niż jednym punkcie.

For the constraint to work correctly, the point must be on both curves. So, as the constraint is invoked, the point will be automatically constrained onto both curves (helper constraints will be added, if necessary), and the angle between curves will be constrained at the point. These helper constraints are plain regular constraints. They can be added manually, or deleted. There are no helper constraints on the example picture above, because the point selected is already the intersection of curves.

Tworzenie skryptów

Ograniczenie kąta może być utworzone przez makropolecenie i z konsoli Pyton za pomocą następujących narzędzi:

# 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))

gdzie:

  • Sketch jest obiektem typu szkic,
  • iline, iline1, iline2 są liczbami całkowitymi określającymi wiersze za pomocą ich liczb porządkowych w obiekcie Sketch.
  • pointpos1, pointpos2 przyjmuje wartość 1 dla punktu początkowego i 2 dla końcowego. Wybór punktów końcowych pozwala na ustawienie kąta wewnętrznego (lub zewnętrznego), a także wpływa na sposób narysowania wiązania na ekranie,
  • geoidpoint oraz pointpos w AngleViaPoint są indeksami określającymi punkt przecięcia,
  • angle to wartość kąta w radianach. Kąt jest liczony pomiędzy wektorami stycznymi w kierunku przeciwnym do ruchu wskazówek zegara. to wartość kąta w radianach. Kąt jest liczony pomiędzy wektorami stycznymi w kierunku przeciwnym do ruchu wskazówek zegara. Wektory styczne dla linii są wskazywane od punktu początkowego do końcowego (lub odwrotnie, jeżeli punkt końcowy jest podany w trybie kąta między liniami), zgodnie z kierunkiem przeciwnym do ruchu wskazówek zegara. Ilość jest również przyjmowana jako kąt (np. App.Units.Quantity('45 deg'))