Mesh Export/ru: Difference between revisions

From FreeCAD Documentation
(Updating to match new version of source page)
(Updating to match new version of source page)
Line 1: Line 1:
<languages/>
<languages/>

{{UnfinishedDocu{{#translation:}}}}
{{Docnav
{{Docnav
|[[Mesh Import|Import Mesh]]
|[[Mesh_Import|Mesh Import]]
|[[Mesh FromPartShape|Create Mesh from shape]]
|[[Mesh_FromPartShape|Mesh FromPartShape]]
|[[Mesh_Workbench|Mesh_Workbench]]
|[[Mesh_Workbench|Mesh]]
|IconL=Mesh_Import.svg
|IconL=Mesh_Import.svg
|IconC=Workbench_Mesh.svg
|IconR=Mesh_FromPartShape.svg
|IconR=Mesh_FromPartShape.svg
|IconC=Workbench_Mesh.svg
}}
}}


{{GuiCommand
<div class="mw-translate-fuzzy">
|Name=Mesh Export
{{GuiCommand/ru
|MenuLocation=Meshes → Export mesh...
|Name=Mesh ExportMesh‏‎
|Workbenches=[[Mesh_Workbench|Mesh]]
|Name/ru=Mesh ExportMesh‏‎
|SeeAlso=[[Std_Export|Std Export]], [[Import_Export|Import Export]]
|MenuLocation=Сетки → Экспорт сетки
|Workbenches=[[Mesh Workbench/ru|Mesh]]
|SeeAlso=[[Std_Export/ru|Экспорт файла]]
}}
}}
</div>


==Description==
==Description==


This tool allows you to export a mesh object as file from the current document.
The '''Mesh Export''' command exports a mesh object to a mesh file format. Several file formats are supported.


==Usage==
==Usage==


# Select mesh object to be exported
# Select a single mesh object.
# There are several ways to invoke the command:
# Invoke Export Mesh command using several ways:
#* Press on the [[Image:Mesh_Export.svg|32px]] button in the Mesh Toolbar
#* Press the {{Button|[[Image:Mesh_Export.svg|16px]] [[Mesh_Export|Mesh Export]]}} button.
#* Use the {{MenuCommand|Meshes [[Image:Mesh_Export.svg|32px]] Export Mesh...}} entry from the Mesh menu.
#* Select the {{MenuCommand|Meshes → [[Image:Mesh_Export.svg|16px]] Export mesh...}} option from the menu.
#* Select the {{MenuCommand|[[Image:Mesh_Export.svg|16px]] Export mesh...}} option from the [[Tree_view|Tree view]] context menu or [[3D_view|3D view]] context menu.
# Select the correct file format in the dialog box.
# Enter a filename. If you have selected the {{incode|All files (*.*)}} option in the previous step, and do not specify a file extension here, the {{FileName|.stl}} extension will be used.
# Press the {{Button|Save}} button.

==Options==

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


==Notes==
==Notes==

* 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==

* 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]].
==Related==


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

{{Code|code=
import FreeCAD
import Mesh

doc = FreeCAD.ActiveDocument

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


{{Docnav
{{Docnav
|[[Mesh Import|Import Mesh]]
|[[Mesh_Import|Mesh Import]]
|[[Mesh FromPartShape|Create Mesh from shape]]
|[[Mesh_FromPartShape|Mesh FromPartShape]]
|[[Mesh_Workbench|Mesh_Workbench]]
|[[Mesh_Workbench|Mesh]]
|IconL=Mesh_Import.svg
|IconL=Mesh_Import.svg
|IconC=Workbench_Mesh.svg
|IconR=Mesh_FromPartShape.svg
|IconR=Mesh_FromPartShape.svg
|IconC=Workbench_Mesh.svg
}}
}}



{{Mesh Tools navi{{#translation:}}}}
{{Mesh Tools navi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{Userdocnavi{{#translation:}}}}
{{clear}}

Revision as of 16:56, 3 July 2020

Other languages:

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