Mesh Export: Difference between revisions

From FreeCAD Documentation
(Removed 'In progress'.)
(Marked this version for translation)
Line 2: Line 2:
<translate>
<translate>


<!--T:15-->
{{Docnav
{{Docnav
|[[Mesh_Import|Mesh Import]]
|[[Mesh_Import|Mesh Import]]
Line 11: Line 12:
}}
}}


<!--T:16-->
{{GuiCommand
{{GuiCommand
|Name=Mesh Export
|Name=Mesh Export
Line 18: Line 20:
}}
}}


==Description==
==Description== <!--T:17-->


<!--T:18-->
The '''Mesh Export''' command exports a mesh object to a mesh file format. Several file formats are supported.
The '''Mesh Export''' command exports a mesh object to a mesh file format. Several file formats are supported.


==Usage==
==Usage== <!--T:19-->


<!--T:20-->
# Select a single mesh object.
# Select a single mesh object.
# There are several ways to invoke the command:
# There are several ways to invoke the command:
Line 33: Line 37:
# Press the {{Button|Save}} button.
# Press the {{Button|Save}} button.


==Options==
==Options== <!--T:21-->


<!--T:22-->
* Press {{KEY|Esc}} or the {{Button|Cancel}} button to abort the command.
* Press {{KEY|Esc}} or the {{Button|Cancel}} button to abort the command.


==Notes==
==Notes== <!--T:23-->


<!--T:24-->
* There are some export preferences related to [[Import_Export_Preferences#Mesh_Formats|Mesh Formats]] but these do not apply to this command. They are used by the [[Std_Export|Std Export]] command.
* There are some export preferences related to [[Import_Export_Preferences#Mesh_Formats|Mesh Formats]] but these do not apply to this command. They are used by the [[Std_Export|Std Export]] command.


==Preferences==
==Preferences== <!--T:25-->


<!--T:26-->
* The last used file location is stored: {{MenuCommand|Tools → Edit parameters... → BaseApp → Preferences → General → FileOpenSavePath}}.
* The last used file location is stored: {{MenuCommand|Tools → Edit parameters... → BaseApp → Preferences → General → FileOpenSavePath}}.


==Scripting==
==Scripting== <!--T:27-->


<!--T:28-->
{{Emphasis|See also:}} [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]].
{{Emphasis|See also:}} [[FreeCAD_Scripting_Basics|FreeCAD Scripting Basics]].


<!--T:29-->
To export objects (including mesh objects) to a mesh file format use the {{incode|export}} method of the Mesh module.
To export objects (including mesh objects) to a mesh file format use the {{incode|export}} method of the Mesh module.


Line 62: Line 71:
<translate>
<translate>


<!--T:30-->
{{Docnav
{{Docnav
|[[Mesh_Import|Mesh Import]]
|[[Mesh_Import|Mesh Import]]

Revision as of 16:55, 3 July 2020

Mesh Export

Menu location
Meshes → Export mesh...
Workbenches
Mesh
Default shortcut
None
Introduced in version
-
See also
Std Export, Import Export

Description

The Mesh Export command exports a mesh object to a mesh file format. Several file formats are supported.

Usage

  1. Select a single mesh object.
  2. There are several ways to invoke the command:
    • Press the Mesh Export button.
    • Select the Meshes → Export mesh... option from the menu.
    • Select the Export mesh... option from the Tree view context menu or 3D view context menu.
  3. Select the correct file format in the dialog box.
  4. Enter a filename. If you have selected the All files (*.*) option in the previous step, and do not specify a file extension here, the .stl extension will be used.
  5. Press the Save button.

Options

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

Notes

  • There are some export preferences related to Mesh Formats but these do not apply to this command. They are used by the Std Export command.

Preferences

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

Scripting

See also: FreeCAD Scripting Basics.

To export objects (including mesh objects) to a mesh file format use the export method of the Mesh module.

import FreeCAD
import Mesh

doc = FreeCAD.ActiveDocument

Mesh.export([doc.Cone, doc.Cylinder], 'D:/testfiles/mymodel.stl')