Difference between revisions of "TechDraw New Pick/ru"

From FreeCAD Documentation
Jump to navigation Jump to search
(Updating to match new version of source page)
(Updating to match new version of source page)
Line 1: Line 1:
 
<languages/>
 
<languages/>
{{Docnav|[[TechDraw_New_Default|New Default]]|[[TechDraw_NewView|New View]]|[[TechDraw_Module|TechDraw]]|IconL=TechDraw_New_Default.png|IconC=Workbench_TechDraw.svg|IconR=techdraw-view.png}}
+
{{Docnav
 +
|[[TechDraw_New_Default|New Default]]
 +
|[[TechDraw_NewView|New View]]
 +
|[[TechDraw_Module|TechDraw]]
 +
|IconL=TechDraw_New_Default.png
 +
|IconC=Workbench_TechDraw.svg
 +
|IconR=techdraw-view.png
 +
}}
  
 
<div class="mw-translate-fuzzy">
 
<div class="mw-translate-fuzzy">
Line 17: Line 24:
 
The New Pick tool creates a new Page object using the template file selected from a dialog.
 
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]].
+
The starting directory for the dialog can be specified in the [[TechDraw Preferences|TechDraw Preferences]].
  
 
[[Image:A4_Landscape_ISO7200_Pep.svg|400px]]
 
[[Image:A4_Landscape_ISO7200_Pep.svg|400px]]
Line 34: Line 41:
 
==Scripting==
 
==Scripting==
  
{{Emphasis|See also:}} [[TechDraw API]] and [[FreeCAD Scripting Basics]].
+
{{Emphasis|See also:}} [[TechDraw API|TechDraw API]] and [[FreeCAD Scripting Basics|FreeCAD Scripting Basics]].
  
The New Pick tool can be used in [[macros]] and from the [[Python]] console by using the following functions:
+
The New Pick tool can be used in [[macros|macros]] and from the [[Python|Python]] console by using the following functions:
 
{{Code|code=
 
{{Code|code=
 
templateFileSpec = QtGui.QFileDialog.getOpenFileName(self.baseWidget,
 
templateFileSpec = QtGui.QFileDialog.getOpenFileName(self.baseWidget,
Line 55: Line 62:
 
See the information in [[TechDraw_New_Default|TechDraw New Default]] to programmatically change the editable text fields in a page template.
 
See the information in [[TechDraw_New_Default|TechDraw New Default]] to programmatically change the editable text fields in a page template.
  
{{Docnav|[[TechDraw_New_Default|New Default]]|[[TechDraw_NewView|New View]]|[[TechDraw_Module|TechDraw]]|IconL=TechDraw_New_Default.png|IconC=Workbench_TechDraw.svg|IconR=techdraw-view.png}}
+
{{Docnav
 +
|[[TechDraw_New_Default|New Default]]
 +
|[[TechDraw_NewView|New View]]
 +
|[[TechDraw_Module|TechDraw]]
 +
|IconL=TechDraw_New_Default.png
 +
|IconC=Workbench_TechDraw.svg
 +
|IconR=techdraw-view.png
 +
}}
  
 
{{TechDraw Tools navi}}
 
{{TechDraw Tools navi}}

Revision as of 19:11, 15 October 2019

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

Расположение в меню
TechDraw → New Pick
Верстаки
TechDraw
Быстрые клавиши
x x
Представлено в версии
-
См. также
TechDraw New Default


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

Editable text fields

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

See the information in TechDraw New Default to programmatically change the editable text fields in a page template.

Arrow-left.svg Previous: TechDraw New Default.png New Default
Next: New View Techdraw-view.png Arrow-right.svg