Export Field CSV (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 carrypreview: trueand 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