Std DlgParameter: Difference between revisions

From FreeCAD Documentation
No edit summary
(Marked this version for translation)
(4 intermediate revisions by 2 users not shown)
Line 11: Line 11:
}}
}}


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


<!--T:2-->
<!--T:2-->
Line 19: Line 19:
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 options can be changed from the [[Preferences Editor|preferences editor]], but certain tweaks are only accessible through the parameter editor.


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


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

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

<!--T:23-->
* [[Path experimental]] using the Parameter editor to enable experimental features


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

<!--T:24-->
{{VeryImportantMessage|This section is incomplete and needs to be formulated}}

<!--T:25-->
It is possible to manipulate the Parameter Tree using the FreeCAD Python API:
It is possible to manipulate the Parameter Tree using the FreeCAD Python API:


Line 59: Line 69:
.GetContents()
.GetContents()
}}
}}
<translate>
<!--T:26-->
See also this [https://forum.freecadweb.org/viewtopic.php?f=22&t=44171&p=376955#p376955 forum thread]




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

Revision as of 21:19, 23 March 2020

This documentation is not finished. Please help and contribute documentation.

GuiCommand model explains how commands should be documented. Browse Category:UnfinishedDocu to see more incomplete pages like this one. See Category:Command Reference for all commands.

See WikiPages to learn about editing the wiki pages, and go to Help FreeCAD to learn about other ways in which you can contribute.

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.

Usage

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

See fine-tuning to learn what parameters can be changed.

Related

Scripting

This section is incomplete and needs to be formulated

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()

See also this forum thread