MeshExporter

The mesh exporter.

Example

application = cf.Application.GetInstance()
project = application:Load({FEKO_HOME..[[/shared/Resources/Automation/Helix_dipole.cfx]]})

    -- Export the entire mesh to a NASTRAN file

project.Exporter.Mesh.ExportFileFormat = cf.Enums.ExportMeshFileFormatEnum.NASTRAN
project.Mesher:Mesh()
project.Exporter.Mesh:Export([[temp_Export_all.nas]])

    -- Export a single mesh part to a NASTRAN file

project.Contents.Geometry[1]:UnlinkMesh()
project.Exporter.Mesh.ExportFileFormat = cf.Enums.ExportMeshFileFormatEnum.NASTRAN
project.Mesher:Mesh()
project.Exporter.Mesh:ExportParts([[temp_Export_part1.nas]], {}, {project.Contents.Meshes[1]})

Inheritance

The MeshExporter object is derived from the Object object.

Usage locations

The MeshExporter object can be accessed from the following locations:

Property List

ExportFileFormat
The export file format. (Read/Write ExportMeshFileFormatEnum)
ExportMeshType
The type of mesh to export. (Read/Write ExportMeshTypeEnum)
ExportOnlyBoundingFacesEnabled
Export only the bounding faces of volume meshes. (Read/Write boolean)
Label
The object label. (Read/Write string)
MirrorHorizontallyAroundYAxisEnabled
Mirror geometry horizontally around Y-axis. Only valid if ExportFileFormat is Gerber. (Read/Write boolean)
ProjectOntoXYPlaneEnabled
Project the 3D geometry on a 2D plane. Only valid if ExportFileFormat is DXF. (Read/Write boolean)
ScaleToMetreEnabled
Scale the mesh to metre before export. (Read/Write boolean)
Type
The object type string. (Read only string)

Method List

Delete ()
Deletes the entity.
Duplicate ()
Duplicates the entity. (Returns a Object object.)
Export (filename string)
Export to the specified file.
ExportParts (filename string, geomoperatorlist List of Geometry, meshentitylist List of Mesh)
Export only the specified meshes to the specified file.
GetProperties ()
Returns a table of properties representing the state of the object. The properties table can be used with the SetProperties method to change multiple properties of the object in one step. (Returns a table object.)
SetProperties (properties Object)
Modifies the state of the object using the provided table of properties. This method is used to modify multiple properties of the object in a single step.

Static Function List

GetDefaultProperties ()
Creates a table containing the default settings to create an object. (Returns a table object.)

Property Details

ExportFileFormat
The export file format.
Type
ExportMeshFileFormatEnum
Access
Read/Write
ExportMeshType
The type of mesh to export.
Type
ExportMeshTypeEnum
Access
Read/Write
ExportOnlyBoundingFacesEnabled
Export only the bounding faces of volume meshes.
Type
boolean
Access
Read/Write
Label
The object label.
Type
string
Access
Read/Write
MirrorHorizontallyAroundYAxisEnabled
Mirror geometry horizontally around Y-axis. Only valid if ExportFileFormat is Gerber.
Type
boolean
Access
Read/Write
ProjectOntoXYPlaneEnabled
Project the 3D geometry on a 2D plane. Only valid if ExportFileFormat is DXF.
Type
boolean
Access
Read/Write
ScaleToMetreEnabled
Scale the mesh to metre before export.
Type
boolean
Access
Read/Write
Type
The object type string.
Type
string
Access
Read only

Method Details

Delete ()
Deletes the entity.
Duplicate ()
Duplicates the entity.
Return
Object
The new (duplicated) entity.
Export (filename string)
Export to the specified file.
Input Parameters
filename(string)
The name of the file to be exported.
ExportParts (filename string, geomoperatorlist List of Geometry, meshentitylist List of Mesh)
Export only the specified meshes to the specified file.
Input Parameters
filename(string)
The name of the file to be exported.
geomoperatorlist(List of Geometry)
The list of geometry parts that must be exported.
meshentitylist(List of Mesh)
The list of mesh entities that must be exported.
GetProperties ()
Returns a table of properties representing the state of the object. The properties table can be used with the SetProperties method to change multiple properties of the object in one step.
Return
table
A table defining the properties.
SetProperties (properties Object)
Modifies the state of the object using the provided table of properties. This method is used to modify multiple properties of the object in a single step.
Input Parameters
properties(Object)
A table of properties defining the new state of the object.

Static Function Details

GetDefaultProperties ()
Creates a table containing the default settings to create an object.
Return
table
A table containing the default properties.