pw_import_cad
Imports STEP/IGES or other CAD files into a Pointwise project, converts/scales units, assembles quilts into models if needed, saves a .pw file, and returns models, quilt names, extents, and warnings.
Instructions
Import a CAD file (STEP or IGES; other formats Pointwise reads also work) into a new Pointwise project and save it as .pw. Converts units on import, can scale, and assembles quilts into models when the file has none. Returns models, quilt names, extents and import warnings. Quilt names are what pw_surface_mesh filters match.
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": {
"cad_file": "<cad_file>"
},
"name": "pw_import_cad"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale | No | Extra uniform scale after unit conversion. | |
| units | No | Grid units. Pointwise converts from the units declared in the file to these (checked: a mm STEP imported with 'Meters' comes in metres). 'FromFile' keeps the file's numbers. Use 'Meters' for OpenFOAM in SI. | FromFile |
| append | No | Live only: add to the open session instead of resetting it. | |
| backend | No | 'batch' (default): a headless tclsh run per call, state passed through .pw files. 'live': send the step to a running Pointwise GUI through its Glyph Server (port 2807). | |
| save_as | No | Output .pw. Batch default: the CAD path with .pw suffix. Live default: no save. | |
| assemble | No | Assemble models if the import produced none. | |
| cad_file | Yes | Path to the .stp/.step/.igs/.iges file. | |
| scale_anchor | No | Scaling origin. | |
| discard_unsaved | No | Live backend only: allow replacing a GUI session with unsaved changes. | |
| timeout_seconds | No | Seconds before the Pointwise run is stopped with kind=timeout (default 1800). Counts time the computer is awake; sleep or hibernation does not count. | |
| import_attributes | No | Extra DatabaseImport attributes, e.g. {"SurfaceSplitDiscontinuous": true, "FileConvertHealTopology": true}. Unknown names are rejected with the valid list. | |
| assemble_tolerance | No | Model assembly tolerance. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||