Draft Workbench/cs

Ikona pracovní plochy Draft

Úvod

Pracovní plocha Draft je primárně zaměřen na vytváření a úpravy 2D objektů ve FreeCADu. Není to však omezeno na rovinu XY globálního souřadnicového systému. Jeho objekty mohou mít libovolnou orientaci a polohu ve 3D prostoru a některé objekty typu Draft mohou být rovinné nebo nerovinné.

Objekty výkresu lze použít pro obecné kreslení, podobně jako to lze udělat s Inkscape nebo AutoCADu. Mohou však také tvořit základ pro vytváření 3D objektů na jiných pracovních plochách. Lomená čára může definovat cestu Arch stěna, Mnohoůhelník můhou být vysunuty pomocí Part vysunutí atd. Mnoho Nástrojů modifikátoru návrhu lze použít také na 2D a 3D objekty vytvořené pomocí jiných pracovních ploch. Můžete například přesunout náčrt nebo vytvořit Ortogonální pole z objektu Part.

Pracovní plocha Draft také poskytuje nástroje pro definování pracovní roviny, mřížky a systém přichytávání pro přesné ovládání polohy geometrie.

Pokud je vaším primárním cílem tvorba složitých 2D výkresů a DXF souborů a nepotřebujete 3D modelování, FreeCAD pro vás nemusí být tou správnou volbou. Místo toho můžete zvážit speciální softwarový program pro technické navrhování, jako je LibreCAD nebo QCad.

Obrázek ukazuje mřížku zarovnanou s rovinou XY.
Vlevo v bílé barvě je několik rovinných objektů.
Vpravo je nerovinný Draft multičára použitá jako objekt cesty Draft Dráha pole.

Kreslení

  • 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 Tools:
  • 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.
  • Bézier Tools:
  • Point: creates a simple point.
  • Facebinder: creates a surface object from selected faces.
  • 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.
  • Array Tools:
  • Array: creates an orthogonal array from a selected object. It can optionally create a Link array.
  • 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.
  • 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.
  • Highlight Subelements: temporarily highlights selected objects, or the base objects of selected objects.
  • Upgrade: upgrades selected objects.

Draft Tray

The Draft Tray allows selecting the working plane, defining style settings, toggling construction mode, and specifying the active layer or group.

  • Working Plane: defines the current Draft working plane. Also available in the menu: Draft → Utilities → Working 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.

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 Snap toolbar

With the Draft Snap toolbar the active snap options can be selected. The buttons belonging to active options stay depressed. For general information about snapping see: 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 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.

Draft Utilities toolbar

  • Toggle Wireframe: switches the PohledDisplay Mode property of selected objects between Flat Lines and Wireframe.

Additional tools

The Draft → Utilities menu contains several tools. Most of them can also be accessed from toolbars or the Draft Tray and have already been mentioned above. For the following tools this is not the case:

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

Přidané funkce

  • Uchopování: Umožňuje umístit nové body na zvláštní místa na existujících objektech
  • Omezování: Umožňuje umístit nové body horizontálně nebo vertikálně v relaci k předchozím bodům
  • Working plane: Allows you to define a plane in the 3D space, where next operations will take place

Tree View context menu

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

Default options

For most Draft objects the following option is available:

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:

Layer options

For a Draft Layer these additional options are available:

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:

Working plane proxy options

For a Draft WorkingPlaneProxy these additional options are available:

  • Save Visibility of Objects: updates the PohledVisibility 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.

Text options

See above.

Obsolete tools

  • 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 ÚdajeArray Type property. Not available in 0.21 and above.
  • Drawing: inserts views of selected objects into a drawing page. Not available in 0.21 and above.

Preferences

  • Preferences: general preferences for the Draft Workbench.

Souborové formáty

Kreslicí modul poskytuje FreeCADu pro import a export následující souborové formáty:

Unit tests

See also: Test Workbench.

To run the unit tests of the workbench execute the following from the operating system terminal:

freecad -t TestDraft

Skriptování

Kreslicí modul má vlastnosti kompletního Kreslicího API, takže můžete využívat jeho funkce ve skriptech a makrech

The workbench includes a module to create samples of all objects in a new document.

Use this to test that all objects are produced correctly:

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

Inspecting the code of this module can help to understand the programming interface.

Tutorials