TechDraw New Pick

From FreeCAD Documentation
Jump to: navigation, search
Other languages:
Deutsch • ‎English • ‎français • ‎italiano • ‎română • ‎русский
Arrow-left.svg Previous: TechDraw New Default.png New Default
Next: New View Techdraw-view.png Arrow-right.svg

TechDraw New Pick.svg TechDraw New Pick

Menu location
TechDraw → New Pick
Workbenches
TechDraw
Default shortcut
None
Introduced in version
-
See also
TechDraw New Default, TechDraw Templates


Description

The New Pick tool creates a new Page object using the template file selected from a dialog.

The starting directory for the dialog can be specified in the TechDraw Preferences.

A4 Landscape ISO7200 Pep.svg

One of the templates that comes with TechDraw: A4 ISO 7200_Pep, page in landscape orientation, with editable text fields


How to use

  1. Press the TechDraw New Pick.png New Pick button

Properties

  • DATAProjection Type: Default projection type (First or Third Angle) for this Page.
  • DATAScale: Default scale for Views in this Page.

Scripting

See also: TechDraw API and FreeCAD Scripting Basics.

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

templateFileSpec = QtGui.QFileDialog.getOpenFileName(self.baseWidget,
                                                     dialogCaption, 
                                                     dialogDir,
                                                     dialogFilter)
page = FreeCAD.ActiveDocument.addObject('TechDraw::DrawPage','Page')
template = FreeCAD.ActiveDocument.addObject('TechDraw::DrawSVGTemplate','Template')
template.Template = templateFileSpec
page.Template = FreeCAD.ActiveDocument.Template
  • Creates a new Page in the current document
Arrow-left.svg Previous: TechDraw New Default.png New Default
Next: New View Techdraw-view.png Arrow-right.svg