Команда "Редактор параметров..."
Std DlgParameter |
Системное название |
---|
Std DlgParameter |
Расположение в меню |
Инструменты → Редактор параметров |
Верстаки |
All |
Быстрые клавиши |
Нет |
Представлено в версии |
- |
См. также |
Preferences Editor |
Описание
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
Применение
- Select the Tools → Edit parameters... option from the menu.
- The Parameter Editor dialog box opens. For more information see Options.
- 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.
- Press the Close button to close the Parameter Editor.
Опции
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
- 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
- Select a group.
- Select the Add sub-group option from the context menu.
- Enter a name for the new sub-group in the dialog box that opens.
- Press the OK button.
Remove group
- Select a group.
- Select the Remove group option from the context menu.
- 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
- Select a group.
- Select the Rename group option from the context menu.
- Enter a new name.
- A group can also be renamed by double-clicking it.
Export parameter
- Select a group.
- Select the Export parameter option from the context menu.
- Enter a filename in the dialog box.
- Press the Save button.
Import parameter
- 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 Import parameter option from the context menu.
- Select a *.FCParam file in the dialog box.
- 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
- Select a parameter.
- Select the Change value option from the context menu.
- Enter a new value in the dialog box that opens.
- Press the OK button.
- A parameter's value can also be changed by double-clicking its 'Type' or 'Value' field.
Remove key
- Select a parameter.
- Select the Remove key option from the context menu.
Rename key
- Select a parameter.
- Select the Rename key option from the context menu.
- Enter a new name.
- A parameter can also be renamed by double-clicking its 'Name' field.
New string item
- Select the New string item or New → New string item option from the context menu.
- Enter a name in the dialog box that opens.
- Press the OK button.
- Enter a value in the next dialog box.
- Press the OK button.
New float item
- Select the New float item or New → New float item option from the context menu.
- The next steps are similar to those for a New string item
New integer item
- Select the New integer item or New → New integer item option from the context menu.
- The next steps are similar to those for a New string item
New unsigned item
- Select the New unsigned item or New → New unsigned item option from the context menu.
- The next steps are similar to those for a New string item
New Boolean item
- Select the New Boolean item or New → New Boolean item option from the context menu.
- 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
- 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 Find... button.
- Enter a string in the Find what input box. The search is case-insensitive.
- Check one or more of the Groups, Names and Values checkboxes. Note that only string values will be searched.
- Optionally (un)check the Match whole string only checkbox.
- 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.
- 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.
- Use the Cancel button to close the dialog box.
Примечания
- The Fine-tuning page lists a number of parameters that may be of interest.
Scripting
Смотрите так же: Основы составления скриптов в FreeCAD.
Preferences can be accessed from Python scripts using their corresponding path in the Parameter Editor. For example, the Edit → Preferences → Import-Export → DXF → Import options → Join geometry preference appears in Tools → Edit parameters → BaseApp → Preferences → Mod → Draft → dxfCreatePart and has type Boolean
. It can therefore be accessed in Python using the following code:
# get:
App.ParamGet("User parameter:BaseApp/Preferences/Mod/Draft").GetBool('dxfCreatePart')
# set:
App.ParamGet("User parameter:BaseApp/Preferences/Mod/Draft").SetBool('dxfCreatePart', True)
Finding which parameter is used to store which option from the Preferences editor can require searching a bit, but the Parameter Editor offers a search facility, which should help.
It is likely a bad idea to modify the preferences of other parts of FreeCAD unless doing so at the user's request. The setter can however be used to set parameters for your own workbench, and the getter can be used to obey existing parameters.
- Стандартное меню: Файл, Правка, Вид, Инструменты, Макросы, Окна, Справка
- Структура: Std Part, Std Group, Std LinkMake
- Файл: Создать, Открыть, Закрыть, Закрыть всё, Сохранить, Сохранить как, Сохранить копию, Сохранить всё, Вернуться, Импортировать, Экспортировать, Объединить проект, Информация о проекте, Печать, Предварительный просмотр, Экспортировать в PDF, Недавние файлы, Выход
- Правка: Отменить, Вернуть, Вырезать, Копировать, Вставить, Дублировать выбранное, Обновить, Выделить область, Box element selection, Выбрать всё, Удалить, Расположение, Выравнивание, Редактировать/закончить редактирование, Настройки
- Вид: Создать новый вид, Ортогональная проекция, Перспективная проекция, На весь экран, Стандартные виды (Уместить всё, Уместить выделенное, Isometric, Dimetric, Trimetric, Спереди, Сверху, Справа, Сзади, Снизу, Слева, Повернуть влево, Повернуть вправо), Freeze display (Save views, Load views, Freeze view, Clear views), Стиль представления (Как есть, Плоские линии, Shaded, Каркас, Точки, Скрытые линии, Без затенения), Bounding box, Стерео (Стерео красный/голубой, Четверная буферизация стерео, Стерео с чередованием строк, Стерео с чередованием столбцов, Выключить стерео, Выводить положения камеры), Масштаб (Увеличить, Уменьшить, Увеличить область), Окно документа (Закреплённое, Откреплённое, На весь экран), Показать/скрыть оси координат, Плоскость сечения, Текстурирование, Видимость (Видимость, Показать выделенные, Скрыть выделенные, Выбрать видимые объекты, Инвертировать все видимости, Показать все объекты, Скрыть все объекты, Откл/вкл выделяемость, Показывать замеры, Удалить замер), Навигация/редактирование, Внешний вид, Случайный цвет, Верстак, Панели инструментов (Файл, Верстак, Макрос, Вид, Структура, Навигация), Панели (Отчёт, Иерархия документа, Окно свойств, Просмотр выделения, Комбо панель, Консоль Python, DAG view), Tree view actions (Sync view, Sync selection, Sync placement, Pre-selection, Record selection, Single document, Multi document, Collapse/expand, Initiate dragging, Go to selection), Строка состояния
- Инструменты: Редактор параметров, Сохранить изображение, Инспектор сцены, Граф зависимостей, Project utility, Измерить расстояние, Text document, Поворотный просмотр, Конвертор величин, Настройка, Addon manager
- Макросы: Запись макроса, Остановить запись макроса, Макрос, Выполнить макрос, Отладка макросов, Остановить отладку, Шаг с обходом, Шаг с заходом, Установить/снять точку останова
- Окна: Следующее, Предыдущее, Плиткой, Каскадом, Окна
- Справка: Справка, Сайт FreeCAD, Пользовательская документация, Документация по созданию скриптов на Python, Автоматически сгенерированная документация Python, Форум FreeCAD, FreeCAD ЧаВо, О FreeCAD, Что это?
- Начинающим
- Установка: Загрузка, Windows, Linux, Mac, Дополнительных компонентов, Docker, AppImage, Ubuntu Snap
- Базовая: О FreeCAD, Интерфейс, Навигация мыши, Методы выделения, Имя объекта, Настройки, Верстаки, Структура документа, Свойства, Помоги FreeCAD, Пожертвования
- Помощь: Учебники, Видео учебники
- Верстаки: Std Base, Arch, Assembly, CAM, Draft, FEM, Inspection, Mesh, OpenSCAD, Part, PartDesign, Points, Reverse Engineering, Robot, Sketcher, Spreadsheet, Start, Surface, TechDraw, Test Framework, Web