Std CloseActiveWindow/ru: Difference between revisions

From FreeCAD Documentation
No edit summary
(Created page with "* Путь к последнему закрытому файлу сохраняется в параметре: {{MenuCommand|Инструменты → Редактор пар...")
Line 46: Line 46:
==Настройки==
==Настройки==


* The last used file location is stored: {{MenuCommand|ToolsEdit parameters... → BaseApp → Preferences → General → FileOpenSavePath}}.
* Путь к последнему закрытому файлу сохраняется в параметре: {{MenuCommand|ИнструментыРедактор параметров... → BaseApp → Preferences → General → FileOpenSavePath}}.


==Scripting==
==Scripting==

Revision as of 10:56, 17 August 2021

Other languages:

Std CloseActiveWindow

Системное название
Std CloseActiveWindow
Расположение в меню
Файл → Закрыть
Верстаки
All
Быстрые клавиши
Ctrl+F4
Представлено в версии
-
См. также
Std CloseAllWindows

Описание

The Std CloseActiveWindow command closes the active window. To close a document all its windows must be closed.

Применение

  1. There are several ways to invoke the command:
    • Select the File → Close option from the menu.
    • Use the keyboard shortcut: Ctrl+F4.
  2. To close a document: repeat this for all windows belonging to it.
  3. When closing the last window of a document that has not been saved, a dialog box will prompt you to save it:
    • Press the Save button to save the document. If required enter a filename first.
    • Press the Discard button to discard the document and lose all changes.

Опции

  • Когда диалоговое окно отображается: нажмите Esc или кнопку Отмена, чтобы прервать выполнение команды.

Примечания

  • The command can only close docked windows.
  • A document can also be closed by right-clicking it in the Tree view and selecting Close document from the context menu.

Настройки

  • Путь к последнему закрытому файлу сохраняется в параметре: Инструменты → Редактор параметров... → BaseApp → Preferences → General → FileOpenSavePath.

Scripting

Смотрите так же: Основы составления скриптов в FreeCAD.

To close a document use the closeDocument method of the FreeCAD application. For a scripting example see Std New.