Macro CartoucheFC/it

This macro is a complete application, it allows to fill simply all the fields of the cartridge of the drawing sheet delivered with FreeCAD.



Use
Changing the map in Inkscape can at the moment cause operation problems in the program (where you remove the symbol on the worksheet, same problem with FreeCAD), work on a copy of A3_Landscape.svg.

PS: Some characters such as & $ are not accepted (and possibly other special characters).

If you have any questions or want to add a function, you can address you on the french forum Remplir cartouche


 * The window remains above other Windows, thereby controlling the cartridge without leaving the program.
 * Copy the code into a file named Macro_CartoucheFC.py and place it in your usual macros directory.
 * After you have created your drawing sheet using the Drawing of FreeCAD module, run the macro Macro_CartoucheFC.
 * At the opening, the program will register in memory all data already present in the cartridge of the sheet (if they are filled), all these data will be automatically returned to using the button and kept in memory until the closure of the programme.
 * Date button and time  displayed the date and time of the system.
 * The date format depends on the selected symbol EU or US which determines the regional format. Change does not happen automatically (for the case or you have entered a date manually) you must again click buttons dates if you change the symbol (check before printing).


 * The field A3 is not functional (this program is based on the the A3 of FreeCAD sheet cartridge).
 * Button or US change the meaning of the symbol of projection "Select your Symbol" is displayed by default, and then the active symbol appears. Click on the button and check the leaf symbol, click a second time to modify the symbol.
 * The choice of this symbol, affects the date format EU = dd/MM/yyyy and US = MM/dd/yyyy.
 * Attention: this command does not pass through the button and immediately changes the symbol to each presses on the key, always check if you have the appropriate symbol on your worksheet.


 * Button Clears all fields in the cartridge. You can revert to the original data using the button.
 * Button saves all fields of the cartridge in the sheet. You can revert to the original data using the button  (except for the regional symbol that works in independent and is effective immediately).

Code
Macro_CartoucheFC.FcMacro

Other
The fields have no length limit, check your cartouche.

This program creates a drawing representing the regional projection symbol on your project, do not touch it is registered therefore hidden form invisible.

If you want it to be cleared uncomment the commented lines and vice versa

(I had some times an error in execution when the symbol was erased)

This module works with the drawing sheet included in FreeCAD this sheet is called Page, do not change the name of this sheet!