Draft SelectPlane/bg

Draft SelectPlane

Menu location
Utilities → Working Plane
Workbenches
Draft, BIM
Default shortcut
Draft: W P
Introduced in version
-
See also
Draft WorkingPlaneProxy

Описание

Командата Draft SelectPlane определя текущата работна равнина за чертане. Това е равнината в 3D изглед, където се създават нови обекти на чертожната маса. Работната равнина може да се основава на един от няколко presets или на селекция. Селекцията може да бъде създадена преди (pre-selection) или след (post-selection) стартиране на командата.

introduced in 1.0: За всеки 3D изглед се съхранява отделна работна равнина.

Бутонът в Draft Tray се променя в зависимост от текущата работна равнина. introduced in 1.0: Ако работната равнина не е зададена на Auto, към етикета на бутона се добавя звездичка (*), ако началото на работната равнина не съответства на глобалното начало.

Форми, създадени в различни работни равнини

Използване с предварителен избор

  1. Направете едно от следните неща:
    • Изберете един обект. Поддържат се следните обекти:
    • Select one or more subelements. You can select:
      • A vertex (introduced in 26.3). The origin of the working plane is moved to that vertex without changing its orientation.
      • Two vertices, or a straight edge (introduced in 26.3). The origin of the working plane is moved to the first selected vertex (or the start point of the edge) and the second vertex (or endpoint of the edge) defines the direction of the X-axis.
      • Three vertices, an edge and a vertex (introduced in 1.0), or two edges (introduced in 1.0). The combined vertices must define a plane. The first and second vertex define the origin and X-axis.
      • A planar curved edge. If the edge is circular or elliptical, the center of the edge defines the origin and the start point of the edge defines the direction of the X-axis. For other edges the start point defines the origin and the direction of X-axis is defined by the tangent at that point.
      • A planar face. The center of gravity of the face defines the origin. The direction of the X- and Y-axis are derived from the U- and V-vector of the face.
      • A planar face and an edge (introduced in 1.1). The start and endpoint of the edge are projected onto the face plane and define the origin and X-axis.
  2. There are several ways to invoke the command:
    • Press the button in the Draft Tray.
    • Draft: Select the Utilities → Working Plane option from the menu, or from the Tree View or 3D View context menu.
    • Draft: Use the keyboard shortcut: W then P.
  3. The working plane and the button in the Draft Tray are updated.

Usage with post-selection

  1. Invoke the command as explained above.
  2. The Working Plane Setup task panel opens. See Options for more information.
  3. Do one of the following:
  4. Click anywhere in the 3D View to confirm the selection and finish the command.
  5. The working plane and the button in the Draft Tray are updated.

Usage with presets

  1. Invoke the command as explained above.
  2. The Working Plane Setup task panel opens. See Options for more information.
  3. Press any of the buttons to finish the command.
  4. The working plane and the button in the Draft Tray are updated.

Options

Notes

Preferences

See also: Preferences Editor and Draft Preferences.

Scripting

See also: Autogenerated API documentation and FreeCAD Scripting Basics.

introduced in 1.0:

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