Верстак 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 (also called wire), a sequence of several connected line segments.
Fillet: creates a fillet, a rounded corner, or a chamfer, a straight edge, between two selected edges.
Arc: creates a circular arc from a center, a radius, a start angle and an aperture angle.
Arc From 3 Points: creates a circular arc from three points that define its circumference.
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.
Cubic Bézier Curve: creates a Bézier curve of the third degree.
Bézier Curve: creates a Bézier curve from several points.
Point: creates a simple point.
Facebinder: creates a surface object from selected faces.
Shape From Text: creates a compound shape that represents a text string.
Hatch: creates hatches on the planar faces of a selected object.
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.
Annotation Styles: allows you to define styles that affect the visual properties of annotation-like objects.
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.
Polar Array: creates an array from a selected object by placing copies along a circle. It can optionally create a Link array.
Circular Array: creates an array from a selected object by placing copies along concentric circles. It can optionally create a Link array.
Path Array: creates an array from a selected object by placing copies along a path.
Path Link Array: idem, but create a Link array instead of a regular array.
Point Array: creates an array from a selected object by placing copies at the points from a point compound.
Point Link Array: idem, but create a Link array instead of a regular array.
Edit: puts selected objects in Draft Edit mode. In this mode the properties of objects can be edited graphically.
Highlight Subelements: temporarily highlights selected objects, or the base objects of selected objects.
Join: joins Draft Lines and Draft Wires into a single wire.
Split: splits a Draft Line or Draft Wire at a specified point or edge.
Upgrade: upgrades selected objects.
Downgrade: downgrades selected objects.
Convert Wire/B-Spline: converts Draft Wires to Draft B-splines and vice versa.
Draft to Sketch: converts Draft objects to Sketcher Sketches and vice versa.
Set Slope: slopes selected Draft Lines or Draft Wires by increasing, or decreasing, the Z coordinate of all points after the first one.
Flip Dimension: rotates the dimension text of selected Draft Dimensions 180° around the dimension line.
Shape 2D View: creates 2D projections from selected objects.
Draft Tray
Панель инструментов Draft появляется когда стартует верстак, и позволяет выбрать рабочую плоскость, вместе с некоторыми визуальными параметрами вроде цвета линии, цвета фигур, размера текста, ширина линии, и автоматической группы.
Select Plane: selects the current Draft working plane. Also available in the menu: Draft → Utilities → Select Plane.
Set Style: sets the default style for new objects. Also available in the menu: Draft → Utilities → Set Style.
Toggle Construction Mode: switches Draft construction mode on or off. Also available in the menu: Draft → Utilities → Toggle Construction Mode.
AutoGroup: changes the active Draft Layer or, optionally, the active Std Group or group-like BIM object.
Draft Scale Widget
With the Draft Scale Widget the Draft annotation scale can be specified.
Draft Snap Widget
The Draft Snap Widget can be used as an alternative for the Draft Snap toolbar.
Панель инструментов привязки Draft
Панель инструментов Draft Snap позволяет выбрать текущий режим привязки. Его кнопка остаётся ненажатой при активности режима.
Snap Lock: enables or disables snapping globally.
Snap Endpoint: snaps to the endpoints of edges.
Snap Midpoint: snaps to the midpoint of edges.
Snap Center: snaps to the center point of faces and circular edges, and to the ДанныеPlacement point of Draft WorkingPlaneProxies and Arch BuildingParts.
Snap Angle: snaps to the special cardinal points on circular edges, at multiples of 30° and 45°.
Snap Intersection: snaps to the intersection of two edges, and (introduced in 1.1) the intersection of a face and an edge.
Snap Perpendicular: snaps to the perpendicular points on faces (introduced in 0.21) and edges.
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 and edges.
Snap Ortho: snaps to imaginary lines that cross the previous point at multiples of 45°.
Snap Grid: snaps to the intersections of grid lines.
Snap Working Plane: projects snap points onto the current working plane.
Snap Dimensions: shows temporary X and Y dimensions.
Toggle Grid: changes the visibility of the grid.
Сервисные инструменты
Manage Layers: allows to manage the layers in a document. introduced in 0.21
New Named Group: creates a named Std Group and adds objects to that group.
Select Group: selects the contents of Std Groups or group-like BIM objects.
Add to Layer: adds objects to a layer, or removes them from any layer. introduced in 1.1
Add to Group: adds objects to a Std Group. It can also ungroup objects.
Add to Construction Group: adds objects to the Draft construction group.
Toggle Wireframe: switches the ВидDisplay Mode property of selected objects between
Flat LinesandWireframe.
Working Plane Proxy: creates a working plane proxy to save the current Draft working plane.
Меню Вспомогательные
Дополнительные инструменты доступны из меню Draft → Вспомогательные, или через контекстное меню по правому клику мыши, зависящее от выбранного объекта.
Apply Current Style: applies the current style settings to selected objects.
New Layer: creates a Draft Layer.
Heal: heals problematic Draft objects found in very old files.
Show Snap Toolbar: shows the Draft Snap toolbar.
Дополнительные возможности
- Геометрические ограничения: ограничивает указатель в горизонтальном или вертикальном перемещении относительно предыдущей точки.
- Привязка: позволяет разместить новые точки на специальных частях существующих объектов или на сетке.
- Construction Mode: позволяет создавать отдельную от остальной геометрию, просто включая или выключая этот режим.
- Рабочая плоскость: позволяет задать плоскость в трёхмерном пространстве, где будут проводиться операции с плоскими фигурами
The following additional options are available in the Tree View context menu:
Default options
For most Draft objects the following option is available:
- Edit: edits the object. Depending on the object type either Draft Edit or a dedicated edit solution is used. introduced in 0.21
If there is an active document the context menu contains an additional sub-menu:
- Utilities: a subset of the tools available in the main Draft Utilities menu.
Layer container options
For a Draft LayerContainer these additional options are available:
Add New Layer: adds a new layer to the current document.
Reassign Properties of All Layers: removes overrides from objects in all layers. introduced in 1.1
Merge Layer Duplicates: merges all layers with the same base label.
Layer options
For a Draft Layer these additional options are available:
Activate Layer: activates the selected layer.
Reassign Properties of Layer: removes overrides from objects in the layer. introduced in 1.1
Select Layer Contents: selects the objects inside the selected layer.
Text options
For a Draft Text and a Draft Label that contains one or more hyperlinks, to a local or remote file or an URL, this additional option is available:
- Open Links: the hyperlinks are opened in the appropriate application (as defined by the OS). There is a warning in the case of multiple hyperlinks. introduced in 1.0
Wire options
For a Draft Line and a Draft Wire this additional option is available:
Flatten: flattens the wire on the current Draft working plane.
Working plane proxy options
For a Draft WorkingPlaneProxy these additional options are available:
Save Camera Position: updates the ВидView Data property of the working plane proxy with the current 3D View camera settings.
Save Visibility of Objects: updates the ВидVisibility Map property of the working plane proxy with the current visibility state of objects in the document.
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.
Text options
See above.
Устаревшее
Array: creates an orthogonal array from a selected object. The created array can be turned into a polar array or a circular array by changing its ДанныеArray Type property. obsolete in 0.19
Toggle continue mode: switches continue mode on or off. Not available in 1.0 and above.
Настройки
Preferences: общие настройки для рабочей плоскости и инструментов черчения.
Import-Export Preferences: настройки, доступные для импорта и экспорта в различные форматы файлов.
Import Export Preferences: preferences available for importing from and exporting to different file formats.
Форматы файлов
Эти функции предназначены для открытия, импорта или экспорта других форматов файлов. Открытие подразумевает открытие нового документа с содержимым файла, в то время как импортирование добавляет содержимое файла в текущий документ. Экспорт сохраняет выделенные объекты в файл. Если ничего не выбрано, будут экспортированы все объекты. Учитывайте, что задача модуля Draft - работа с плоскими объектами, так что процедуры импорта фокусируются на двумерных объектах, хотя форматы DXF и OCA так же поддерживают определения объектов в трёхмерном пространстве (объекты не обязательно плоские), они не импортируют объекты вроде сеток, трйхмерных поверхностей и так далее, а только линии, окружности, тексты или плоские фигуры. Ныне поддерживаемые форматы файлов: Верстак Draft позволяет FreeCAD импортировать и экспортировать следующие форматы файлов:
- Autodesk .DXF: импорт и экспорт файлов DXF (Drawing Exchange Format), созданных в двумерных приложениях САПР. Смотри так же FreeCAD and DXF Import.
- Autodesk .DWG: импорт и экспорт файлов DWG через экспортёр DXF при установленной утилите ODA Converter. Смотри так же FreeCAD and DWG Import.
- SVG (геометрия): импорт и экспорт файлов SVG (Scalable Vector Graphics), созданных в приложениях векторной графики
- формат Open Cad .OCA: импорт и экспорт файлов OCA/GCAD, потенциально нового формата файлов открытых САПР
- формат Airfoil Data .DAT: импорт файлов DAT, описывающих профили Airfoil.
Модульные тесты
Смотри так же: Test Workbench.
Для запуска модульных тестов рабочей среды выполните следующие действия с терминала операционной системы.
freecad -t TestDraft
Написание сценариев
Инструменты модуля Draft могут использоваться в макросах и в консоли Python, используя программный интерфейс Draft.
Рабочая среда включает модуль для создания образцов всех объектов в новом документе. introduced in 0.19
Используйте это, чтобы проверить, что все объекты произведены правильно.
import drafttests.draft_test_objects as dto
doc = dto.create_test_file()
Проверка кода этого модуля полезна, чтобы понять, как использовать интерфейс программирования.
Tutorials
- Drafting: Line, Polyline, Fillet, Arc, Arc From 3 Points, Circle, Ellipse, Rectangle, Polygon, B-Spline, Cubic Bézier Curve, Bézier Curve, Point, Facebinder, ShapeString, Hatch
- Annotation: Text, Dimension, Label, Annotation Styles, Annotation Scale
- Modification: Move, Rotate, Scale, Mirror, Offset, Trimex, Stretch, Clone, Array, Polar Array, Circular Array, Path Array, Path Link Array, Point Array, Point Link Array, Edit, Highlight Subelements, Join, Split, Upgrade, Downgrade, Convert Wire/B-Spline, Draft to Sketch, Set Slope, Flip Dimension, Shape 2D View
- Draft Tray: Working Plane, Set Style, Toggle Construction Mode, AutoGroup
- Snapping: Snap Lock, Snap Endpoint, Snap Midpoint, Snap Center, Snap Angle, Snap Intersection, Snap Perpendicular, Snap Extension, Snap Parallel, Snap Special, Snap Near, Snap Ortho, Snap Grid, Snap Working Plane, Snap Dimensions, Toggle Grid
- Miscellaneous: Apply Current Style, New Layer, Manage Layers, New Named Group, SelectGroup, Add to Layer, Add to Group, Add to Construction Group, Toggle Wireframe, Working Plane Proxy, Heal, Show Snap Toolbar
- Additional: Constraining, Pattern, Preferences, Import Export Preferences, DXF/DWG, SVG, OCA, DAT
- Context menu:
- Most objects: Edit
- Layer container: Add New Layer, Reassign Properties of All Layers, Merge Layer Duplicates
- Layer: Activate Layer, Reassign Properties of Layer, Select Layer Contents
- Text and label: Open Links
- Wire: Flatten
- Working plane proxy: Save Camera Position, Save Visibility of Objects
- Начинающим
- Установка: Загрузка, Windows, Linux, Mac, Дополнительных компонентов, Docker, AppImage, Ubuntu Snap
- Базовая: О FreeCAD, Интерфейс, Навигация мыши, Методы выделения, Имя объекта, Настройки, Верстаки, Структура документа, Свойства, Помоги FreeCAD, Пожертвования
- Помощь: Учебники, Видео учебники
- Верстаки: Std Base, Arch, Assembly, CAM, Draft, FEM, Inspection, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Surface, TechDraw, Test Framework
