Std DlgParameter: Difference between revisions

From FreeCAD Documentation
mNo edit summary
m (</translate>)
(18 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<languages/>
<translate>
<translate>
<!--T:1-->
{{GuiCommand
|Name=Parameter editor
|Icon=Std DlgParameter.svg
|Workbenches=All
|MenuLocation=[[Std Tools Menu|Tools]] → Edit parameters...
}}


==Description== <!--T:2-->
{{Template:UnfinishedDocu}}
The [[Std DlgParameter|parameter editor]] allows you to access, create, and modify the parameter table that controls different behaviors of FreeCAD and its workbenches.


<!--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.


==How to use== <!--T:3-->
{{GuiCommand|Name=Std DlgParameter|Workbenches=All|MenuLocation=[[Std Tools|Tools]] → Parameter |Shortcut=|SeeAlso=}}
Go to the menu {{MenuCommand|Tools → Edit parameters}}; then browse the different categories to access the variables under each category.


<!--T:8-->
ToDo.
See [[Fine-tuning|fine-tuning]] for some parameters that can be changed.


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


==Scripting== <!--T:10-->
[[Category:UnfinishedDocu]]
It is possible to manipulate the Parameter Tree using the FreeCAD Python API:


</translate>
</translate>
{{Code|code=
{{clear}}
.GetBool(variable,bool) # method to get boolean
<languages/>

.SetBool # method to set boolean
.GetString
.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:9-->
{{Std Base}}
{{Userdocnavi}}
</translate>

Revision as of 11:22, 29 October 2019

Parameter editor

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

Description

The parameter editor allows you to access, create, and modify the parameter table that controls different behaviors of FreeCAD and its workbenches.

The most common options can be changed from the preferences editor, but certain tweaks are only accessible through the parameter editor.

How to use

Go to the menu Tools → Edit parameters; then browse the different categories to access the variables under each category.

See fine-tuning for some parameters that can be changed.

Scripting

It is possible to manipulate the Parameter Tree using the FreeCAD Python API:

.GetBool(variable,bool) # method to get boolean

.SetBool        # method to set boolean
.GetString
.SetString
.GetFloat
.SetFloat
.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
App.ParamGet('User Parameters:BaseApp').GetGroup()
.GetContents()