Macro TemplateHelper/de

Beschreibung
If you are tired of retyping information whenever you insert another page into your FreeCAD document or if you prefer a "drawn" bill of material (BOM) over an inserted spread sheet this macro is for you.

This macro generates a TechDraw template on the fly and inserts it into the active document, ready to get new views added.

If you wish, you can fill the space between the title block and the upper border of the drawing area with a BOM. You choose how many lines you need or if you fill the whole space.



Anwendung

 * 1) Open a FreeCAD file or add a new one.
 * 2) Find the macro file in your macro directory using [[Image:Std_DlgMacroExecute.svg|16px]] Macros... and select it.
 * (The Script section below describes how to put it there.)
 * 1) Press  to start the macro.
 * 2) Select the page format.
 * 3) Select the language for the title block.
 * 4) If you need a BOM change the number of rows:
 * You can use the right mouse button to reset to 0 or
 * to set the maximum number of rows that fits on your chosen page size.
 * 1) Click  to finish.

Dialogue window




English is default and just one version, but maybe someone likes to distinguish 'merican and bri'ish English in the future... :-D





Script
The Macro should be found in the macro directory. To put it there, you need to:
 * 1) Select the macro below (from #! pyth... to ...main).
 * 2) Copy the selection.
 * 3) Create a new macro file using [[Image:Std_DlgMacroExecute.svg|16px]] Macros... and select.
 * 4) Type in the name (TemplateHelper) and select . (.FCMacro is added automatically.)
 * 5) Paste the clipboard content into the Editor window.
 * 6) Press [[Image:Std_DlgMacroExecuteDirect.svg|16px]] Execute macro to start the macro.

TemplateHelper.FCMacro