MeshExporter
The mesh exporter.
Example
app = cf.GetApplication() project = app:OpenFile(FEKO_HOME..[[/shared/Resources/Automation/Dipole_Example.cfx]]) -- Export the entire mesh to a NASTRAN file project.Exporter.Mesh.ExportFileFormat = cf.Enums.ExportFileFormatEnum.NASTRAN project.Exporter.Mesh:Export([[temp_Export_all.nas]]) -- Export a single mesh part to a NASTRAN file project.Geometry[1]:UnlinkMesh() project.Exporter.Mesh.ExportFileFormat = cf.Enums.ExportFileFormatEnum.NASTRAN project.Exporter.Mesh:ExportParts([[temp_Export_part1.nas]], {}, {project.Meshes[1]})
Usage locations (object properties)
The following objects have properties using the MeshExporter object:
Property List
- ExportFileFormat
- The export file format. (Read/Write ExportMeshFileFormatEnum). (Read/Write ExportFileFormatEnum)
- ExportMeshType
- The type of mesh to export. (Read/Write ExportMeshTypeEnum). (Read/Write ExportMeshTypeEnum)
- ExportOnlyBoundingFacesEnabled
- Export only the bounding faces of volume meshes. (Read/Write boolean). (Read/Write boolean)
- MirrorHorizontallyAroundYAxisEnabled
- Mirror geometry horizontally around Y-axis. Only valid if ExportFileFormat is Gerber.(Read/Write boolean). (Read/Write boolean)
- ProjectOntoXYPlaneEnabled
- Project the 3D geometry on a 2D plane. Only valid if ExportFileFormat is DXF. (Read/Write boolean). (Read/Write boolean)
- ScaleToMetreEnabled
- Scale the mesh to metre before export. (Read/Write boolean)
- Type
- The object type string. (Read only string)
Method List
Property Details
- ExportFileFormat
- The export file format. (Read/Write ExportMeshFileFormatEnum).
- Type
- ExportFileFormatEnum
- Access
- Read/Write
- ExportMeshType
- The type of mesh to export. (Read/Write ExportMeshTypeEnum).
- Type
- ExportMeshTypeEnum
- Access
- Read/Write
- ExportOnlyBoundingFacesEnabled
- Export only the bounding faces of volume meshes. (Read/Write boolean).
- Type
- boolean
- Access
- Read/Write
- MirrorHorizontallyAroundYAxisEnabled
- Mirror geometry horizontally around Y-axis. Only valid if ExportFileFormat is Gerber.(Read/Write boolean).
- Type
- boolean
- Access
- Read/Write
- ProjectOntoXYPlaneEnabled
- Project the 3D geometry on a 2D plane. Only valid if ExportFileFormat is DXF. (Read/Write boolean).
- 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