Std Open/pl: Difference between revisions

From FreeCAD Documentation
(Created page with "{{Emphasis|Zobacz również:}} FreeCAD podstawy tworzenia skryptów.")
(Created page with "Aby otworzyć dokument, należy użyć metody {{incode|open(filepath)}} lub metody {{incode|openDocument(filepath, [hidden<nowiki>=</nowiki>False])}} aplikacji FreeCAD.")
Line 44: Line 44:
{{Emphasis|Zobacz również:}} [[FreeCAD_Scripting_Basics/pl|FreeCAD podstawy tworzenia skryptów]].
{{Emphasis|Zobacz również:}} [[FreeCAD_Scripting_Basics/pl|FreeCAD podstawy tworzenia skryptów]].


To open a document use the {{incode|open(filepath)}} method or the {{incode|openDocument(filepath, [hidden<nowiki>=</nowiki>False])}} method of the FreeCAD application.
Aby otworzyć dokument, należy użyć metody {{incode|open(filepath)}} lub metody {{incode|openDocument(filepath, [hidden<nowiki>=</nowiki>False])}} aplikacji FreeCAD.


These methods create and return a document and load a project file into it. The {{incode|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 {{incode|hidden<nowiki>=</nowiki>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.
These methods create and return a document and load a project file into it. The {{incode|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 {{incode|hidden<nowiki>=</nowiki>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.

Revision as of 17:15, 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 Otwórz.
    • 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.

Opcje

  • Naciśnij przycisk Esc lub przycisk Anuluj aby przerwać wykonywanie polecenia.

Ustawienia

  • Przechowywana jest ostatnio używana lokalizacja pliku: Przybory → Edycja parametrów ... → BaseApp → Preferences → General → FileOpenSavePath.

Tworzenie skryptów

Zobacz również: FreeCAD podstawy tworzenia skryptów.

Aby otworzyć dokument, należy użyć metody open(filepath) lub metody openDocument(filepath, [hidden=False]) aplikacji FreeCAD.

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.