TechDrawGui API

From FreeCAD Documentation
Revision as of 18:11, 10 May 2017 by Wandererfan (talk | contribs) (Created page with "<translate> <!--T:1--> These functions are part of the TechDrawGui module and can be used in scripts and macros or from the python interpreter, once the TechDrawGui module has...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

These functions are part of the TechDrawGui module and can be used in scripts and macros or from the python interpreter, once the TechDrawGui module has been imported.

Example:

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)


exportPageAsPdf(pageObject, filePath)

Description: save a copy of pageObject in Pdf format to location filePath

Returns: none

exportPageAsSvg(pageObject, filePath)

Description: save a copy of pageObject in Svg format to location filePath

Returns: none