Mesh Export/de: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Updating to match new version of source page)
Line 2: Line 2:


{{Docnav
{{Docnav
|[[Mesh_Import|Mesh Import]]
|[[Mesh_Import|Import Mesh]]
|[[Mesh_FromPartShape|Mesh FromPartShape]]
|[[Mesh_FromPartShape|Mesh From Shape]]
|[[Mesh_Workbench|Mesh]]
|[[Mesh_Workbench|Mesh]]
|IconL=Mesh_Import.svg
|IconL=Mesh_Import.svg
Line 57: Line 57:


{{Docnav
{{Docnav
|[[Mesh_Import|Mesh Import]]
|[[Mesh_Import|Import Mesh]]
|[[Mesh_FromPartShape|Mesh FromPartShape]]
|[[Mesh_FromPartShape|Mesh From Shape]]
|[[Mesh_Workbench|Mesh]]
|[[Mesh_Workbench|Mesh]]
|IconL=Mesh_Import.svg
|IconL=Mesh_Import.svg

Revision as of 18:59, 1 December 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.

Notes

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')