TechDraw DraftView/it: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Created page with "Lo strumento New Draft può essere utilizzato nelle macro e dalla console di Python tramite la seguente funzione:")
(9 intermediate revisions by the same user not shown)
Line 16: Line 16:
}}
}}


==Description==
==Descrizione==


The [[Image:TechDraw_DraftView.svg|24px]] [[TechDraw_DraftView|DraftView]] tool inserts a view of a selected [[Part Module|Part]]-based or Group object into a drawing page. Unlike the standard [[Image:TechDraw_View.svg|24px]] [[TechDraw_View|View]] tool, views created with this tool are handled by the [[Image:Workbench_Draft.svg|24px]] [[Draft Workbench|Draft Workbench]], and specially designed for showing 2D objects. See Notes.
The [[Image:TechDraw_DraftView.svg|24px]] [[TechDraw_DraftView|DraftView]] tool inserts a view of a selected [[Part Module|Part]]-based or Group object into a drawing page. Unlike the standard [[Image:TechDraw_View.svg|24px]] [[TechDraw_View|View]] tool, views created with this tool are handled by the [[Image:Workbench_Draft.svg|24px]] [[Draft Workbench|Draft Workbench]], and specially designed for showing 2D objects. See Notes.


[[Image:TechDraw_DraftView_example.png]]
[[Image:TechDraw_DraftView_example.png]]
{{Caption|Draft elements like circles and arrays imported into a TechDraw drawing page}}
{{Caption|Elementi di Draft, cerchi e schiere, importati in una pagina di disegno TechDraw}}


==Usage==
==Utilizzo==


# Select a draft object in the 3D view or in the tree
# Select a draft object in the 3D view or in the tree
Line 30: Line 30:
# A view of the draft object will appear on the page.
# A view of the draft object will appear on the page.


=== Limitations ===
=== Limitazioni ===


The DraftView is rendered within the [[Draft Workbench|Draft Workbench]], therefore TechDraw has limited control over its appearance. You may need to make changes within Draft to get the representation you want.
The DraftView is rendered within the [[Draft Workbench|Draft Workbench]], therefore TechDraw has limited control over its appearance. You may need to make changes within Draft to get the representation you want.


==Options==
== Opzioni ==


* Creating a Draft View of a group will recursively handle all the objects found into that group and in its subgroups. The View is updated automatically when the contents of the group changes
* Creating a Draft View of a group will recursively handle all the objects found into that group and in its subgroups. The View is updated automatically when the contents of the group changes
Line 42: Line 42:
* Projected faces are filled with the face color
* Projected faces are filled with the face color


==Properties==
== Proprietà ==


* {{PropertyData|Source}}: The draft object to be displayed
* {{PropertyData|Source}}: The draft object to be displayed
Line 52: Line 52:
* {{PropertyData|LineSpacing}}: The spacing to use between lines of texts for multiline texts
* {{PropertyData|LineSpacing}}: The spacing to use between lines of texts for multiline texts


Nota: Vista di Draft eredita tutte le proprietà della Vista di base applicabili.
Note: DraftView inherits all applicable basic View properties.


==Scripting==
==Script==


{{Emphasis|See also:}} [[TechDraw API|TechDraw API]] and [[FreeCAD Scripting Basics|FreeCAD Scripting Basics]].
{{Emphasis|Vedere anche:}} [[TechDraw API/it|API TechDraw]] e [[FreeCAD Scripting Basics/it|Nozioni di base sugli script di FreeCAD]].


The New Draft tool can be used in [[macros|macros]] and from the [[Python|Python]] console by using the following functions:
Lo strumento New Draft può essere utilizzato nelle [[macros/it|macro]] e dalla [[FreeCAD_Scripting_Basics/it|console di Python]] tramite la seguente funzione:


{{Code|code=
{{Code|code=

Revision as of 21:24, 7 April 2020

Other languages:

TechDraw DraftView

Menu location
TechDraw → Insert Draft Workbench Object
Workbenches
TechDraw
Default shortcut
None
Introduced in version
-
See also
Draft Workbench, Insert Arch Workbench Object

Descrizione

The DraftView tool inserts a view of a selected Part-based or Group object into a drawing page. Unlike the standard View tool, views created with this tool are handled by the Draft Workbench, and specially designed for showing 2D objects. See Notes.

Elementi di Draft, cerchi e schiere, importati in una pagina di disegno TechDraw

Utilizzo

  1. Select a draft object in the 3D view or in the tree
  2. If you have multiple drawing pages in your document, you will need to select the desired page in the tree.
  3. Press the Insert Draft Workbench Object button
  4. A view of the draft object will appear on the page.

Limitazioni

The DraftView is rendered within the Draft Workbench, therefore TechDraw has limited control over its appearance. You may need to make changes within Draft to get the representation you want.

Opzioni

  • Creating a Draft View of a group will recursively handle all the objects found into that group and in its subgroups. The View is updated automatically when the contents of the group changes
  • There is no hidden line removal. Each face found in the handled object(s) will simply be projected along the Direction vector, no specific action is taken when faces overlap
  • The Draft View also supports all Draft objects that are not Part-based, such as dimensions and texts
  • Color, line width and line pattern can be specified in the properties. Line patterns can be fine-tuned by directly giving a stroke-dasharray value, such as 3,5
  • Projected faces are filled with the face color

Proprietà

  • DatiSource: The draft object to be displayed
  • DatiLineWidth: The width of the lines, independently of the scale
  • DatiFontSize: The size of all texts appearing in this view (texts and dimensions)
  • DatiDirection: The projection direction to use
  • DatiColor: The color of lines
  • DatiLineStyle: A line style to use for this view. Can be Solid, Dashed, Dashdot, Dot or a SVG line pattern like 0.20,0.20
  • DatiLineSpacing: The spacing to use between lines of texts for multiline texts

Nota: Vista di Draft eredita tutte le proprietà della Vista di base applicabili.

Script

Vedere anche: API TechDraw e Nozioni di base sugli script di FreeCAD.

Lo strumento New Draft può essere utilizzato nelle macro e dalla console di Python tramite la seguente funzione:

dv = FreeCAD.ActiveDocument.addObject('TechDraw::DrawViewDraft','TestDraft')
dv.Source = myDraftbject
rc = page.addView(dv)