Macro FCCircularText/it

Descrizione
This macro Written text circumferential standing or not flat and a propeller in the manner of Trajan Column and to create a clock with Arabic numerals 1 2 3 ... and Roman I II III ... (inspired to Macro to Create Clock Face)



Utilizzo
Le opzioni che non sono utili per la funzione selezionata sono inattive e quindi non utilizzabili.

Le opzioni che non riguardano la funzione selezionata sono disattivate.

Usare la macro FcString per creare dei caratteri e il file FcClock per creare degli orologi.

Tutti i personaggi sono e rimangono indipendenti. Quando si creano le estrusioni non viene eliminato nulla. Se viene creato un Compound (oggetto Composto) con esso viene copiato in una nuova cartella.

Di default le opzioni sono disattivate e si attivano quando si seleziona una delle funzioni:
 * Extrude Char.
 * Placement.
 * SP. inclination.

Fatta eccezione per la casella Z di Placement per Clock che è attiva e che sposta il testo lungo l'asse Z per consentire posizionare il testo sulla superficie di appoggio.

Prima sezione



 * La finestra di editazione del testo che consente di inserire il testo da visualizzare (cliccando su, nella finestra del titolo si può vedere quanti caratteri contiene la stringa di input)
 * Il pulsante serve per usare un font diverso
 * ARIAL.TTF è il font di default, per adottare un altro font modificare il percorso e modificare il font di default nella riga No. 69

Second Section
Configuring characters in FCCircularText



Première zone
Your choice :



Second area
This section allows you to configure the overall behavior of characters in all the choices available but with some variation. If the command is not used in the option chosen, it will be grayed out.


 * Radius of circle : Radius of the circle. (Default 10)
 * Size character  : Character height. (Default 2)
 * Begin angle     : Starting angle of the first character in the circle. (Default 0 °)
 * End angle       : Angle end of the last character of the text. (Default 360)
 * Correction angle : Character correction angle to make it tangent to the circle. (Default 10 °)
 * Correction radius: Fixed the radius of the circle characters (optional). (Default 0.15)
 * Extrude Char    : Checkbox extrusion characters. (Inactive Default)
 * Placement       : Text placement in the 3D view. (Inactive Default)
 * Sp. inclination : Inclination of characters in three axes X, Y and Z (example to cover such a cone). (Inactive Default)
 * Sp. inclination : Inclination of characters in three axes X, Y and Z (example to cover such a cone). (Inactive Default)

Outdoor
Default mode. The text is written on the outer circumference of the circle.

Indoor
The text is written on the inner circumference of the circle

Helix
Le texte s'inscrit sur la circonférence externe d'une hélice.


 * The area of the propeller is grayed out by default.


 * All characters configuration options are available.
 * Step of helix which corresponds to the pitch of the propeller turns and displays 2 (character height) by default.
 * Char. per turn activates and displays 10 by default, which corresponds to 10 characters per helical turn.


 * If Step of helix (propeller pitch) is zero, Spinboxes Base Helix and End Helix are activated.
 * Base Helix provides the basis for starting the propeller (even Placement Z). If  'Placement Z'  is different from zero, the starting point is added to Z. Placement
 * End Helix End of the helix pitch of the helix will be calculated relative to the height and the number of characters per helical turn.

Clock
The figures are part of a circle with Arabic numerals or Romans.


 * By default, the section is grayed.


 * When the selection is made, the following functions are unusable and get drunk.
 * Begin angle.
 * End angle.
 * Correction angle.
 * Correction radius.
 * The buttom or.
 * The area Clock is activated.


 * Radius of support : If a value is given, support will be created (default 0).
 * If Support number face is different from zero a support is created. (If Extrude support = zero then a face is created).
 * 1 = A circle is created (circle appears).
 * 2 = A rectangle is created (length = (Radius of media * 1.5) width = Radius of support) (Rectangle appears).
 * 3 = A triangle is created (circumscribed) (Triangle appears).
 * 4 = a square is created (Radius of support) (Square appears).
 * 5 = and A polygon with the number of faces displayed (circumscribed) (Polygon appears).
 * Extrude support is activated and an extrusion dimension can be given.






 * If Support number face is equal to zero there is no support.
 * : The writing will be in Roman figures I II III IIII V VI VII VIII IX X XI XII
 * : The figures will be written axially.

Commandes



 * : Leaves the macro.
 * : Reset all values and displays the number of characters displayed in the window.
 * : Launche the macro and creates a Compunt object of all characters.
 * : Launche the macro

Launch the macro folder FcString for created characters and a file FcClock for created clocks.

Script
'''PS: false zip delete the .zip and copy the macro Macro_FCCircularText.FCMacro in your path FCMacro of FreeCAD '''

Download the script here Macro FCCircularText.FCMacro.zip

Example
(not fully developed)

Planned :

Writing on a path circular text of position object selected.

(PS : it is possible that an error is made between version 2 Please wait for the next or return to the previous version thank you)

Currently:

 * ver 0.6 23/11/2014 corrected "texte = unicode(self.textEdit.toPlainText)" now accept "'éèà@..."
 * ver 0.5 19/11/2014 Gui
 * ver 0.4 10/10/2014 add variable "rotation" in the loop (for i in range(0,rotation,(rotation/nombre)): # 360 a parametrer)
 * ver 0.4 27/08/2014 correction error of de radius (exterieur=0, debout=1)
 * ver 0.3 26/08/2014 add creation text of flat curve
 * ver 0.2 26/08/2014 add creation text of internal curve
 * ver 0.1

(83+498+537)

Links
To comment on the Extrude from curved surface of cylinder