Std DlgParameter: Difference between revisions

From FreeCAD Documentation
(Marked this version for translation)
(Revised. 'In progress' for now.)
Line 1: Line 1:
<languages/>
<languages/>

{{UnfinishedDocu{{#translation:}}}}
{{Page in progress}}

<translate>
<translate>

{{Docnav
|
|[[Std_ViewScreenShot|Std ViewScreenShot]]
|[[Std_Tools_Menu|Std Tools Menu]]
|IconL=
|IconR=Std_ViewScreenShot.svg
|IconC=Freecad.svg
}}


<!--T:1-->
<!--T:1-->
{{GuiCommand
{{GuiCommand
|Name=Parameter editor
|Name=Std DlgParameter
|MenuLocation=Tools → Edit parameters...
|Icon=Std DlgParameter.svg
|Workbenches=All
|Workbenches=All
|MenuLocation={{StdMenu|[[Std Tools Menu|Tools]]}} → Edit parameters...
}}
}}


==Description== <!--T:20-->
==Description== <!--T:20-->


<!--T:2-->
<!--T:2-->
The [[Std DlgParameter|parameter editor]] allows you to access, create, and modify the parameter table that controls different behaviors of FreeCAD and its workbenches.
The '''Std DlgParameter''' command opens the Parameter Editor. In the Parameter Editor all parameters that control the behavior of FreeCAD and its workbenches can be inspected and optionally removed, added or changed.


<!--T:7-->
<!--T:7-->
The most common options can be changed from the [[Preferences Editor|preferences editor]], but certain tweaks are only accessible through the parameter editor.
The most common parameters are more conveniently accessible via the [[Preferences_Editor|Preferences Editor]].


</translate>
==Usage== <!--T:21-->
[[Image:Parameter_editor.png]]
<translate>
{{Caption|The Parameter Editor dialog box}}

==Usage== <!--T:21-->


<!--T:3-->
<!--T:3-->
Go to the menu {{MenuCommand|{{StdMenu|Tools}} → Edit parameters}}; then browse the different categories to access the variables under each category.
# Select the {{MenuCommand|View [[Image:Std_DlgParameter.svg|16px]] Edit parameters...}} option from the menu.
# Browse to the correct sub-group.
# Optionally add a sub-group by choosing {{MenuCommand|Add sub-group}} from the context menu in the left panel.
# Optionally add a parameter:
#* Select {{MenuCommand|New}} from the context menu in the right panel.
#* Select the correct item type from the next menu. The following types are available: 'string', 'float', 'integer', 'unsigned' and 'Boolean'.
#* Enter a name in the dialog box that pops up.
#* Press the {{Button|OK}} button.
#* Enter a value in the next dialog box.
#* Press the {{Button|OK}} button.
# Optionally modify a parameter value:
#* Right-click the parameter in the right panel and choose {{MenuCommand|Change value}}. Or double-click the parameter's value field.
#* Enter a new value in the dialog box that pops up.
#* Press the {{Button|OK}} button.
# There is no need to use the {{Button|Save to disk}} button. All changes are immediately saved.
# Press the {{Button|Close}} button to close the Parameter Editor.


==Options==
<!--T:8-->
See [[Fine-tuning|fine-tuning]] to learn what parameters can be changed.


* Todo.
<!--T:6-->
[[Image:Parameter_editor.png]]


==Notes==
==Related== <!--T:22-->


* The [[Fine-tuning|Fine-tuning]] page lists a number of parameters that may be of interest.
<!--T:23-->
* [[Path experimental]] using the Parameter editor to enable experimental features


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


{{Emphasis|See also:}} [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]].
<!--T:24-->
{{VeryImportantMessage|This section is incomplete and needs to be formulated}}


For a scripting example see [[Std_SelBoundingBox|Std SelBoundingBox]].
<!--T:25-->
It is possible to manipulate the Parameter Tree using the FreeCAD Python API:


{{Docnav
</translate>
|
{{Code|code=
|[[Std_ViewScreenShot|Std ViewScreenShot]]
.GetBool(variable,bool) # method to get boolean
|[[Std_Tools_Menu|Std Tools Menu]]

|IconL=
.SetBool # method to set boolean
|IconR=Std_ViewScreenShot.svg
.GetString
|IconC=Freecad.svg
.SetString
.GetFloat
.SetFloat
}}
}}

{{Code|code=
.SetInt(variable, int) method to set integer
Example: to set the height of the Addon Manager
pref = FreeCAD.ParamGet("User parameter:BaseApp/Preferences/Addons")
pref.SetInt("WindowHeight",480)

.GetInt
.RemInt
.GetUnsigned
}}

{{Code|code=
App.ParamGet('User Parameters:BaseApp').GetGroup()
.GetContents()
}}
<translate>
<!--T:26-->
See also this [https://forum.freecadweb.org/viewtopic.php?f=22&t=44171&p=376955#p376955 forum thread]



</translate>
</translate>
{{Std Base{{#translation:}}}}
{{Std Base navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{clear}}
{{clear}}

Revision as of 14:11, 17 April 2020

This documentation is a work in progress. Please don't mark it as translatable since it will change in the next hours and days.


Std DlgParameter

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

Description

The Std DlgParameter command opens the Parameter Editor. In the Parameter Editor all parameters that control the behavior of FreeCAD and its workbenches can be inspected and optionally removed, added or changed.

The most common parameters are more conveniently accessible via the Preferences Editor.

The Parameter Editor dialog box

Usage

  1. Select the View → Edit parameters... option from the menu.
  2. Browse to the correct sub-group.
  3. Optionally add a sub-group by choosing Add sub-group from the context menu in the left panel.
  4. Optionally add a parameter:
    • Select New from the context menu in the right panel.
    • Select the correct item type from the next menu. The following types are available: 'string', 'float', 'integer', 'unsigned' and 'Boolean'.
    • Enter a name in the dialog box that pops up.
    • Press the OK button.
    • Enter a value in the next dialog box.
    • Press the OK button.
  5. Optionally modify a parameter value:
    • Right-click the parameter in the right panel and choose Change value. Or double-click the parameter's value field.
    • Enter a new value in the dialog box that pops up.
    • Press the OK button.
  6. There is no need to use the Save to disk button. All changes are immediately saved.
  7. Press the Close button to close the Parameter Editor.

Options

  • Todo.

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.