GuiCommand: Name: Std Open MenuLocation: File , Open... Workbenches: All Shortcut: Ctrl+O SeeAlso: Std_Import, Std_New
Std Open
Description
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.
Usage
- 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.
- Press the
- Optionally select the correct file format in the dialog box.
- Select a file.
- Press the Open button.
Options
- Press Esc or the Cancel button to abort the command.
Scripting
See also: Autogenerated API documentation and FreeCAD Scripting Basics.
To open a document use the open(filepath)
method or the openDocument(filepath, [hidden<nowiki>=</nowiki>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<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.
For a scripting example see Std New.
⏵ documentation index > Std Open
This page is retrieved from https://github.com/FreeCAD/FreeCAD-documentation/blob/main/wiki/Std_Open.md