Strumenti: Modifica parametri
Modifica parametri |
Posizione nel menu |
---|
Strumenti → Modifica parametri... |
Ambiente |
Tutti |
Avvio veloce |
Nessuno |
Introdotto nella versione |
- |
Vedere anche |
Editor delle preferenze |
Descrizione
Il comando Modifica parametri apre l'editor dei parametri. Nell'editor dei parametri i parametri che controllano il comportamento di FreeCAD e dei suoi ambienti di lavoro possono essere ispezionati e facoltativamente rimossi, aggiunti o modificati. I parametri sono memorizzati in un file chiamato user.cfg, la posizione di questo file dipende dal sistema operativo.
Lavorare con l'editor dei parametri richiede una certa esperienza. Per i parametri più comuni conviene usare l'editor delle preferenze.
La finestra di dialogo Editor dei parametri
Utilizzo
- Selezionare l'opzione Strumenti → Modifica parametri... dal menu.
- Viene visualizzata la finestra di dialogo Editor parametri. Per ulteriori informazioni, vedere le Opzioni.
- Opzionalmente premere il pulsante Salva nel disco per aggiornare immediatamente il file user.cfg. Ciò non è indispensabile in quanto FreeCAD aggiornerà automaticamente quel file alla chiusura dell'applicazione.
- Premere il pulsante Chiudi per chiudere l'editor dei parametri.
Opzioni
Pannello di sinistra
Il pannello di sinistra mostra un albero con gruppi di parametri e sottogruppi.
Nel menu di scelta rapida del pannello sono disponibili le seguenti opzioni:
Espandi/Riduci
- Se un gruppo selezionato ha uno o più sottogruppi, può essere espanso o compresso scegliendo questa opzione dal menu contestuale. Ma si può anche espandere e comprimere l'albero nel solito modo.
Aggiungi sottogruppo
- Selezionare un gruppo.
- Selezionare l'opzione Aggiungi sottogruppo nel menu contestuale.
- Immettere un nome per il nuovo sottogruppo nella finestra di dialogo che si apre.
- Premere il pulsante OK.
Rimuovi gruppo
- Selezionare un gruppo.
- Selezionare l'opzione Rimuovi gruppo nel menu contestuale.
- Premere il pulsante Sì nella finestra di dialogo che si apre per confermare che si desidera rimuovere il gruppo (inclusi tutti i suoi sottogruppi e tutti i parametri del gruppo e dei suoi sottogruppi).
Rinomina gruppo
- Selezionare un gruppo.
- Selezionare l'opzione Rinomina gruppo nel menu contestuale.
- Inserire un nuovo nome
- Un gruppo può anche essere rinominato facendo doppio clic su di esso.
Esporta parametro
- Selezionare un gruppo.
- Selezionare l'opzione Esporta parametro nel menu contestuale.
- Immettere un nome file nella finestra di dialogo.
- Premere il pulsante Salva.
Importa parametro
- Selezionare un gruppo che non contiene alcun sottogruppo o rimuoverli prima. Tutti i parametri esistenti nel gruppo andranno persi.
- Selezionare l'opzione Importa parametro nel menu contestuale.
- Selezionare un file *.FCParam nella finestra di dialogo.
- Premere il pulsante Apri.
Pannello di destra
Il pannello di destra mostra i parametri nel gruppo selezionato nel pannello di sinistra. Se questo gruppo contiene solo sottogruppi, il pannello di destra è vuoto.
Nel menu di scelta rapida del pannello sono disponibili le seguenti opzioni:
Cambia valore
- Selezionare un parametro
- Selezionare l'opzione Cambia valore nel menu contestuale.
- Inserire un nuovo valore nella finestra di dialogo che si apre.
- Premere il pulsante OK.
- Il valore di un parametro può anche essere modificato facendo doppio clic sul suo campo "Tipo" o "Valore".
Rimuovi la chiave
- Selezionare un parametro.
- Selezionare l'opzione Rimuovi la chiave nel menu contestuale.
Rinomina la chiave
- Selezionare un gruppo.
- Selezionare l'opzione Rinomina la chiave nel menu contestuale.
- Inserire un nuovo nome
- Un parametro può anche essere rinominato facendo doppio clic sul suo campo "Nome".
Nuovo elemento string
- Selezionare l'opzione Nuovo elemento string o Nuovo → Nuovo elemento string dal menu contestuale.
- Inserire un nome nella finestra di dialogo che si apre.
- Premere il pulsante OK.
- Immettere un valore nella finestra di dialogo successiva.
- Premere il pulsante OK.
Nuovo elemento float
- Selezionare l'opzione Nuovo elemento float o Nuovo → Nuovo elemento float dal menu contestuale.
- I passaggi successivi sono simili a quelli per un Nuovo elemento string
Nuovo elemento integer
- Seleziona l'opzione Nuovo elemento integer o Nuovo → Nuovo elemento integer dal menu contestuale.
- I passaggi successivi sono simili a quelli per un Nuovo elemento string
Nuovo elemento unsigned
- Seleziona l'opzione Nuovo elemento unsigned o Nuovo → Nuovo elemento unsigned dal menu contestuale.
- I passaggi successivi sono simili a quelli per un Nuovo elemento string
Nuovo elemento Boolean
- Select the New Boolean item or New → New Boolean item option from the context menu.
- The next steps are similar to those for a New string item
Sorting
By default the groups in each tree level in the left panel are sorted alphabetically, and the parameters in the right panel are sorted alphabetically as well. But the order in each panel can be reversed by clicking the 'Group' or 'Name' header respectively.
Quick search
Typing a (partial) string in this input box will fully expand the tree in the left panel and highlight all groups with names that match the entered value. If no matches are found the background of the input box will turn red.
Find
- In the left panel select the group where you want to start your search. The search direction is down. The search is not restricted to the group and its sub-groups, but rather the selected group and everything below it in the tree will be searched.
- Press the Find... button.
- Enter a string in the Find what input box. The search is case-insensitive.
- Check one or more of the Groups, Names and Values checkboxes. Note that only string values will be searched.
- Optionally (un)check the Match whole string only checkbox.
- Press the Find Next button to select the first group with a match. Matching parameters are not individually highlighted. Optionally repeat this until no further matches can be found.
- It is possible to start a new search without closing the dialog box. Again selecting the group from which to start searching is then usually required.
- Use the Cancel button to close the dialog box.
Note
- La pagina Ottimizzare l'installazione elenca una serie di parametri che potrebbero essere di interesse.
Script
Vedere anche: Script di base per FreeCAD
Preferences can be accessed from Python scripts using their corresponding path in the Parameter Editor. For example, the Edit → Preferences → Import-Export → DXF → Import options → Join geometry preference appears in Tools → Edit parameters → BaseApp → Preferences → Mod → Draft → dxfCreatePart and has type Boolean
. It can therefore be accessed in Python using the following code:
# get:
App.ParamGet("User parameter:BaseApp/Preferences/Mod/Draft").GetBool('dxfCreatePart')
# set:
App.ParamGet("User parameter:BaseApp/Preferences/Mod/Draft").SetBool('dxfCreatePart', True)
Finding which parameter is used to store which option from the Preferences editor can require searching a bit, but the Parameter Editor offers a search facility, which should help.
It is likely a bad idea to modify the preferences of other parts of FreeCAD unless doing so at the user's request. The setter can however be used to set parameters for your own workbench, and the getter can be used to obey existing parameters.
- File: New, Open, Close, Close All, Save, Save As, Save a Copy, Save All, Revert, Import, Export,Merge project, Project information, Print, Print preview, Export PDF, Recent files, Exit
- Edit: Undo, Redo, Cut, Copy, Paste, Duplicate selection, Refresh, Box selection, Box element selection, Select All, Delete, Send to Python Console, Placement, Transform, Alignment, Toggle Edit mode, Edit mode, Preferences
- View:
- Miscellaneous: Create new view, Orthographic view, Perspective view, Fullscreen, Bounding box, Toggle axis cross, Clipping plane, Texture mapping, Toggle navigation/Edit mode, Appearance, Random color, Workbench, Status bar
- Standard views: Fit all, Fit selection, Isometric, Dimetric, Trimetric, Home, Front, Top, Right, Rear, Bottom, Left, Rotate Left, Rotate Right
- Freeze display: Save views, Load views, Freeze view, Clear views
- Draw style: As is, Points, Wireframe, Hidden line, No shading, Shaded, Flat lines
- Stereo: Stereo red/cyan, Stereo quad buffer, Stereo Interleaved Rows, Stereo Interleaved Columns, Stereo Off, Issue camera position
- Zoom: Zoom In, Zoom Out, Box zoom
- Document window: Docked, Undocked, Fullscreen
- Visibility: Toggle visibility, Show selection, Hide selection, Select visible objects, Toggle all objects, Show all objects, Hide all objects, Toggle selectability
- Toolbars: File, Edit, Clipboard, Workbench, Macro, View, Structure, Help
- Panels: Tree view, Property view, Selection view, Tasks, Python console, DAG view, Model, Report view
- Link navigation: Go to linked object, Go to the deepest linked object, Select all links
- Tree view actions: Sync view, Sync selection, Sync placement, Pre-selection, Record selection, Single document, Multi document, Collapse/Expand, Initiate dragging, Go to selection, Selection Back, Selection Forward
- Tools: Edit parameters, Save image, Load image, Scene inspector, Dependency graph, Project utility, Measure distance, Add text document, View turntable, Units calculator, Customize, Addon manager
- Macro: Macro recording, Macros, Recent macros, Execute macro, Attach to remote debugger, Debug macro, Stop debugging, Step over, Step into, Toggle breakpoint
- Help: Help, FreeCAD Website, Donate, Users documentation, Python scripting documentation, Automatic Python modules documentation, FreeCAD Forum, FreeCAD FAQ, Report a bug, About FreeCAD, What's This
- Getting started
- Installation: Download, Windows, Linux, Mac, Additional components, Docker, AppImage, Ubuntu Snap
- Basics: About FreeCAD, Interface, Mouse navigation, Selection methods, Object name, Preferences, Workbenches, Document structure, Properties, Help FreeCAD, Donate
- Help: Tutorials, Video tutorials
- Workbenches: Std Base, Assembly, BIM, CAM, Draft, FEM, Inspection, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Surface, TechDraw, Test Framework
- Hubs: User hub, Power users hub, Developer hub