Std DlgParameter: Difference between revisions

From FreeCAD Documentation
No edit summary
(Marked this version for translation)
Line 2: Line 2:
<translate>
<translate>


<!--T:27-->
{{Docnav
{{Docnav
|
|
Line 30: Line 31:
[[Image:Std_DlgParameter_dialog.png]]
[[Image:Std_DlgParameter_dialog.png]]
<translate>
<translate>
<!--T:28-->
{{Caption|The Parameter Editor dialog box}}
{{Caption|The Parameter Editor dialog box}}


Line 40: Line 42:
# Press the {{Button|Close}} button to close the Parameter Editor.
# Press the {{Button|Close}} button to close the Parameter Editor.


==Options==
==Options== <!--T:29-->


===Left panel===
===Left panel=== <!--T:30-->


<!--T:31-->
The left panel shows a tree with parameter groups and sub-groups.
The left panel shows a tree with parameter groups and sub-groups.


<!--T:32-->
''The following options are available in the panel's context menu:''
''The following options are available in the panel's context menu:''


====Expand/Collapse====
====Expand/Collapse==== <!--T:33-->


<!--T:34-->
# If a selected group has one or more sub-groups it can be expanded or collapsed by choosing this option from the context menu. But you can also expand and collapse the tree in the usual manner.
# If a selected group has one or more sub-groups it can be expanded or collapsed by choosing this option from the context menu. But you can also expand and collapse the tree in the usual manner.


====Add sub-group====
====Add sub-group==== <!--T:35-->


<!--T:36-->
# Select a group.
# Select a group.
# Select the {{MenuCommand|Add sub-group}} option from the context menu.
# Select the {{MenuCommand|Add sub-group}} option from the context menu.
Line 59: Line 65:
# Press the {{Button|OK}} button.
# Press the {{Button|OK}} button.


====Remove group====
====Remove group==== <!--T:37-->


<!--T:38-->
# Select a group.
# Select a group.
# Select the {{MenuCommand|Remove group}} option from the context menu.
# Select the {{MenuCommand|Remove group}} option from the context menu.
# Press the {{Button|Yes}} button in the dialog box that opens to confirm you want to remove the group (including all its sub-groups, and all parameters in the group and its sub-groups).
# Press the {{Button|Yes}} button in the dialog box that opens to confirm you want to remove the group (including all its sub-groups, and all parameters in the group and its sub-groups).


====Rename group====
====Rename group==== <!--T:39-->


<!--T:40-->
# Select a group.
# Select a group.
# Select the {{MenuCommand|Rename group}} option from the context menu.
# Select the {{MenuCommand|Rename group}} option from the context menu.
Line 72: Line 80:
# A group can also be renamed by double-clicking it.
# A group can also be renamed by double-clicking it.


====Export parameter====
====Export parameter==== <!--T:41-->


<!--T:42-->
# Select a group.
# Select a group.
# Select the {{MenuCommand|Export parameter}} option from the context menu.
# Select the {{MenuCommand|Export parameter}} option from the context menu.
Line 79: Line 88:
# Press the {{Button|Save}} button.
# Press the {{Button|Save}} button.


====Import parameter====
====Import parameter==== <!--T:43-->


<!--T:44-->
# Select a group that does not contain any sub-groups or remove them first. Any existing parameters in the group will be lost.
# Select a group that does not contain any sub-groups or remove them first. Any existing parameters in the group will be lost.
# Select the {{MenuCommand|Import parameter}} option from the context menu.
# Select the {{MenuCommand|Import parameter}} option from the context menu.
Line 86: Line 96:
# Press the {{Button|Open}} button.
# Press the {{Button|Open}} button.


===Right panel===
===Right panel=== <!--T:45-->


<!--T:46-->
The right panel shows the parameters in the group selected in the left panel. If this group only contains sub-groups the right panel will be empty.
The right panel shows the parameters in the group selected in the left panel. If this group only contains sub-groups the right panel will be empty.


<!--T:47-->
''The following options are available in the panel's context menu:''
''The following options are available in the panel's context menu:''


====Change value====
====Change value==== <!--T:48-->


<!--T:49-->
# Select a parameter.
# Select a parameter.
# Select the {{MenuCommand|Change value}} option from the context menu.
# Select the {{MenuCommand|Change value}} option from the context menu.
Line 100: Line 113:
# A parameter's value can also be changed by double-clicking its 'Type' or 'Value' field.
# A parameter's value can also be changed by double-clicking its 'Type' or 'Value' field.


====Remove key====
====Remove key==== <!--T:50-->


<!--T:51-->
# Select a parameter.
# Select a parameter.
# Select the {{MenuCommand|Remove key}} option from the context menu.
# Select the {{MenuCommand|Remove key}} option from the context menu.


====Rename key====
====Rename key==== <!--T:52-->


<!--T:53-->
# Select a parameter.
# Select a parameter.
# Select the {{MenuCommand|Rename key}} option from the context menu.
# Select the {{MenuCommand|Rename key}} option from the context menu.
Line 112: Line 127:
# A parameter can also be renamed by double-clicking its 'Name' field.
# A parameter can also be renamed by double-clicking its 'Name' field.


====New string item====
====New string item==== <!--T:54-->


<!--T:55-->
# Select the {{MenuCommand|New string item}} or {{MenuCommand|New → New string item}} option from the context menu.
# Select the {{MenuCommand|New string item}} or {{MenuCommand|New → New string item}} option from the context menu.
# Enter a name in the dialog box that opens.
# Enter a name in the dialog box that opens.
Line 120: Line 136:
# Press the {{Button|OK}} button.
# Press the {{Button|OK}} button.


====New float item====
====New float item==== <!--T:56-->


<!--T:57-->
# Select the {{MenuCommand|New float item}} or {{MenuCommand|New → New float item}} option from the context menu.
# Select the {{MenuCommand|New float item}} or {{MenuCommand|New → New float item}} option from the context menu.
# The next steps are similar to those for a [[#New_string_item|New string item]]
# The next steps are similar to those for a [[#New_string_item|New string item]]


====New integer item====
====New integer item==== <!--T:58-->


<!--T:59-->
# Select the {{MenuCommand|New integer item}} or {{MenuCommand|New → New integer item}} option from the context menu.
# Select the {{MenuCommand|New integer item}} or {{MenuCommand|New → New integer item}} option from the context menu.
# The next steps are similar to those for a [[#New_string_item|New string item]]
# The next steps are similar to those for a [[#New_string_item|New string item]]


====New unsigned item====
====New unsigned item==== <!--T:60-->


<!--T:61-->
# Select the {{MenuCommand|New unsigned item}} or {{MenuCommand|New → New unsigned item}} option from the context menu.
# Select the {{MenuCommand|New unsigned item}} or {{MenuCommand|New → New unsigned item}} option from the context menu.
# The next steps are similar to those for a [[#New_string_item|New string item]]
# The next steps are similar to those for a [[#New_string_item|New string item]]


====New Boolean item====
====New Boolean item==== <!--T:62-->


<!--T:63-->
# Select the {{MenuCommand|New Boolean item}} or {{MenuCommand|New → New Boolean item}} option from the context menu.
# Select the {{MenuCommand|New Boolean item}} or {{MenuCommand|New → New Boolean item}} option from the context menu.
# The next steps are similar to those for a [[#New_string_item|New string item]]
# The next steps are similar to those for a [[#New_string_item|New string item]]


===Sorting===
===Sorting=== <!--T:64-->


<!--T:65-->
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.
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===
===Quick search=== <!--T:66-->


<!--T:67-->
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.
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===
===Find=== <!--T:68-->


<!--T:69-->
# 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.
# 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 {{Button|Find...}} button.
# Press the {{Button|Find...}} button.
Line 159: Line 182:
# Use the {{Button|Cancel}} button to close the dialog box.
# Use the {{Button|Cancel}} button to close the dialog box.


==Notes==
==Notes== <!--T:70-->


<!--T:71-->
* The [[Fine-tuning|Fine-tuning]] page lists a number of parameters that may be of interest.
* The [[Fine-tuning|Fine-tuning]] page lists a number of parameters that may be of interest.


==Scripting== <!--T:10-->
==Scripting== <!--T:10-->


<!--T:72-->
{{Emphasis|See also:}} [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]].
{{Emphasis|See also:}} [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]].


<!--T:73-->
For a scripting example see [[Std_SelBoundingBox|Std SelBoundingBox]].
For a scripting example see [[Std_SelBoundingBox|Std SelBoundingBox]].


<!--T:74-->
{{Docnav
{{Docnav
|
|

Revision as of 06:27, 3 May 2020

Std DlgParameter

Menu location
Tools → Edit parameters...
Workbenches
All
Default shortcut
None
Introduced in version
-
See also
Preferences Editor

Description

The Std DlgParameter command opens the Parameter Editor. In the Parameter Editor the parameters that control the behavior of FreeCAD and its workbenches can be inspected and optionally removed, added or changed. The parameters are stored in a file called 'user.cfg', the location of this file depends on your OS.

Working with the Parameter Editor requires some experience. For the most common parameters you can also use the more convenient Preferences Editor.

The Parameter Editor dialog box

Usage

  1. Select the View → Edit parameters... option from the menu.
  2. The Parameter Editor dialog box opens. For more information see Options.
  3. Optionally press the Save to disk button to immediately update the 'user.cfg' file. This is not required as FreeCAD will automatically update that file when the application closes.
  4. Press the Close button to close the Parameter Editor.

Options

Left panel

The left panel shows a tree with parameter groups and sub-groups.

The following options are available in the panel's context menu:

Expand/Collapse

  1. If a selected group has one or more sub-groups it can be expanded or collapsed by choosing this option from the context menu. But you can also expand and collapse the tree in the usual manner.

Add sub-group

  1. Select a group.
  2. Select the Add sub-group option from the context menu.
  3. Enter a name for the new sub-group in the dialog box that opens.
  4. Press the OK button.

Remove group

  1. Select a group.
  2. Select the Remove group option from the context menu.
  3. Press the Yes button in the dialog box that opens to confirm you want to remove the group (including all its sub-groups, and all parameters in the group and its sub-groups).

Rename group

  1. Select a group.
  2. Select the Rename group option from the context menu.
  3. Enter a new name.
  4. A group can also be renamed by double-clicking it.

Export parameter

  1. Select a group.
  2. Select the Export parameter option from the context menu.
  3. Enter a filename in the dialog box.
  4. Press the Save button.

Import parameter

  1. Select a group that does not contain any sub-groups or remove them first. Any existing parameters in the group will be lost.
  2. Select the Import parameter option from the context menu.
  3. Select a *.FCParam file in the dialog box.
  4. Press the Open button.

Right panel

The right panel shows the parameters in the group selected in the left panel. If this group only contains sub-groups the right panel will be empty.

The following options are available in the panel's context menu:

Change value

  1. Select a parameter.
  2. Select the Change value option from the context menu.
  3. Enter a new value in the dialog box that opens.
  4. Press the OK button.
  5. A parameter's value can also be changed by double-clicking its 'Type' or 'Value' field.

Remove key

  1. Select a parameter.
  2. Select the Remove key option from the context menu.

Rename key

  1. Select a parameter.
  2. Select the Rename key option from the context menu.
  3. Enter a new name.
  4. A parameter can also be renamed by double-clicking its 'Name' field.

New string item

  1. Select the New string item or New → New string item option from the context menu.
  2. Enter a name in the dialog box that opens.
  3. Press the OK button.
  4. Enter a value in the next dialog box.
  5. Press the OK button.

New float item

  1. Select the New float item or New → New float item option from the context menu.
  2. The next steps are similar to those for a New string item

New integer item

  1. Select the New integer item or New → New integer item option from the context menu.
  2. The next steps are similar to those for a New string item

New unsigned item

  1. Select the New unsigned item or New → New unsigned item option from the context menu.
  2. The next steps are similar to those for a New string item

New Boolean item

  1. Select the New Boolean item or New → New Boolean item option from the context menu.
  2. 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

  1. 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.
  2. Press the Find... button.
  3. Enter a string in the Find what input box. The search is case-insensitive.
  4. Check one or more of the Groups, Names and Values checkboxes. Note that only string values will be searched.
  5. Optionally (un)check the Match whole string only checkbox.
  6. 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.
  7. 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.
  8. Use the Cancel button to close the dialog box.

Notes

  • The Fine-tuning page lists a number of parameters that may be of interest.

Scripting

See also: FreeCAD Scripting Basics.

For a scripting example see Std SelBoundingBox.