Draft SelectPlane/pl: Difference between revisions

From FreeCAD Documentation
(Created page with "==Opcje==")
(Created page with "==Uwagi==")
Line 100: Line 100:
* Press {{KEY|Esc}} or the {{Button|Close}} button to abort the command.
* Press {{KEY|Esc}} or the {{Button|Close}} button to abort the command.


==Notes==
<span id="Notes"></span>
==Uwagi==


* It can be useful to align the [[3D_view|3D view]] with the selected Draft working plane. For example after switching the working plane to Front you may want to switch to the [[Std_ViewFront|Front view]] as well.
* It can be useful to align the [[3D_view|3D view]] with the selected Draft working plane. For example after switching the working plane to Front you may want to switch to the [[Std_ViewFront|Front view]] as well.

Revision as of 13:54, 21 December 2023

Rysunek Roboczy: Wybór płaszczyzny

Lokalizacja w menu
Kreślenie → Przybory → Wybierz płaszczyznę
Środowisko pracy
Rysunek Roboczy, Architektura
Domyślny skrót
W P
Wprowadzono w wersji
-
Zobacz także
Ustaw pośrednią płaszczyznę roboczą, Pokaż / ukryj siatkę

Opis

Polecenie Wybór płaszczyzny roboczej definiuje bieżącą płaszczyznę roboczą. Jest to płaszczyzna zdefiniowana w widoku 3D, na której tworzone są nowe obiekty Rysunku Roboczego. Płaszczyzna robocza może być oparta na jednym z kilku nastaw lub na zaznaczeniu. Zaznaczenie może zostać utworzone przed (wyborem wstępnym) lub po (uruchomieniu polecenia).

introduced in version 0.22: Dla każdego widoku 3D zapisywana jest osobna płaszczyzna robocza.

Przycisk w Tacka narzędziowa zmienia swój wygląd w zależności od bieżącej płaszczyzny roboczej. dostępne w wersji 0.22: Jeśli płaszczyzna robocza nie jest ustawiona na Automatyczną, gwiazdka (*) jest dodawana do etykiety przycisku, jeśli punkt odniesienia położenia płaszczyzny roboczej nie pasuje do globalnego punktu odniesienia.

Kształty tworzone na różnych płaszczyznach roboczych.

Użycie ze wstępnym wyborem

  1. Wykonaj jedną z następujących czynności:
  2. Polecenie można wywołać na kilka sposobów:
    • Naciśnij przycisk w tacce narzędziowej.
    • Wybierz z menu opcję Narzędzia → Wybierz płaszczyznę.
    • Użyj skrótu klawiaturowego: W, a następnie P.
  3. Płaszczyzna robocza i ikona tacki narzędziowej zostaną zaktualizowane.

Użycie z wyborem w kolejnym kroku

  1. Polecenie można wywołać na kilka sposobów:
    • Naciśnij przycisk w tacce narzędziowej.
    • Wybierz z menu opcję Narzędzia → Wybierz płaszczyznę.
    • Użyj skrótu klawiaturowego: W, a następnie P.
  2. Otworzy się panel zadań Ustawienia płaszczyzny roboczej. Więcej informacji można znaleźć w sekcji Opcje.
  3. Wykonaj jedną z następujących czynności:
  4. Kliknij gdziekolwiek w oknie widoku 3D, aby potwierdzić wybór i zakończyć polecenie.
  5. Płaszczyzna robocza i ikona tacki narzędziowej zostaną zaktualizowane.

Użycie z ustawieniami wstępnymi

  1. Polecenie można wywołać na kilka sposobów:
    • Naciśnij przycisk w tacce narzędziowej.
    • Wybierz z menu opcję Narzędzia → Wybór płaszczyzny roboczej.
    • Użyj skrótu klawiaturowego: W, a następnie P.
  2. Otworzy się panel zadań Ustawienia płaszczyzny roboczej. Więcej informacji można znaleźć w sekcji Opcje.
  3. Naciśnij dowolny przycisk, aby zakończyć polecenie.
  4. Płaszczyzna robocza i ikona w tacki narzędziowej zostaną zaktualizowane.

Opcje

  • Press the Top (XY) button to align the working plane with the XY plane of the global coordinate system.
  • Press the Front (XZ) button to align the working plane with the XZ plane of the global coordinate system.
  • Press the Side (YZ) button to align the working plane with the YZ plane of the global coordinate system.
  • Press the Align to view button to align the working plane with the current 3D view. If the Center plane on view checkbox is not checked the working plane origin will match the origin of the global coordinate system, else it will match the center of the current 3D view.
  • Press the Automatic button to set the working plane to Auto. A working plane set to Auto will automatically align with the current 3D view whenever a Draft or Arch command requiring point input is started. This is equivalent to pressing the Align to view button before using the command. Additionally the working plane will align to planar faces that have been selected before starting the command, or when points on planar faces are picked during the command.
  • The Offset defines the perpendicular distance between the calculated plane and the actual working plane.
  • Check the Center plane on view checkbox to put the origin of the working plane in the center of to the current 3D view. This option can be useful in combination with the Align to view button.
  • Select a vertex in the 3D view and press the Move working plane button to move the working plane so that its origin matches the position of the selected vertex.
  • The Grid spacing defines the distance between grid lines.
  • The Main line every value determines where main grid lines are drawn. Main grid lines are slightly thicker than normal grid lines. For example if the grid spacing is 0.5 m and there is a main line every 10 lines, such a line will occur every 5 m.
  • The Grid extension value determines the number of grid lines in the X and Y direction of the grid.
  • The Snapping radius is the maximum distance at which Draft Snap Grid detects the intersections of grid lines.
  • Press the Center view button to align the 3D view with the current working plane.
  • Press the Previous button to reset the working plane to its previous position.
  • Press the Next button to reset the working plane to its next position. introduced in version 0.22
  • Press Esc or the Close button to abort the command.

Uwagi

  • It can be useful to align the 3D view with the selected Draft working plane. For example after switching the working plane to Front you may want to switch to the Front view as well.
  • The grid can be toggled with the Draft ToggleGrid command.
  • By double-clicking Draft WorkingPlaneProxies in the Tree view you can quickly switch between working planes.

Preferences

See also: Preferences Editor and Draft Preferences.

  • The grid settings in the task panel as well as several other grid settings are available as preferences: Edit → Preferences... → Draft → Grid and snapping.
  • The Snapping radius can also be changed on-the-fly (see Draft Snap) or by changing: Tools → Edit parameters... → BaseApp → Preferences → Mod → Draft → snapRange.

Scripting

See also: Autogenerated API documentation and FreeCAD Scripting Basics.

introduced in version 0.22:

The WorkingPlane module offers two classes to create working plane objects: the PlaneBase class and the PlaneGui class. The second class inherits from the first. Objects of the PlaneGui class interact with the GUI (the Draft Tray button), the 3D view and the grid. PlaneBase objects do not.

Use the get_working_plane() method of the WorkingPlane module to get an instance of the PlaneGui class linked to the current 3D view. The method either returns the existing working plane linked to the view or creates a new working plane if required.

import FreeCAD as App
import WorkingPlane

wp = WorkingPlane.get_working_plane()

origin = App.Vector(0, 0, 0)
normal = App.Vector(1, 1, 1).normalize()
offset = 17
wp.align_to_point_and_axis(origin, normal, offset)

point = App.Vector(10, 15, 2)
projection = wp.project_point(point)
print(projection)

The PlaneBase class can be used to create working planes independent of the GUI:

import WorkingPlane

wp = WorkingPlane.PlaneBase()