TechDraw ExportPageSVG: Difference between revisions

From FreeCAD Documentation
(Removed Version=0.19. Tool exists in V0.17 and maybe even in an earlier version. The command was only renamed.)
(TechDraw_Dimension_VExtent.svg->TechDraw_Dimension_Vertical_Extent.svg)
Line 3: Line 3:
<!--T:16-->
<!--T:16-->
{{Docnav
{{Docnav
|[[TechDraw_Dimension_Vertical Extent|New Vertical Extent]]
|[[TechDraw_Dimension_Vertical_Extent|New Vertical Extent]]
|[[TechDraw_ExportPageDXF|Export Page as DXF]]
|[[TechDraw_ExportPageDXF|Export Page as DXF]]
|[[TechDraw_Module|TechDraw]]
|[[TechDraw_Module|TechDraw]]
|IconL=TechDraw_Dimension_VExtent.svg
|IconL=TechDraw_Dimension_Vertical_Extent.svg
|IconC=Workbench_TechDraw.svg
|IconR=TechDraw_ExportPageDXF.svg
|IconR=TechDraw_ExportPageDXF.svg
|IconC=Workbench_TechDraw.svg
}}
}}


Line 56: Line 56:
<!--T:17-->
<!--T:17-->
{{Docnav
{{Docnav
|[[TechDraw_Dimension_Vertical Extent|New Vertical Extent]]
|[[TechDraw_Dimension_Vertical_Extent|New Vertical Extent]]
|[[TechDraw_ExportPageDXF|Export Page as DXF]]
|[[TechDraw_ExportPageDXF|Export Page as DXF]]
|[[TechDraw_Module|TechDraw]]
|[[TechDraw_Module|TechDraw]]
|IconL=TechDraw_Dimension_VExtent.svg
|IconL=TechDraw_Dimension_Vertical_Extent.svg
|IconC=Workbench_TechDraw.svg
|IconR=TechDraw_ExportPageDXF.svg
|IconR=TechDraw_ExportPageDXF.svg
|IconC=Workbench_TechDraw.svg
}}
}}



Revision as of 18:31, 24 November 2020

TechDraw ExportPageSVG

Menu location
TechDraw → Export Page as SVG
Workbenches
TechDraw
Default shortcut
None
Introduced in version
-
See also
TechDraw Templates, Draft SVG

Description

The ExportPageSVG tool saves the current drawing page as an SVG file.

Usage

  1. Press the Export Page as SVG button.
  2. A File Save dialog will open. Select a location and file name.

Notes

  • TechDraw Hatch patterns are not exported to SVG due to a limitation in Qt4's SVG support.
  • Text positions and sizes are not correct in the exported file. Using the "system" default font in the drawing improves the size problem considerably.

Scripting

See also: TechDrawGui API and FreeCAD Scripting Basics.

The SaveSVG tool can be used in macros and from the Python console by using the following functions:

TechDrawGui.exportPageAsSvg(DrawPageObject,FilePath)

Note that the FreeCADGui module must be active to use this function.