Std Open/es: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Updating to match new version of source page)
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<languages/>
<languages/>
{{Docnav
|[[Std_New|New]]
|[[Std_CloseActiveWindow|CloseActiveWindow]]
|[[Std_File_Menu|Std File Menu]]
|IconL=Std_New.svg
|IconR=Std_CloseActiveWindow.svg
|IconC=Freecad.svg
}}

<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
{{GuiCommand/es|Name=Std Open|MenuLocation=[[Std_File_Menu|File]] → Open|Workbenches=Todos|SeeAlso=[[Std_Save/es]],[[Std_Import/es]]}}
{{GuiCommand/es|Name=Std Open|MenuLocation=[[Std_File_Menu|File]] → Open|Workbenches=Todos|SeeAlso=[[Std_Save/es]],[[Std_Import/es]]}}
Line 8: Line 17:
</div>
</div>


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.
<div class="mw-translate-fuzzy">
Cuando se cargan los archivos siempre se crea un nuevo documento. Si quieres cargar un archivo en un documento existente utiliza [[Std_Import/es|Std_Import]] en su lugar.
</div>

Los archivos de proyecto de FreeCAD tienen la extensión "FCStd". Para conseguir más información sobre la distribución interna de los archivos de proyecto de FreeCAD lee el artículo [[File Format FCStd/es|Formato de archivo FCStd]].


==Usage==
==Usage==

# Invoke the command several ways:
# There are several ways to invoke the command:
#* Pressing the {{KEY|[[File:Std Open.png|16px|Std Open|link=Std Open]] [[Std Open|Std Open]]}} button in the toolbar
#* Press the {{Button|[[Image:Std_Open.svg|16px]] [[Std_Open|Std Open]]}} button.
#* Using the {{KEY|Ctrl}}+{{KEY|O}} keyboard shortcut
#* {{MenuCommand|[[Std_File_Menu|File]] Open}}
#* Select the {{MenuCommand|File → [[Image:Std_Open.svg|16px]] Open...}} option from the menu.
#* Use the keyboard shortcut: {{KEY|Ctrl}}+{{KEY|O}}.
# Optionally select the correct file format in the dialog box.
# Select a file.
# Press the {{Button|Open}} button.

==Options==

* Press {{KEY|Esc}} or the {{Button|Cancel}} button to abort the command.

==Preferences==

* The last used file location is stored: {{MenuCommand|Tools → Edit parameters... → BaseApp → Preferences → General → FileOpenSavePath}}.


==Scripting==
==Scripting==


{{Emphasis|See also:}} [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]].
{{Std Base navi}}

To open a document use the {{incode|open(filepath)}} method or the {{incode|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 {{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.

For a scripting example see [[Std_New#Scripting|Std New]].


{{Docnav
|[[Std_New|New]]
|[[Std_CloseActiveWindow|CloseActiveWindow]]
|[[Std_File_Menu|Std File Menu]]
|IconL=Std_New.svg
|IconR=Std_CloseActiveWindow.svg
|IconC=Freecad.svg
}}


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

Revision as of 03:52, 4 February 2021

Std Open

Ubicación en el Menú
File → Open
Entornos de trabajo
Todos
Atajo de teclado por defecto
Ninguno
Introducido en versión
-
Ver también
Std_Save/es,Std_Import/es

Abre y carga archivos de proyecto en el espacio de trabajo de FreeCAD y dependiendo de los módulos de extensión instalados los tipos de archivo soportados serán IGES, STEP, BREP, STL, OBJ, PLY etc.

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

  1. There are several ways to invoke the command:
    • Press the Std 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.

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.