Std Open/de: Difference between revisions

From FreeCAD Documentation
No edit summary
No edit summary
Line 27: Line 27:
==Anwendung==
==Anwendung==


<div class="mw-translate-fuzzy">
# Es gibt mehrere Möglichkeiten das Werkzeug aufzurufen:
# Es gibt mehrere Möglichkeiten das Werkzeug aufzurufen:
#* Die Schaltfläche {{Button|[[Image:Std_Open.svg|16px]] [[Std_Open/de|Öffnen...]]}} drücken.
#* Die Schaltfläche {{Button|[[Image:Std_Open.svg|16px]] [[Std_Open/de|Öffnen...]]}} drücken.
Line 35: Line 34:
# Eine Datei auswählen.
# Eine Datei auswählen.
# Die Schaltfläche {{Button|Öffnen}} drücken.
# Die Schaltfläche {{Button|Öffnen}} drücken.
</div>


<span id="Options"></span>
<span id="Options"></span>

Revision as of 14:53, 23 April 2024

Std Öffnen

Menüeintrag
Datei → Öffnen...
Arbeitsbereich
Alle
Standardtastenkürzel
Strg+O
Eingeführt in Version
-
Siehe auch
Std Import, Std Neu

Beschreibung

Der Befehl Std Öffnen öffnet eine Datei. Wenn die Datei keine native FreeCAD-Datei (*.FCStd) ist, wird die enthaltene Geometrie in ein neues Dokument importiert. Siehe Std Import für weitere Informationen.

Anwendung

  1. Es gibt mehrere Möglichkeiten das Werkzeug aufzurufen:
    • Die Schaltfläche Öffnen... drücken.
    • Den Menüeintrag Datei → Öffnen... auswählen.
    • Das Tastaturkürzel Ctrl+O.
  2. Optional kann das richtige Dateiformat im Dialogfeld ausgewählt werden.
  3. Eine Datei auswählen.
  4. Die Schaltfläche Öffnen drücken.

Optionen

  • Esc oder Schaltfläche Cancel drücken, um den Befehl abzubrechen.

Skripten

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.