Macro Converti Linee
File:Text-x-python Macro FC Convert Lines |
Descrizione |
---|
Converte la linea dell'oggetto, da continua a tratteggiata, ecc. assegnandole lo spessore indicato. Versione macro: 00.06 (20/02/2017) Autore: mario52 |
Autore |
mario52 |
Download |
None |
Link |
Raccolta di macro Come installare le macro Personalizzare la toolbar |
Versione macro |
00.06 (20/02/2017) |
Data ultima modifica |
None |
Versioni di FreeCAD |
None |
Scorciatoia |
Nessuna |
Vedere anche |
Nessuno |
Descrizione
Questa macro converte la linea dell'oggetto, da continua a tratteggiata, a tratto e punto, a puntini, a zig zag, e le assegna lo spessore indicato.
Uso
Copiare la macro nella cartella macro e avviarla da FCConvertLines Gui
Prima sezione:
Cut line (Attivo di default)
- Selezionare una o più linee nella vista 3D
- SpinBox : per inserire il numero di tagli o la distanza dei tagliati ... (di default è visualizzato suffisso predefinito del numero di tagli "x Cut")
- Create L. : Se questa casella è selezionata viene creata la linea
- Dimension : Se viene selezionata questa casella il numero inserito è considerato una lunghezza, quindi il suffisso cambia in "x.000 Dim" e vengono accettati 3 decimali
- Bicolor : Se questa casella è selezionata le linee create sono alternativamente colorate in bianco e in rosso, se non è selezionata il colore è il colore definito con il tasto Color
- Points : Se questa casella è selezionata, viene creato un punto e il colore è il colore definito in Bicolor oppure
- Sono disponibili i colori di Options lines
Seconda sezione :
Tipo di linea: Dash
- Il riquadro al fondo della finestra della macro cambia in linea Dash
- Selezionare una o più linee nella vista 3D
- Line A : lunghezza del tratto (vedere A nella schermata)
- Space B : lunghezza dello spazio (vedere B nella schermata)
- Le linee sono create secondo le specifiche di configurazione stabilite nelle opzioni delle linee
Terza sezione:
Tipo di linea: DashDot
- Il riquadro al fondo della finestra della macro cambia in linea DashDot
- Selezionare una o più linee nella vista 3D
- Line A : lunghezza del tratto (vedere A nella schermata)
- Space B : lunghezza dello spazio (vedere B nella schermata) (Può essere diverso da D)
- Line 2 C : lunghezza del tratto (vedere C nella schermata)
- Space 2 D : lunghezza dello spazio (vedere D nella schermata) (Può essere diverso da B)
Quarta sezione:
Tipo di linea : DashDotDot
- Il riquadro al fondo della finestra della macro cambia in linea DashDotDot
- Selezionare una o più linee nella vista 3D
- Line A : lunghezza del tratto (vedere A nella schermata)
- Space B : lunghezza dello spazio (vedere B nella schermata)
- Line 2 C : lunghezza del tratto (vedere C nella schermata)
- Space 2 D : lunghezza dello spazio (vedere D nella schermata)
Quinta sezione:
Type line : ZigZag
- The screen at the bottom of the macro change in line ZigZag
- This line are created
- Number heads : number of heads for the total line
- _____140.0_____ : The length total of the line are calculate in real time and displayed in this window
- Begin A : dimension of begin line until first head, this section line hare same in the end line (see A in the screen)
- Dimension B : dimension between the end and begin head (see B in the screen)
- Gap C : dimension of the head (see C in the screen)
- Height D : height dimension of the the head (see D in the screen)
- Number E : number of heads contiguous (see E in the screen)
- The options Plane and Options lines are available
Sesta sezione:
Type line : Hand
- This line are created
- Length A : The length total of the line (see A in the screen)
- Height B : Height of the line (see B in the screen)
- Wave : compression or uncompress of the wave (see Wave in the screen)
- The options Plane and Options lines are available
Settima sezione:
Options line :
This options are available for all menu
- __2,00 Width__ : dimension of the width of the line(s)
- __2,00 Point S__ : dimension of the points of the line(s)
- Color : color of the line(s) this button are colored with the color selected (if the checkbox "Bicolor" in the menu "Cut line" is checked this option are not used for this menu)
Eighth section :
Option Plane
This option are available only for "ZigZag" and "Hand"
- XY : Plane XY
- YZ : Plane YZ
- XZ : Plane XZ
Ninth section :
Button
- Save type : the line configured is saved in one file (one file for one type line). While saving a file header is predetermined depending on the chosen menu (example : Dash is saved, in the save window is displayed "Dash_.FCConvertL" you can modify to "Dash_my_config_10.FCConvertL" or the name you want... this method allow sharpens clear)
- Load type : load one file configured
- Name type line________________ : name of the type configured this name is saved in the file
- Reset : reset the data's in the original configuration
- Create Comp : this button create on compound with the lines created (ten lines selected = one compound)
- Create : create the lines separately (ten lines selected = ten lines created)
- Quit : quit the macro
The files to copy in your directory with the macro (10 files images)
The icon for the toolBar
Title
Line Dash :
Line DashDot :
Line DashDotDot :
Line Zigzag :
Line Hand :
View :
Script
Copy the macro Macro_FCConvertLines.FCMacro in your macros folder
the script on Gist Macro_FCConvertLines.FCMacro
Esempi
Esempi dot, dash dot, dash dot, dash dot dot
Esempi hand, zigzag
Esempio hand
Tutte le linee sono create con le specifiche di configurazione impostate nelle opzioni delle linee
Esempio hand (manuale) con cui si può creare una bella onda sinusoidale o una linea totalmente anarchica
Esempio di conversione ShapeString in Sketch (Le curve non sono autorizzate per la conversione Shape to Sketch)
Versione
ver 00.06 20/02/2017 correction of precision cut (replace "numberOfPoints = longueur" to "numberOfPoints = (longueur + 1)")
ver 00.05 11/01/2017 replace de search method macro path
ver 00.04 05/09/2016 setPointSize(8.0)
ver 00.02 18/02/2016
ver 00.01 19/01/2016
ver 00.00 19/01/2016