TechDraw PageTemplate/ru

Описание
The TechDraw PageTemplate 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.



Применение

 * 1) An active document must exist.
 * 2) There are several ways to invoke the tool:
 * 3) * Press the button.
 * 4) * Select the option from the menu.

Свойства
See TechDraw PageDefault.

Программирование
TechDraw API и Основы составления скриптов FreeCAD.

A new Page based on a selected template can be created in macros and from the Python console by using the following functions:

Editable text fields
TechDraw Templates for more information on creating templates.

Once a new page has been created, its attribute holds an  dictionary with the name of the editable fields (keys) and their textual values. Copy this dictionary to a variable, make changes, and then re-assign the dictionary to the attribute to see the changes.