Sketcher Micro Tutorial - Constraint Practices/pl: Difference between revisions

From FreeCAD Documentation
(Created page with "2. Kliknij w przycisk {{Button|16px Utwórz nowy szkic}}. :2.1. Wybierz orientację szkicu, czyli jedną z płasz...")
(Created page with "{{Emphasis|Uwaga:}} w panelu zadań rozwinąć sekcję {{MenuCommand|Edycja kontrolek}} i upewnić się, że opcja {{MenuCommand|Automatyczne wiązania}} jest w...")
Line 36: Line 36:
:2.2 Kliknij {{Button|OK}}, aby rozpocząć tworzenie szkicu.
:2.2 Kliknij {{Button|OK}}, aby rozpocząć tworzenie szkicu.


{{Emphasis|Note:}} in the [[task_panel|task panel]] expand the {{MenuCommand|Edit controls}} section, and make sure the {{MenuCommand|Auto constraints}} option is disabled. Also turn off the grid snap, and hide the grid.
{{Emphasis|Uwaga:}} w [[task_panel|panelu zadań]] rozwinąć sekcję {{MenuCommand|Edycja kontrolek}} i upewnić się, że opcja {{MenuCommand|Automatyczne wiązania}} jest wyłączona. Wyłącz również przyciąganie do siatki i ukryj siatkę.


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">

Revision as of 19:06, 4 March 2020

Ćwiczenie
Temat
Modelowanie
Poziom trudności
początkujący
Czas wykonania
30 minut
Autorzy
Mark Stephen (Quick61) and vocx
Wersja FreeCAD
0.19
Pliki z przykładami
Sketcher: wiązania praktycznie
Zobacz również
-

Wprowadzenie

Ten tutorial został pierwotnie napisany przez Quick61 i został zaktualizowany i odnowiony przez vocx.

Witamy

Ten poradnik ma na celu pomóc nowemu użytkownikowi FreeCAD zapoznać się z technikami i najlepszymi praktykami dotyczącymi tworzenia wiązań szkicu oraz przepływem pracy Środowiska Sketcher.

Istnieje ogólna zasada dotycząca wiązań szkicownika FreeCAD, im mniej jest wiązań wymiarów, tym lepiej.

Lepiej jest używać wiązania geometryczne w miejsce wymiarowego, jeśli to możliwe. Ma to związek z wewnętrznym działaniem algorytmu wyliczającego wiązania Środowiska Sketcher.

Sposób postępowania

1. Uruchom program FreeCAD, utwórz nowy pusty dokument przez menu Plik → Nowy.

Kilka działań do zapamiętania:

  • Naciśnij prawy przycisk myszy, lub naciśnij jeden raz klawisz Esc na klawiaturze, aby wyłączyć aktywne narzędzie w trybie edycji.
  • Aby wyjść z trybu edycji szkicu, naciśnij przycisk Zamknij w panelu zadań, lub naciśnij dwukrotnie klawisz Esc na klawiaturze.
  • Aby ponownie wejść w tryb edycji, kliknij dwukrotnie na obiekt szkicu w widoku drzewa, lub wybierz go, a następnie kliknij na przycisk . Edycja szkicu.

Utwórz szkic

2. Kliknij w przycisk Utwórz nowy szkic.

2.1. Wybierz orientację szkicu, czyli jedną z płaszczyzn bazowych XY, XZ lub YZ. Będziemy korzystać z ustawień domyślnych dla płaszczyzny i opcji.
2.2 Kliknij OK, aby rozpocząć tworzenie szkicu.

Uwaga: w panelu zadań rozwinąć sekcję Edycja kontrolek i upewnić się, że opcja Automatyczne wiązania jest wyłączona. Wyłącz również przyciąganie do siatki i ukryj siatkę.

Podejście pierwsze

Jako przykład, weźmy szkic kwadratu. Na pierwszym obrazie szkic jest w pełni związany, ale używa tylko wiązań wymiarów, (odległość). To jest OK, ale zbyt skomplikowane, zagmatwane i bardziej matematycznie zaawansowane dla solvera. Chociaż nie stanowi to problemu w tak prostym przykładzie, to może stać się problemem w bardziej skomplikowanym szkicu.

3. We will draw a fully constrained square, centered at the origin.

3.1. Click on Create polyline, then trace four lines in the general shape of a rectangle around the origin.

Unconstrained rectangular sketch.

3.2. Select one horizontal line, and press Horizontal distance, then enter 20 mm.
3.3. Select the other horizontal line, and repeat the constraint with the same distance.
3.4. Select one vertical line, and press Vertical distance, then enter 20 mm.
3.5. Select the other vertical line, and repeat the constraint with the same distance.
3.6. Select one bottom corner point (a), and the origin of the sketch, and press Horizontal distance, then enter 10 mm.
3.7. Select the top corner point (b) above the previous corner point (a), and the origin of the sketch, and repeat the horizontal constraint with the same distance.
3.8. Select the other bottom corner point (c), and the origin of the sketch, and press Vertical distance, then enter 10 mm.
3.9. Select the top corner point (b) again, and the origin of the sketch, and repeat the vertical constraint with the same distance.

Left: datum constraints for the sides. Right: additional datum constraints for the interior distances.

Looking at the Constraints section in the task panel, we see that the constraints are too many; they also clutter the view of the sketch. These constraints are also computationally intensive for the solver; while this is not an issue with a simple shape, it can become one with more complex shapes.

Lepsza droga

Następny zrzut ekranu przedstawia ten sam kwadrat, ograniczony przy użyciu pewnych wiązań geometrycznych. Zastosowano poziome i pionowe wiązania geometryczne, wraz z wiązaniami wymiarów (odległości). Używając tylko poziomych i pionowych wiązań geometrycznych, można zobaczyć, że liczba wymaganych ograniczeń wymiarowych została zmniejszona. Jest to lepszy szkic z wiązaniami niż pierwszy, ale nadal nie jest to optymalny schemat wiązań dla tego kwadratu.

4. We will draw the same square fully constrained, and centered at the origin. When you create the new sketch, make sure the Auto constraints option is disabled.

4.1. Click on Create polyline, then trace four lines in the general shape of a rectangle around the origin.
4.2. Select one horizontal line, and press Horizontal.
4.3. Select the other horizontal line, and repeat the constraint.
4.4. Select one vertical line, and press Vertical.
4.5. Select the other vertical line, and repeat the constraint.

Geometrical horizontal and vertical constraints.

4.6. Select one horizontal line, and press Horizontal distance, then enter 20 mm. We see that the other horizontal line changes size at the same time.
4.7. Select one vertical line, and press Vertical distance, then enter 20 mm. We see that the other vertical line changes size at the same time.
4.8. Select one bottom corner point (a), and the origin of the sketch, and press Horizontal distance, then enter 10 mm.
4.9. Select the top corner point (b) above the previous corner point (a), and the origin of the sketch, and press Vertical distance, then enter 10 mm.

Left: datum constraints for only two sides. Right: additional datum constraints for only two interior distances.

This is a better constrained sketch than the first one. The horizontal and vertical geometric constraints allow us to use fewer datum constraints, so our sketch looks less cluttered.

Schemat optymalny

Teraz, na tym ostatnim zrzucie ekranu, jest tylko 1 wymiar, (odległość), ograniczenie, a pozostałe są to wiązania geometryczne. Jest to najlepszy sposób na związanie tego szkicu. Podczas gdy w przypadku takiego prostego szkicu, taki czy inny sposób nie jest niczym wielkim, w przypadku większych i bardziej złożonych szkiców, trzymanie się zasady minimum wymiarów okaże się korzystne dla ciebie i twoich wysiłków związanych z konstruowaniem geometrii za pomocą szkiców. Stosowane w tym szkicu wiązania geometryczne to: pozioma, pionowa, równość i symetria.

5. We will draw the same square fully constrained, and centered at the origin. When you create the new sketch, make sure the Auto constraints option is disabled.

5.1. Click on Create polyline, then trace four lines in the general shape of a rectangle around the origin.
5.2. Select one horizontal line, and press Horizontal.
5.3. Select the other horizontal line, and repeat the constraint.
5.4. Select one vertical line, and press Vertical.
5.5. Select the other vertical line, and repeat the constraint.

Geometrical horizontal and vertical constraints.

5.6. Select one bottom corner point (a), then the top corner point that is diagonally opposite, and then the origin of the sketch; then press Symmetric. The two selected points will be equidistant from the origin.
5.7. Select two adjacent sides of the rectangle (connected at one corner), and press Equal length. Notice that due to the symmetry of the corner points, all sides are now of the same size.

Left: symmetric constraint for only two corner points. Right: additional equal length distances for only two adjacent sides.

5.8. Select one horizontal line, and press Horizontal distance, then enter 20 mm. Due to the symmetric and length equality constraints previously added, we see that all sides become equal at the same time.

All geometric constraints applied, and a single datum constraint for a side.

This is the best way to constrain this sketch, as we only used one datum (dimensional) constraint.

Dodatkowe zasoby

Template:Tutorials navi/pl