Edytor parametrów

From FreeCAD Documentation
Revision as of 16:47, 4 February 2020 by Kaktus (talk | contribs) (Created page with "Najbardziej popularne opcje mogą być zmieniane z Edytora preferencji, ale pewne modyfikacje są dostępne tylko poprzez edytor parametrów.")

Edytor parametrów

Lokalizacja w menu
Narzędzia → Edytor parametrów ...
Środowisko pracy
Wszystkie
Domyślny skrót
brak
Wprowadzono w wersji
-
Zobacz także
brak

Opis

Edytor parametrów pozwala na dostęp, tworzenie i modyfikację tabeli parametrów, która kontroluje różne zachowania FreeCAD i jego Środowisk pracy.

Najbardziej popularne opcje mogą być zmieniane z Edytora preferencji, ale pewne modyfikacje są dostępne tylko poprzez edytor parametrów.

Usage

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