Macro CartoucheFC/cs

Popis
Toto makro je kompletní aplikace, která umožňuje jednoduše vyplňovat všechna pole kazety na výkresovém listu dodávaném s FreeCAD.

Políčka data a času jsou oddělena "prostorovým negativním prostorem" "-" a tvoří jediný řádek textedit.



Políčka v červeném poli jsou   'freecad: editable' '' 'pole, zelená pole jsou anotace vložené do šablony.

Here verze pro nový list se všemi editovatelnými textovými poli.

Použijte
Změna mapy v aplikaci Inkscape může v současné době způsobit problémy s operacemi v programu (kde odstraníte symbol na listu, stejný problém s FreeCADem), pracovat na kopii souboru A3_Landscape.svg.

PS: Některé znaky jako $ & $ nejsou přijaty (a možná i další speciální znaky).

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

Revision
ver 0.3 02/07/2014 converted to PyQt4 and PySide