Std Open/pl: Difference between revisions

From FreeCAD Documentation
(Created page with "==Użycie==")
(Created page with "# Istnieje kilka sposobów na wywołanie tego polecenia: #* Naciśnij przycisk {{Button|16px Std Open}}. #* Wybierz z menu opcję {{MenuCom...")
Line 24: Line 24:
==Użycie==
==Użycie==


# Istnieje kilka sposobów na wywołanie tego polecenia:
# There are several ways to invoke the command:
#* Press the {{Button|[[Image:Std_Open.svg|16px]] [[Std_Open|Std Open]]}} button.
#* Naciśnij przycisk {{Button|[[Image:Std_Open.svg|16px]] [[Std_Open|Std Open]]}}.
#* Select the {{MenuCommand|File → [[Image:Std_Open.svg|16px]] Open...}} option from the menu.
#* Wybierz z menu opcję {{MenuCommand|Plik → [[Image:Std_Open.svg|16px]] Otwórz ...}} opcję z menu.
#* Use the keyboard shortcut: {{KEY|Ctrl}}+{{KEY|O}}.
#* Użyj skrótu klawiaturowego: {{KEY|Ctrl}} + {{KEY|O}}.
# Optionally select the correct file format in the dialog box.
# Opcjonalnie wybierz odpowiedni format pliku w oknie dialogowym.
# Select a file.
# Wybierz plik.
# Press the {{Button|Open}} button.
# Naciśnij przycisk {{Button|Otwórz}}.


==Options==
==Options==

Revision as of 12:42, 4 May 2022

Std: Otwórz

Lokalizacja w menu
Plik → Otwórz ...
Środowisko pracy
wszystkie
Domyślny skrót
Ctrl+O
Wprowadzono w wersji
-
Zobacz także
Importuj, Nowy

Opis

Polecenie Std: Otwórz otwiera plik. Jeśli plik nie jest natywnym plikiem FreeCAD (*.FCStd), jego geometria zostanie zaimportowana do nowego dokumentu. Zobacz stronę Std: Importuj, aby uzyskać więcej informacji.

Użycie

  1. Istnieje kilka sposobów na wywołanie tego polecenia:
    • Naciśnij przycisk Std Open.
    • Wybierz z menu opcję Plik → Otwórz ... opcję z menu.
    • Użyj skrótu klawiaturowego: Ctrl + O.
  2. Opcjonalnie wybierz odpowiedni format pliku w oknie dialogowym.
  3. Wybierz plik.
  4. Naciśnij przycisk Otwórz.

Options

  • Press Esc or the Cancel button to abort the command.

Preferences

  • The last used file location is stored: Tools → Edit parameters... → BaseApp → Preferences → General → FileOpenSavePath.

Scripting

See also: FreeCAD Scripting Basics.

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.

For a scripting example see Std New.