TechDraw PageDefault/it: Difference between revisions
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
Line 88: | Line 88: | ||
* {{PropertyView|Show Grid}}: Show a grid over this Page. {{Version|0.20}} |
* {{PropertyView|Show Grid}}: Show a grid over this Page. {{Version|0.20}} |
||
* {{PropertyView|Grid Spacing}}: Distance between grid lines |
* {{PropertyView|Grid Spacing}}: Distance between grid lines. {{Version|0.20}} |
||
<span id="Scripting"></span> |
<span id="Scripting"></span> |
||
== Script == |
== Script == |
||
See [[TechDraw_PageTemplate#Scripting|TechDraw PageTemplate]]. |
|||
<div class="mw-translate-fuzzy"> |
|||
{{Emphasis|Vedere anche:}} [[TechDraw API/it|API TechDraw]] e [[FreeCAD Scripting Basics/it|Nozioni di base sugli script di FreeCAD]]. |
|||
</div> |
|||
<div class="mw-translate-fuzzy"> |
|||
Lo strumento New Default può essere utilizzato nelle [[macros/it|macro]] e dalla [[FreeCAD_Scripting_Basics/it|console di Python]] tramite la seguente funzione: |
|||
</div> |
|||
{{Code|code= |
|||
page = FreeCAD.ActiveDocument.addObject('TechDraw::DrawPage','Page') |
|||
template = FreeCAD.ActiveDocument.addObject('TechDraw::DrawSVGTemplate','Template') |
|||
template.Template = templateFileSpec |
|||
page.Template = FreeCAD.ActiveDocument.Template |
|||
}} |
|||
* Crea una nuova pagina nel documento corrente |
|||
<span id="Editable_text_fields"></span> |
|||
=== Campi di testo modificabili === |
|||
<div class="mw-translate-fuzzy"> |
|||
{{Emphasis|Per ulteriori informazioni sulla creazione di modelli vedere anche:}} [[TechDraw Templates/it|Modelli di squadrature]]. |
|||
</div> |
|||
Una volta creata una nuova pagina, il suo attributo {{incode|Template}} contiene un dizionario {{incode|EditableTexts}} con il nome dei campi modificabili (chiavi) e i loro valori testuali. Copiare questo dizionario in una variabile, apportare le modifiche, quindi riassegnare il dizionario all'attributo {{incode|EditableTexts}} per vedere le modifiche. |
|||
{{Code|code= |
|||
page = FreeCAD.ActiveDocument.Page |
|||
texts = page.Template.EditableTexts |
|||
for key, value in texts.items(): |
|||
print("{0} = {1}".format(key, value)) |
|||
texts["FC-Title"] = "The title of my page" |
|||
page.Template.EditableTexts = texts |
|||
}} |
|||
Revision as of 14:22, 24 July 2023
Nuovo disegno standard |
Posizione nel menu |
---|
TechDraw → Nuovo disegno standard |
Ambiente |
TechDraw |
Avvio veloce |
Nessuno |
Introdotto nella versione |
- |
Vedere anche |
Nuovo disegno da modello, Modelli di squadrature |
Descrizione
Lo strumento Nuovo disegno standard crea una nuova pagina utilizzando il file modello specificato nelle Preferenze.
Modello predefinito fornito con TechDraw: pagina A4 con orientamento orizzontale, con i campi di testo modificabili
Utilizzo
- Premere il pulsante Nuovo disegno standard. (Deve esistere un documento attivo.)
Note
- Se una pagina è contrassegnata come "non tenere aggiornata" tramite la Proprietà KeepUpdated o dalle impostazione nelle Preferenze, le modifiche apportate nel modello 3D vengono ignorate. Si potrebbero notare delle anomalie nell'aspetto della Pagina (geometria mancante, valori di Dimensione mancanti, ecc.). Questi errori possono essere corretti aggiornando la Pagina.
La pagina ha questa icona nell'albero mentre l'aggiornamento è sospeso. Questa impostazione influisce anche sul processo di avvio. Se la pagina è contrassegnata come "non tenere aggiornata", all'avvio del programma essa non viene disegnata.
Se il modello predefinito non è specificato nel file di configurazione utente user.cfg
, lo strumento prova
$INSTALL_DIR/Mod/TechDraw/Templates/A4_LandscapeTD.svg
Dove $INSTALL_DIR
è la directory in cui è stato installato FreeCAD, per esempio
/usr/share/freecad/Mod/TechDraw/Templates/A4_LandscapeTD.svg
Proprietà
Data
Base
- DatiProjection Type: Default projection type (First or Third Angle) for this Page.
Page
- DatiProjection Type: tipo predefinito di proiezione da usare (primo o terzo angolo) per questa pagina.
- DatiKeepUpdated: se false, la pagina non viene aggiornata con le modifiche al modello 3D. Utile per i disegni complicati o lenti. Vedere le note.
- DatiTemplate: un link alla pagina dei Modelli di squadrature.
- DatiViews: un elenco di collegamenti alle viste su questa pagina.
- DatiScale: scala predefinita da usare per le viste in questa pagina.
View
Grid
- VistaShow Grid: Show a grid over this Page. introduced in version 0.20
- VistaGrid Spacing: Distance between grid lines. introduced in version 0.20
Script
TechDraw
- Pages: Insert Default Page, Insert Page using Template, Redraw Page, Print All Pages
- Views: Insert View, Insert Active View, Insert Projection Group, Insert Section View, Insert Complex Section View, Insert Detail View, Insert Draft Workbench Object, Insert Arch Workbench Object, Insert Spreadsheet View, Insert Clip Group, Share View, Project Shape
- Stacking: Move view to top of stack, Move view to bottom of stack, Move view up one level, Move view down one level
- Decorations: Hatch Face using Image File, Apply Geometric Hatch to Face, Insert SVG Symbol, Insert Bitmap Image, Turn View Frames On/Off
- Dimensions: Insert Length Dimension, Insert Horizontal Dimension, Insert Vertical Dimension, Insert Radius Dimension, Insert Diameter Dimension, Insert Angle Dimension, Insert 3-Point Angle Dimension, Insert Horizontal Extent Dimension, Insert Vertical Extent Dimension, Link Dimension to 3D Geometry, Insert Balloon Annotation, Insert Axonometric Length Dimension, Insert Landmark Dimension, Adjust Geometric References of Dimension
- Annotations: Insert Annotation, Add Leaderline to View, Insert Rich Text Annotation, Add Cosmetic Vertex, Add Midpoint Vertices, Add Quadrant Vertices, Add Centerline to Faces, Add Centerline between 2 Lines, Add Centerline between 2 Points, Add Cosmetic Line Through 2 points, Add Cosmetic Circle, Change Appearance of Lines, Show/Hide Invisible Edges, Add Welding Information to Leader, Add Surface Finish Symbol, Add Hole or Shaft Tolerances
- Extensions:
- Attributes and modifications: Select Line Attributes, Cascade Spacing and Delta Distance, Change Line Attributes, Extend Line, Shorten Line, Lock/Unlock View, Position Section View, Position Horizontal Chain Dimensions, Position Vertical Chain Dimensions, Position Oblique Chain Dimensions, Cascade Horizontal Dimensions, Cascade Vertical Dimensions, Cascade Oblique Dimensions, Calculate the area of selected faces, Calculate the arc length of selected edges, Customize format label
- Centerlines and threading: Add Circle Centerlines, Add Bolt Circle Centerlines, Add Cosmetic Thread Hole Side View, Add Cosmetic Thread Hole Bottom View, Add Cosmetic Thread Bolt Side View, Add Cosmetic Thread Bolt Bottom View, Add Cosmetic Intersection Vertex(es), Add an offset vertex, Add Cosmetic Circle, Add Cosmetic Arc, Add Cosmetic Circle 3 Points, Add Cosmetic Parallel Line, Add Cosmetic Perpendicular Line
- Dimensions: Create Horizontal Chain Dimensions, Create Vertical Chain Dimensions, Create Oblique Chain Dimensions, Create Horizontal Coordinate Dimensions, Create Vertical Coordinate Dimensions, Create Oblique Coordinate Dimensions, Create Horizontal Chamfer Dimension, Create Vertical Chamfer Dimension, Create Arc Length Dimension, Insert '⌀' Prefix, Insert '〼' Prefix, Remove Prefix, Increase Decimal Places, Decrease Decimal Places
- Export: Export Page as SVG, Export Page as DXF
- Additional: Line Groups, Templates, Hatching, Geometric dimensioning and tolerancing, Preferences
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, Assembly, BIM, CAM, Draft, FEM, Inspection, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Surface, TechDraw, Test Framework
- Hubs: User hub, Power users hub, Developer hub