TechDraw Page à partir d'un modèle

From FreeCAD Documentation
Revision as of 14:25, 8 April 2020 by David69 (talk | contribs) (Created page with "{{GuiCommand/fr |Name=TechDraw PageTemplate |Name/fr=TechDraw Page à partir d'un modèle |MenuLocation=TechDraw → Insert Page using Template |Workbenches=TechDraw Module/...")

TechDraw Page à partir d'un modèle

Emplacement du menu
TechDraw → Insert Page using Template
Ateliers
TechDraw
Raccourci par défaut
Aucun
Introduit dans la version
-
Voir aussi
TechDraw Page par défaut, TechDraw Modèles

Description

L'outil Nouveau choix crée un nouvel objet Page à l'aide du fichier de modèle sélectionné dans une boîte de dialogue.

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

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

Usage

Properties

  • DonnéesProjection Type: Default projection type (First or Third Angle) for this Page.
  • DonnéesScale: 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

Editable text fields

See also: TechDraw Templates for more information on creating templates.

See the information in Insert Default Page to programmatically change the editable text fields in a page template.