# Export Field CSV (`field.exportCsv`)

[Component reference](https://voltecx-web.nguyenvanqui291.workers.dev/docs/reference/) · [繁體中文](https://voltecx-web.nguyenvanqui291.workers.dev/zh/docs/reference/commands/field-exportCsv/)

**Menu:** none (Quick Open, the CLI, Python and MCP) · **Runs as:** at once

> Preview: turn on Preview features in Edit › Preferences › Simulation, or run `preview.set {"enabled":true}`. Its replies carry `preview: true` and a note.

## What it does

Preview. Writes a field result as RFC 4180 CSV that spreadsheets, pandas, MATLAB and R read as it is: one header line naming each column with its SI unit (x\_m, b\_T, h\_A\_per\_m, loss\_W\_per\_m3, temperature\_C), the same number of fields on every line, text quoted when it holds a comma or a quote, numbers in their shortest round-trip form, an empty field where a value does not exist. Changes nothing.

## Parameters

- `result`: object? (a reply of magnetics.fieldSolve, field.openExample, magnetics.fieldCoreLoss or field.thermalSolve with field:true, field.lineProfile, field.regionTable, or field.thermalSolve with line; default the latest result of this session that has the table)
- `table`: "elements|profile|regions|line"? (elements: one line per mesh element with its region, centroid, area, then per winding bx, by, |B| and |H| at 1 A, and the loss density or the temperature when the result has them; profile: field.lineProfile's points; regions: field.regionTable's rows; line: the temperature along field.thermalSolve's line; default the result's own)
- `path`: str? (the .csv file to write, through the host's file service)

## Reply

- table
- columns
- rows
- bytes
- csv? (without path)
- path
- written
- source:{command,kind}
- notes
- preview
- previewNote
