Draft Drawing/sv: Difference between revisions

From FreeCAD Documentation
(Created page with "==Bruk==")
(Updating to match new version of source page)
Line 1: Line 1:
{{GuiCommand/se|Name=Draft_Drawing|Workbenches=[[Draft Module/se|Skiss]]|MenuLocation=Drafting Drawing}}
{{GuiCommand|Name=Draft Drawing|Workbenches=[[Draft Module|Draft]], [[Arch Module|Arch]]|MenuLocation=Drafting -> Drawing}}


==Beskrivning==
==Beskrivning==
Line 32: Line 32:
The Draft Drawing tool can by used in [[macros]] and from the python console by using the following function:
The Draft Drawing tool can by used in [[macros]] and from the python console by using the following function:


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


* Adds a view of the given object to the given page.
* Adds a view of the given object to the given page.
Line 41: Line 41:
Example:
Example:


{{Code|code=
<syntaxhighlight>
import FreeCAD,Draft
import FreeCAD,Draft
obj = FreeCAD.ActiveDocument.ActiveObject
obj = FreeCAD.ActiveDocument.ActiveObject
page = FreeCAD.ActiveDocument.Page
page = FreeCAD.ActiveDocument.Page
Draft.makeDrawingView(obj,page)
Draft.makeDrawingView(obj,page)
}}
</syntaxhighlight>


<languages/>
<languages/>

Revision as of 21:36, 1 January 2015

Draft Drawing

Menu location
Drafting -> Drawing
Workbenches
Draft, Arch
Default shortcut
None
Introduced in version
-
See also
None

Beskrivning

detta verktyg tillåter dig att lägga valda objekt på ett svg ritningsark.

Bruk

  1. Select the objects you wish to put on a drawing sheet
  2. Press the Draft Drawing button

Options

  • Välj de objekt som du vill ha på ritningsarket.
  • Addera i samma val det sidobjekt som du vill rita dina objekt på. Om det inte finns någon existerande sida, så kommer en ny att skapas. Om du inte valde en sida, men det finns åtminstone en i dokumentet, så kommer den som hittas först att användas som underlag.
  • De objekt som visas på ritningssidan kommer att använda den skala och offsetvärden som värdsidan har. Försäkra dig om att ställa in dessa värden innan.
  • Du kan ändra objektens skala och offset när som helst.
  • Ställ in/justera linjebredden. Högre värden kommer att resultera i tjockare linjer.
  • Ställ in/justera textstorleken. Högre värden kommer att resultera i större text.
  • Om du valde ett existerande ark, och du har valt objekt som redan finns på det arket (till exempel för ett "Rectangle" objekt så finns det redan ett "ViewRectangle" objekt på arket), så kommer de att ersättas. Detta tillåter dig att helt enkelt välja alla objekt och skicka dem till en existerande sida, vilken kommer att uppdateras.

Properties

  • DataFill Style: For closed shapes, allows to specify one of the Default Draft fill styles, or use the shape color.
  • DataFont Size: Allows you to specify the font size of texts and dimensions.
  • DataLine Width: Allows you to specify the line width of viewed objects.

Scripting

The Draft Drawing tool can by used in macros and from the python console by using the following function:

makeDrawingView (object,page)
  • Adds a view of the given object to the given page.
  • Returns the created view object.

Example:

import FreeCAD,Draft
obj = FreeCAD.ActiveDocument.ActiveObject
page = FreeCAD.ActiveDocument.Page
Draft.makeDrawingView(obj,page)