geom_import
Import CAD or mesh files such as STEP, IGES, DXF, and STL into a COMSOL geometry sequence, with optional automatic build.
Instructions
Import a CAD or mesh file into the geometry sequence (STEP/IGES/DXF/STL...).
Args: filename: absolute path to the file (STL, STEP, IGES, DXF, mphbin, ...). tag: feature tag (None = automatic, e.g. imp1). label: display label. properties: extra Import properties, e.g. {"importtype": "full3d", "type": "cad", "repairgeom": "on"} (COMSOL auto-detects most formats). build: build after importing (default true). geometry: geometry sequence tag (default "geom1"). component: component tag (None = auto). model: model name/tag (None = current model).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"filename": "<filename>"
},
"name": "geom_import"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | ||
| build | No | ||
| label | No | ||
| model | No | ||
| filename | Yes | ||
| geometry | No | geom1 | |
| component | No | ||
| properties | No |