Draft Drawing: Difference between revisions
m (moved templates out of translation tags) |
mNo edit summary |
||
(28 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<languages/> |
<languages/> |
||
<translate> |
<translate> |
||
<!--T:19--> |
<!--T:19--> |
||
{{Docnav |
{{Docnav |
||
| |
|||
|[[Draft_Clone|Clone]] |
|||
| |
|||
|[[Draft_Mirror|Mirror]] |
|||
|[[ |
|[[Draft_Workbench|Draft]] |
||
|IconL= |
|IconL= |
||
|IconR= |
|||
|IconC=Workbench_Draft.svg |
|IconC=Workbench_Draft.svg |
||
|IconR=Draft_Mirror.svg |
|||
}} |
}} |
||
<!--T:23--> |
<!--T:23--> |
||
{{VeryImportantMessage|THIS COMMAND IS OBSOLETE<br> |
|||
{{VeryImportantMessage|Development of the [[Drawing Workbench|Drawing Workbench]] stopped in FreeCAD 0.16; the new [[TechDraw Workbench|TechDraw Workbench]] aiming to replace it was introduced in v0.17. Both workbenches are still provided in v0.17, but the Drawing Workbench may be removed in future releases.}} |
|||
Both the command and the [[Drawing_Workbench|Drawing Workbench]] it works with are not available in {{VersionPlus|0.21}}. Use the [[TechDraw_Workbench|TechDraw Workbench]] and the [[TechDraw_DraftView|TechDraw DraftView]] command instead.}} |
|||
<!--T:1--> |
<!--T:1--> |
||
{{GuiCommand |
{{GuiCommand |
||
|Name=Draft Drawing |
|Name=Draft Drawing |
||
|Workbenches=[[Drawing_Workbench|Drawing]], [[Draft_Workbench|Draft]], [[Arch_Workbench|Arch]] |
|||
|MenuLocation=Drafting → Drawing |
|||
|SeeAlso=[[TechDraw_DraftView|TechDraw DraftView]] |
|||
|Workbenches=[[Draft Module|Draft]], [[Arch Module|Arch]] |
|||
|SeeAlso=[[TechDraw Workbench]], [[Draft Shape2DView]] |
|||
}} |
}} |
||
Line 26: | Line 26: | ||
<!--T:3--> |
<!--T:3--> |
||
The [[Image:Draft_Drawing.svg|24px]] '''Draft Drawing''' command inserts views of selected objects into a [[Drawing_Workbench|drawing]] page. |
|||
The Drawing tool allows you to put selected objects on a drawing sheet created with the [[Drawing Workbench|Drawing Workbench]]. If no [[Drawing templates|sheet]] exists in the document, a default one will be created. |
|||
<!--T:14--> |
<!--T:14--> |
||
This |
This command is similar to the [[Drawing_View|Drawing View]] command but is optimized for [[Draft_Workbench|Draft]] objects. Contrary to that command, it can handle specific objects such as [[Draft_Dimension|Draft Dimensions]] and [[Draft_Text|Draft Texts]], and it can render faces. |
||
⚫ | |||
This command is now obsolete. Use the [[TechDraw_Workbench|TechDraw Workbench]] and the [[TechDraw_DraftView|TechDraw DraftView]] command instead. |
|||
</translate> |
</translate> |
||
Line 35: | Line 38: | ||
<translate> |
<translate> |
||
<!--T:15--> |
<!--T:15--> |
||
{{Caption|Draft |
{{Caption|On the left the selected Draft objects. On the right the created drawing views.}} |
||
==Usage== <!--T:4--> |
==Usage== <!--T:4--> |
||
<!--T:5--> |
<!--T:5--> |
||
# To use this command in FreeCAD version 0.19 and later you need to add a button to a custom toolbar. See [[Interface_Customization|Interface Customization]]. |
|||
# Select the objects that you wish to put on a drawing sheet. |
|||
# Select one or more objects. A separate view will be created for each object. |
|||
# In the same selection, add the [[Drawing Workbench|Drawing Workbench]] page object in which you want to draw the projection of the objects. |
|||
# Optionally add a [[Drawing_Workbench|Drawing]] page to the selection. If you do not, the view is inserted into the first page in the document. If there are no pages in the document a new page is created first. |
|||
# Press the {{Button|[[Image:Draft_Drawing.svg|16px]] [[ |
# Press the {{Button|[[Image:Draft_Drawing.svg|16px]] [[Draft_Drawing|Draft Drawing]]}} button. |
||
# There is a bug in the FreeCAD version 0.19 version of the command. The initial value of the {{PropertyData|Direction}} property is {{Value|[0, 0, 0]}} which is not allowed. For objects on a plane parallel to the XY plane of the global coordinate system it should be changed to {{Value|[0, 0, 1]}}. After changing this property the page and the view may need to be [[Std_Refresh|recomputed]]. |
|||
==Notes== <!--T:16--> |
|||
* The tool will work best with 2D objects from the [[Draft Workbench|Draft Workbench]] or [[Sketcher Workbench|Sketcher Workbench]]. |
|||
* The selected object can also be an [[Arch SectionPlane|Arch SectionPlane]], which will show the elements viewed by that plane. |
|||
* If there is no existing page, a new one will be created. |
|||
* If no page was selected but there is at least one in the document, the first page found will be used to put the projections. |
|||
* If you select a sheet and the objects already projected on that sheet, the projections will be updated. |
|||
==Options== <!--T:6--> |
|||
⚫ | |||
There are no options for this tool. Either it works with the selected objects or not. |
|||
==Properties== <!--T:8--> |
|||
<!--T:9--> |
|||
* {{PropertyData|Fill Style}}: specifies the fill style "concrete", "square", "simple", "wood", "line", "cross", "woodgrain", or "shape color". This property only works for closed shapes. |
|||
* {{PropertyData|Font Size}}: specifies the font size of texts and dimensions. |
|||
* {{PropertyData|Line Width}}: specifies the line width of viewed objects in millimeters. |
|||
==Scripting== <!--T:10--> |
|||
{{Emphasis|See also:}} [[Draft API|Draft API]] and [[FreeCAD Scripting Basics|FreeCAD Scripting Basics]]. |
|||
<!--T:11--> |
|||
The Drawing tool can be used in [[macros|macros]] and from the [[Python|Python]] console by using the following function: |
|||
</translate> |
|||
{{Code|code= |
|||
DrawingView = makeDrawingView(obj, page, lwmod=None, tmod=None, otherProjection=None) |
|||
}} |
|||
<translate> |
|||
<!--T:12--> |
|||
* Creates a {{incode|DrawingView}} from {{incode|obj}} in the specified {{incode|page}}. |
|||
* If given, {{incode|lwmod}} modifies line weights in percentage, and {{incode|tmod}} modifies text heights in percentage. |
|||
<!--T:17--> |
|||
The attributes of the view usually need to be modified so that it is displayed correctly in the drawing page. In particular, the position is controlled by {{incode|X}} and {{incode|Y}}, which are given in millimeters, and {{incode|Scale}} is important to correctly fit the projected shape in the page. The scale usually ranges from 1 to 0.25 (1:1 to 1:4) for small solids, and from 0.02 to 0.01 (1:50 to 1:100) for typical architectural elements. |
|||
<!--T:13--> |
|||
Example: |
|||
</translate> |
|||
{{Code|code= |
|||
import FreeCAD, Draft, Drawing |
|||
obj = Draft.makePolygon(5, 1000) |
|||
page = FreeCAD.ActiveDocument.addObject('Drawing::FeaturePage', 'Page') |
|||
page.Template = FreeCAD.getResourceDir() + 'Mod/Drawing/Templates/A3_Landscape.svg' |
|||
View = Draft.makeDrawingView(obj, page) |
|||
View.Scale = 0.02 |
|||
FreeCAD.ActiveDocument.recompute() |
|||
View.X = 200 |
|||
View.Y = 150 |
|||
FreeCAD.ActiveDocument.recompute() |
|||
}} |
|||
<translate> |
|||
<!--T:18--> |
<!--T:18--> |
||
{{Docnav |
{{Docnav |
||
| |
|||
|[[Draft_Clone|Clone]] |
|||
| |
|||
|[[Draft_Mirror|Mirror]] |
|||
|[[ |
|[[Draft_Workbench|Draft]] |
||
|IconL= |
|IconL= |
||
|IconR= |
|||
|IconC=Workbench_Draft.svg |
|IconC=Workbench_Draft.svg |
||
|IconR=Draft_Mirror.svg |
|||
}} |
}} |
||
Line 116: | Line 63: | ||
{{Draft Tools navi{{#translation:}}}} |
{{Draft Tools navi{{#translation:}}}} |
||
{{Userdocnavi{{#translation:}}}} |
{{Userdocnavi{{#translation:}}}} |
||
{{clear}} |
Latest revision as of 08:34, 20 May 2023
THIS COMMAND IS OBSOLETE
Both the command and the Drawing Workbench it works with are not available in version 0.21 and above. Use the TechDraw Workbench and the TechDraw DraftView command instead.
Both the command and the Drawing Workbench it works with are not available in version 0.21 and above. Use the TechDraw Workbench and the TechDraw DraftView command instead.
Draft Drawing |
Menu location |
---|
None |
Workbenches |
Drawing, Draft, Arch |
Default shortcut |
None |
Introduced in version |
- |
See also |
TechDraw DraftView |
Description
The Draft Drawing command inserts views of selected objects into a drawing page.
This command is similar to the Drawing View command but is optimized for Draft objects. Contrary to that command, it can handle specific objects such as Draft Dimensions and Draft Texts, and it can render faces.
This command is now obsolete. Use the TechDraw Workbench and the TechDraw DraftView command instead.
On the left the selected Draft objects. On the right the created drawing views.
Usage
- To use this command in FreeCAD version 0.19 and later you need to add a button to a custom toolbar. See Interface Customization.
- Select one or more objects. A separate view will be created for each object.
- Optionally add a Drawing page to the selection. If you do not, the view is inserted into the first page in the document. If there are no pages in the document a new page is created first.
- Press the Draft Drawing button.
- There is a bug in the FreeCAD version 0.19 version of the command. The initial value of the DataDirection property is
[0, 0, 0]
which is not allowed. For objects on a plane parallel to the XY plane of the global coordinate system it should be changed to[0, 0, 1]
. After changing this property the page and the view may need to be recomputed.
Draft
- Drafting: Line, Polyline, Fillet, Arc, Arc by 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, Subelement highlight, Join, Split, Upgrade, Downgrade, Wire to B-spline, Draft to sketch, Set slope, Flip dimension, Shape 2D view
- Draft Tray: Select 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, Layer, Manage layers, Add a new named group, Move to group, Select group, Add to construction group, Toggle normal/wireframe display, Create working plane proxy, Heal, Show snap toolbar
- Additional: Constraining, Pattern, Preferences, Import Export Preferences, DXF/DWG, SVG, OCA, DAT
- Context menu:
- Layer container: Merge layer duplicates, Add new layer
- Layer: Activate this layer, Select layer contents
- Text: Open hyperlinks
- Wire: Flatten
- Working plane proxy: Write camera position, Write objects state
User documentation
- Getting started
- Installation: Download, Windows, Linux, Mac, Additional components, Docker, AppImage, Ubuntu Snap
- Basics: About FreeCAD, Interface, Mouse navigation, Selection methods, Object name, Preferences, Workbenches, Document structure, Properties, Help FreeCAD, Donate
- Help: Tutorials, Video tutorials
- Workbenches: Std Base, Arch, Assembly, CAM, Draft, FEM, Inspection, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Start, Surface, TechDraw, Test Framework, Web
- Hubs: User hub, Power users hub, Developer hub