Draft Drawing: Difference between revisions

From FreeCAD Documentation
No edit summary
mNo edit summary
 
(60 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<languages/>
<translate>
<translate>

<!--T:19-->
{{Docnav
|
|
|[[Draft_Workbench|Draft]]
|IconL=
|IconR=
|IconC=Workbench_Draft.svg
}}

<!--T:23-->
{{VeryImportantMessage|THIS COMMAND IS OBSOLETE<br>
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|Workbenches=[[Draft Module|Draft]], [[Arch Module|Arch]]|MenuLocation=Drafting -> Drawing}}
|Name=Draft Drawing
|Workbenches=[[Drawing_Workbench|Drawing]], [[Draft_Workbench|Draft]], [[Arch_Workbench|Arch]]
|SeeAlso=[[TechDraw_DraftView|TechDraw DraftView]]
}}


==Description== <!--T:2-->
==Description== <!--T:2-->


<!--T:3-->
<!--T:3-->
The [[Image:Draft_Drawing.svg|24px]] '''Draft Drawing''' command inserts views of selected objects into a [[Drawing_Workbench|drawing]] page.
This tool allows you to put selected objects on a svg [[Drawing Module|Drawing sheet]]. If no [[Drawing_templates|sheet]] exists in the document, a default one will be created. This tool works similarly to the [[Drawing View]] tool, but is optimized for [[Draft Workbench|Draft]] objects, and can render flat 2D objects with a face filling. It can also handle a couple of specific Draft objects, such as [[Draft Dimension|dimensions]] and [[Draft Text|texts]], that the [[Drawing View]] tool cannot handle.

<!--T:14-->
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.

<!--T:24-->
This command is now obsolete. Use the [[TechDraw_Workbench|TechDraw Workbench]] and the [[TechDraw_DraftView|TechDraw DraftView]] command instead.


</translate>
</translate>
[[Image:Draft drawing example.jpg|640px]]
[[Image:Draft drawing example.jpg|640px]]
<translate>
<translate>
<!--T:15-->
{{Caption|On the left the selected Draft objects. On the right the created drawing views.}}


==How to use== <!--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 you wish to put on a drawing sheet
# Select one or more objects. A separate view will be created for each object.
# Press the {{KEY|[[Image:Draft Drawing.png|16px]] [[Draft Drawing]]}} button
# 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]] [[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]].


==Options== <!--T:6-->


<!--T:7-->
<!--T:18-->
{{Docnav
* Select objects you want to put on the drawing sheet. The tool will work best with flat 2D objects from the [[Draft Module|Draft]] or [[Sketcher Workbench|Sketcher]] modules.
|
* If the selected object is an [[Arch SectionPlane]], this tool will create an additional view of that section plane.
|
* In the same selection, add the page object you want to draw your objects to. If there is no existing page, a new one will be created. If you didn't select a page but there is at least one in the document, the first found one will be used to draw to.
|[[Draft_Workbench|Draft]]
* If you selected an existing sheet, and the objects in the selection that are already on that sheet (for ex. for a "Rectangle" object there is already a "ViewRectangle" object on the sheet), they will be substitued. This allows you to simply select all the objects and send them to an existing page, which will simply be updated.
|IconL=

|IconR=
==Properties== <!--T:8-->
|IconC=Workbench_Draft.svg

<!--T:9-->
* {{PropertyData|Fill Style}}: For closed shapes, allows to specify one of the Default Draft fill styles, or use the shape color.
* {{PropertyData|Font Size}}: Allows you to specify the font size of texts and dimensions.
* {{PropertyData|Line Width}}: Allows you to specify the line width of viewed objects.

==Scripting== <!--T:10-->

<!--T:11-->
The Draft Drawing tool can by used in [[macros]] and from the python console by using the following function:

</translate>
{{Code|code=
makeDrawingView (object,page)
}}
}}
<translate>

<!--T:12-->
* Adds a view of the given object to the given page.
* Returns the created view object.

<!--T:13-->
Example:


</translate>
</translate>
{{Draft Tools navi{{#translation:}}}}
{{Code|code=
{{Userdocnavi{{#translation:}}}}
import FreeCAD,Draft
obj = FreeCAD.ActiveDocument.ActiveObject
page = FreeCAD.ActiveDocument.Page
Draft.makeDrawingView(obj,page)
}}

<languages/>

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.

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

  1. To use this command in FreeCAD version 0.19 and later you need to add a button to a custom toolbar. See Interface Customization.
  2. Select one or more objects. A separate view will be created for each object.
  3. 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.
  4. Press the Draft Drawing button.
  5. 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.