Macro CartoucheFC Full

This macro is a complete application, it allows to fill simply all the fields of the cartridge A3_Landscape_US_Text_Complet_Without_Convention

Here the order of filling in the line FreeCAD texteditable. The date and time fields are separated by a "space negative space" " - " and constitute a single line textedit.



Use
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_Full.FCMacro 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_Full.
 * 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).


 * 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_Full.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

et

(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!

Revision
ver 5 : 08/08/2014 PyQt4 and PySide