TechDraw ExportPageSVG/de: Difference between revisions

From FreeCAD Documentation
(Created page with "==Skripten==")
(Created page with "{{Emphasis|Siehe auch:}} TechDrawGui API und FreeCAD Grundlagen Skripten.")
Line 33: Line 33:
==Skripten==
==Skripten==


{{Emphasis|See also:}} [[TechDrawGui API|TechDrawGui API]] and [[FreeCAD Scripting Basics|FreeCAD Scripting Basics]].
{{Emphasis|Siehe auch:}} [[TechDrawGui API/de|TechDrawGui API]] und [[FreeCAD Scripting Basics/de|FreeCAD Grundlagen Skripten]].


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

Revision as of 20:18, 10 September 2020

TechDraw ExportPageSVG

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

Beschreibung

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

Anwendung

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

Hinweise

  • 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.

Skripten

Siehe auch: TechDrawGui API und FreeCAD Grundlagen Skripten.

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.