Voltecx is in beta. The macOS build comes first; Windows and Linux packages are still being tested.Beta. macOS comes first; Windows and Linux are still in testing. What's new
Documentation

Export 3D Field Model as STEP (field.exportModelStep)

Component reference · 繁體中文

Menu: none (Quick Open, the CLI, Python and MCP) · Runs as: a job, with progress and Cancel

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

Writes the meshed 3D model of the design, sketch or import as STEP, so the core, windings and magnets open in a mechanical CAD tool. Each solid is a closed piece of a region's tetrahedra: curved faces come out as the mesh's flat facets, and a region in several pieces gives one solid per piece (named 'primary 2'…). A piece that encloses other regions (the air box around a wound core) is a solid with voids (BREP_WITH_VOIDS, each void's shell oriented .F.), which the STEP import reads back. Solves nothing and changes nothing; save the text with the extension .step.

Parameters

  • design: object? or "sketch":object? or "import":object? (the model as magnetics.fieldSolve {dimension: 3} builds it, with "muR","clearanceMm","elementMm","layers","stepDeg","endTurns" and "cache" as there)
  • whole: bool=true (reflect a part meshed for its symmetry (the wound E core's eighth, an extrusion's half or quarter) into the whole model; false writes the meshed part as the solve meshes it)
  • regions: [str]? (the regions to write, by name; default every region)
  • fileName: str="field-model.step" (the name in the file's header, and its product's name without the extension)

Reply

  • step (ISO 10303-21 text, AP214: one FACETED_BREP per piece of each region, a BREP_WITH_VOIDS for a piece that encloses other regions, in metres)
  • solids:[{region,name,facets,vertices,voids,volumeM3 (the material: the outer shell less its voids)}]
  • model:{construction,family,nodes,elements,symmetry,whole}
  • notes:[{en,zh-Hant}]