Draft Workbench/ru: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Updating to match new version of source page)
Line 207: Line 207:
* [[Image:Draft_AddToGroup.svg|32px]] [[Draft_AddToGroup|Move to group...]]: moves objects to a [[Std_Group|Std Group]]. It can also ungroup objects.
* [[Image:Draft_AddToGroup.svg|32px]] [[Draft_AddToGroup|Move to group...]]: moves objects to a [[Std_Group|Std Group]]. It can also ungroup objects.


* [[Image:Draft_SelectGroup.svg|32px]] [[Draft_SelectGroup|Select group]]: selects the content of [[Draft_Layer|Draft Layers]], [[Std_Group|Std Groups]] or group-like [[Arch_Workbench|Arch]] objects.
* [[Image:Draft_SelectGroup.svg|32px]] [[Draft_SelectGroup|Select group]]: selects the contents of [[Std_Group|Std Groups]] or group-like [[Arch_Workbench|Arch]] objects.


* [[Image:Draft_AddConstruction.svg|32px]] [[Draft_AddConstruction|Add to Construction group]]: moves objects to the [[Draft_ToggleConstructionMode|Draft construction group]].
* [[Image:Draft_AddConstruction.svg|32px]] [[Draft_AddConstruction|Add to Construction group]]: moves objects to the [[Draft_ToggleConstructionMode|Draft construction group]].

Revision as of 09:59, 10 January 2022

Логотип верстака Draft на котором изображен кульман

Введение

Верстак Draft Workbench позволяет начертить простые двумерные объекты и предлагает некоторые инструменты для их последующей модификации. Он так же предоставляет инструменты для указания рабочей плоскости, сетки и привязки для точного управления расположением геометрии.

Создаваемые плоские объекты могут использоваться для общего черчения как в программах Inkscape или Autocad. Эти плоские фигуры могут так же использоваться как базовые компоненты трёхмерных объектов, создаваемых другими верстаками, например, Part и Arch. Так же возможно преобразование объектов Draft в объекты Sketch, это значит, что фигуры могут так же использоваться в верстаке PartDesign для создания твёрдых тел.

The Draft Workbench also provides tools to define a working plane, a grid, and a snapping system to precisely control the position of geometry.

FreeCAD — это, прежде всего, приложение для 3D-моделирования, и поэтому его инструменты для двумерного рисования не столь совершенны, как в других чертёжных программах. Если вашей основной целью является создание сложных 2D-чертежей и файлов в формате DXF, и вам не нужно 3D-моделирование, возможно вы захотите использовать специальное программное обеспечения для технического черчения, такое как LibreCAD, QCad, TurboCad и другие.

The image shows the grid aligned with the XY plane.
On the left, in white, several planar objects.
On the right a non-planar Draft Wire used as the Path Object of a Draft PathArray.

Drafting

  • Line: creates a straight line.
  • Polyline: creates a polyline, a sequence of several connected line segments.
  • Arc tools
  • Arc: creates a circular arc from a center, a radius, a start angle and an aperture angle.
  • Circle: creates a circle from a center and a radius.
  • Ellipse: creates an ellipse from two points defining a rectangle in which the ellipse will fit.
  • Rectangle: creates a rectangle from two points.
  • Polygon: creates a regular polygon from a center and a radius.
  • B-spline: creates a B-spline curve from several points.
  • Bézier tools
  • Point: creates a simple point.
  • Facebinder: creates a surface object from selected faces.
  • ShapeString: creates a compound shape that represents a text string.

Annotation

  • Text: creates a multi-line text at a given point.
  • Dimension: creates a linear dimension, a radial dimension or an angular dimension.
  • Label: creates a multi-line text with a 2-segment leader line and an arrow.

Modification

  • Move: moves or copies selected objects from one point to another.
  • Rotate: rotates or copies selected objects around a center point by a given angle.
  • Scale: scales or copies selected objects around a base point.
  • Mirror: creates mirrored copies from selected objects.
  • Offset: offsets each segment of a selected object over a given distance, or creates an offset copy of the selected object.
  • Trimex: trims or extends a selected object.
  • Stretch: stretches objects by moving selected points.
  • Clone: creates linked copies, clones, of selected objects.
  • Array tools
  • Path array: creates an array from a selected object by placing copies along a path.
  • Point Array: creates an array from a selected object by placing copies at the points from a point compound.
  • Edit: puts selected objects in Draft Edit mode. In this mode the properties of objects can be edited graphically.
  • Subelement highlight: temporarily highlights selected objects, or the base objects of selected objects.
  • Upgrade: upgrades selected objects.

Draft Tray

Панель инструментов Draft появляется когда стартует верстак, и позволяет выбрать рабочую плоскость, вместе с некоторыми визуальными параметрами вроде цвета линии, цвета фигур, размера текста, ширина линии, и автоматической группы.

  • Select Plane: selects the current Draft working plane. Also available in the menu: Draft → Utilities → Select Plane.
  • Toggle construction mode: switches Draft construction mode on or off. Also available in the menu: Draft → Utilities → Toggle construction mode.

Draft annotation scale widget

With the Draft annotation scale widget the Draft annotation scale can be specified. introduced in version 0.19

Draft snap widget

The Draft snap widget can be used as an alternative for the Draft Snap toolbar. introduced in version 0.19

Панель инструментов привязки Draft

Панель инструментов Draft Snap позволяет выбрать текущий режим привязки. Его кнопка остаётся ненажатой при активности режима.

  • Snap Lock: enables or disables snapping globally.
  • Snap Angle: snaps to the special cardinal points on circular edges, at multiples of 30° and 45°.
  • Snap Extension: snaps to an imaginary line that extends beyond the endpoints of straight edges.
  • Snap Parallel: snaps to an imaginary line parallel to straight edges.
  • Snap Special: snaps to special points defined by the object.
  • Snap Near: snaps to the nearest point on faces or edges.
  • Snap Ortho: snaps to imaginary lines that cross the previous point at 0°, 45°, 90° and 135°.
  • Snap Grid: snaps to the intersections of grid lines.

Сервисные инструменты

Меню Вспомогательные

Дополнительные инструменты доступны из меню Draft → Вспомогательные, или через контекстное меню по правому клику мыши, зависящее от выбранного объекта.

  • Heal: heals problematic Draft objects found in very old files.

Дополнительные возможности

  • Геометрические ограничения: ограничивает указатель в горизонтальном или вертикальном перемещении относительно предыдущей точки.
  • Привязка: позволяет разместить новые точки на специальных частях существующих объектов или на сетке.
  • Construction Mode: позволяет создавать отдельную от остальной геометрию, просто включая или выключая этот режим.
  • Рабочая плоскость: позволяет задать плоскость в трёхмерном пространстве, где будут проводиться операции с плоскими фигурами

Tree view context menu

The following additional options are available in the Tree view context menu:

Default options

If there is an active document the context menu contains one additional sub-menu:

  • Utilities: a subset of the tools available in the main Draft Utilities menu.

Wire options

For a Draft Wire, Draft BSpline, Draft CubicBezCurve and Draft BezCurve this additional option is available:

  • Flatten this wire: flattens the wire based on its internal geometry. This option currently does not work properly.

Layer container options

For a Draft LayerContainer these additional options are available:

  • Merge layer duplicates: merges all layers with the same base label. This does not work in FreeCAD version 0.19.

Layer options

For a Draft Layer these additional options are available:

Working plane proxy options

For a Draft WorkingPlaneProxy these additional options are available:

  • Write objects state: updates the ВидVisibility Map property of the working plane proxy with the current visibility state of objects in the document.

3D view context menu

The following additional options are available in the 3D view context menu:

Default options

If there is an active document the context menu contains one additional sub-menu:

  • Utilities: a subset of the tools available in the main Draft Utilities menu.

Устаревшее

Эти инструменты удалены из интерфейса в v0.19, поскольку в них больше нет нужды.

Настройки

  • Preferences: общие настройки для рабочей плоскости и инструментов черчения.
  • Import-Export Preferences: настройки, доступные для импорта и экспорта в различные форматы файлов.

Форматы файлов

Эти функции предназначены для открытия, импорта или экспорта других форматов файлов. Открытие подразумевает открытие нового документа с содержимым файла, в то время как импортирование добавляет содержимое файла в текущий документ. Экспорт сохраняет выделенные объекты в файл. Если ничего не выбрано, будут экспортированы все объекты. Учитывайте, что задача модуля Draft - работа с плоскими объектами, так что процедуры импорта фокусируются на двумерных объектах, хотя форматы DXF и OCA так же поддерживают определения объектов в трёхмерном пространстве (объекты не обязательно плоские), они не импортируют объекты вроде сеток, трйхмерных поверхностей и так далее, а только линии, окружности, тексты или плоские фигуры. Ныне поддерживаемые форматы файлов: Верстак Draft позволяет FreeCAD импортировать и экспортировать следующие форматы файлов:

Модульные тесты

Смотри так же: Test Workbench.

Для запуска модульных тестов рабочей среды выполните следующие действия с терминала операционной системы.

freecad -t TestDraft

Написание сценариев

Инструменты модуля Draft могут использоваться в макросах и в консоли Python, используя программный интерфейс Draft.

Рабочая среда включает модуль для создания образцов всех объектов в новом документе. introduced in version 0.19

Используйте это, чтобы проверить, что все объекты произведены правильно.

import drafttests.draft_test_objects as dto
doc = dto.create_test_file()

Проверка кода этого модуля полезна, чтобы понять, как использовать интерфейс программирования.

Tutorials