TechDrawGui API
(Novembre 2018) Queste informazioni potrebbero essere incomplete e obsolete. Per l'ultima API, consultare autogenerated API documentation.
Queste funzioni fanno parte di TechDraw e possono essere utilizzate nelle macro e dalla console Python dopo l'importazione del modulo TechDraw
.
Vedere TechDraw API per altre funzioni.
Esempio:
import FreeCAD
import TechDrawGui
p = FreeCAD.ActiveDocument.Page
f = "/home/localuser/myPdfDirectory/savePage.pdf"
TechDrawGui.exportPageAsPdf(p, f)
f = "/home/localuser/mySvgDirectory/savePage.svg"
TechDrawGui.exportPageAsSvg(p, f)
Description: save a copy of pageObject in PDF format to location filePath
Returns: none
Description: save a copy of pageObject in SVG format to location filePath
Returns: none
Description: save a copy of the active view for "document" to file "filePath"
Returns: double (estimated scale)
Options:
- width - float - width of generated svg in mm
- height - float - height of generated svg in mm
- paintBackground - bool - paint/do not paint background
- backgroundColor - tuple - (r,g,b,a)
- lineWidth - float - weight of lines
- border - float - empty space around image
- mode - int - rendering mode (AS_IS, WIREFRAME, POINTS, WIREFRAME_OVERLAY, HIDDEN_LINE, BOUNDING_BOX)
Description: add a QGraphicsItem (created using PySide) to a View
Returns: none
TechDraw
- Pagine: Nuovo disegno standard, Nuovo disegno da modello
- Viste: Vista di oggetto, Vista attiva, Gruppo di proiezioni, Vista di sezione, Dettaglio, Nuova annotazione, Vista di Draft, Vista di Arch, Vista di foglio di calcolo
- Clip: Clip, Aggiungi una vista al gruppo di clip, Rimuovi la vista dal gruppo di clip
- Dimensioni: Lunghezza, Dimensione orizzontale, Dimensione veerticale, Raggio, Diametro, Angolo, Angolo da 3 punti, Link alla dimensione, Pallinatura
- Decorazioni: Tratteggio area, Tratteggio geometrico, Simbolo SVG, Immagine bitmap, Attiva o disattiva la vista cornici
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