將三維場模型匯出為 STEP (field.exportModelStep)
選單: 無(快速開啟、CLI、Python 與 MCP) · 執行方式: 背景工作,有進度與取消
預覽功能:在「編輯 › 偏好設定 › 模擬」開啟預覽功能,或執行
preview.set {"enabled":true}。回覆會帶有preview: true與說明。
以下參數與說明取自指令本身的定義,與 CLI、Python 及 MCP 讀到的文字相同,因此保留英文。
說明
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.
參數
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)
回覆
- 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}]