Std Open/ru: Difference between revisions

From FreeCAD Documentation
No edit summary
(Updating to match new version of source page)
 
Line 1: Line 1:
<languages/>
<languages/>

<div class="mw-translate-fuzzy">
{{Docnav/ru
{{Docnav/ru
|[[Std_New/ru|Команда "Создать"]]
|[[Std_New/ru|Команда "Создать"]]
Line 8: Line 10:
|IconC=Freecad.svg
|IconC=Freecad.svg
}}
}}
</div>


{{GuiCommand/ru
{{GuiCommand/ru
Line 18: Line 21:
}}
}}


<span id="Description"></span>
==Описание==
==Описание==


The '''Std Open''' command opens a file. If the file is not a native FreeCAD file (*.FCStd) its geometry will be imported into a new document. See [[Std_Import|Std Import]] for more information.
The '''Std Open''' command opens a file. If the file is not a native FreeCAD file (*.FCStd) its geometry will be imported into a new document. See [[Std_Import|Std Import]] for more information.


<span id="Usage"></span>
==Применение==
==Применение==


# There are several ways to invoke the command:
# There are several ways to invoke the command:
#* Press the {{Button|[[Image:Std_Open.svg|16px]] [[Std_Open|Std Open]]}} button.
#* Press the {{Button|[[Image:Std_Open.svg|16px]] [[Std_Open|Open...]]}} button.
#* Select the {{MenuCommand|File → [[Image:Std_Open.svg|16px]] Open...}} option from the menu.
#* Select the {{MenuCommand|File → [[Image:Std_Open.svg|16px]] Open...}} option from the menu.
#* Use the keyboard shortcut: {{KEY|Ctrl}}+{{KEY|O}}.
#* Use the keyboard shortcut: {{KEY|Ctrl}}+{{KEY|O}}.
Line 32: Line 37:
# Press the {{Button|Open}} button.
# Press the {{Button|Open}} button.


<span id="Options"></span>
==Опции==
==Опции==


* Нажмите {{KEY|Esc}} или кнопку {{Button|Отмена}}, чтобы отменить выполнение команды.
* Нажмите {{KEY|Esc}} или кнопку {{Button|Отмена}}, чтобы отменить выполнение команды.


<span id="Scripting"></span>
==Настройки==

* Путь к последнему файлу к которому была применена данная команда сохраняется в параметр: {{MenuCommand|Инструменты → Редактор параметров... → BaseApp → Preferences → General → FileOpenSavePath}}.

==Программирование==
==Программирование==


Line 51: Line 54:




<div class="mw-translate-fuzzy">
{{Docnav/ru
{{Docnav/ru
|[[Std_New/ru|Команда "Создать"]]
|[[Std_New/ru|Команда "Создать"]]
Line 59: Line 63:
|IconC=Freecad.svg
|IconC=Freecad.svg
}}
}}
</div>


{{Std Base navi{{#translation:}}}}
{{Std_Base_navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{clear}}

Latest revision as of 11:49, 21 April 2024

Открыть...

Системное название
Std_Open
Расположение в меню
Файл → Открыть...
Верстаки
All
Быстрые клавиши
Ctrl+O
Представлено в версии
-
См. также
Импортировать файл,
Создать файл

Описание

The Std Open command opens a file. If the file is not a native FreeCAD file (*.FCStd) its geometry will be imported into a new document. See Std Import for more information.

Применение

  1. There are several ways to invoke the command:
    • Press the Open... button.
    • Select the File → Open... option from the menu.
    • Use the keyboard shortcut: Ctrl+O.
  2. Optionally select the correct file format in the dialog box.
  3. Select a file.
  4. Press the Open button.

Опции

  • Нажмите Esc или кнопку Отмена, чтобы отменить выполнение команды.

Программирование

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

To open a document use the open(filepath) method or the openDocument(filepath, [hidden=False]) method of the FreeCAD application.

These methods create and return a document and load a project file into it. The filepath argument must be a string pointing to an existing file. If the file doesn't exist or the file cannot be loaded an I/O exception is thrown. In this case the created document is kept, but will be empty. If hidden=True is used, the document won't be displayed in the GUI and no tab will appear for it. This allows performing automatic operations on a document and closing it without disrupting the user interface.

Примеры составления скрипта смотри в описании команды "Создать".