Sweep / loft
part_sweep_loftCreate swept or lofted features in KOMPAS-3D parts by moving a profile along a path or building a body through ordered section sketches, with boss/cut verification and single-step undo.
Instructions
kind=sweep (кинематическая операция): a closed profile sketch moved along a path — a path sketch and/or edges that START on the profile's plane (pipes, springs, bent rods). kind=loft (по сечениям): a body through 2+ closed section sketches in order, each on its own plane (aux_plane), e.g. a round-to-square transition. Verified like extrusions: boss must add volume, cut must remove it. Returns a receipt: created object handles, volume/mass before and after, backup path. The whole call is ONE Ctrl+Z for the user; if verification fails the model is restored and VERIFY_FAILED is returned.
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": {
"doc": "<doc>",
"kind": "<kind>"
},
"name": "part_sweep_loft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | No | boss | |
| doc | Yes | Document handle from doc_list/doc_open, e.g. 'doc:12001:0a1b2c3d' | |
| kind | Yes | ||
| name | No | Meaningful feature name for the tree, e.g. 'Отв_крепёжные_6xD11' | |
| path | No | sweep: path sketch (obj:/$N) and/or topo: edges, in order | |
| shift | No | sweep: how the profile follows the path; keep_angle (default) keeps its angle to the path | keep_angle |
| closed | No | loft: close the loft back to the first section | |
| profile | No | sweep: obj: / $N of the profile sketch | |
| sections | No | loft: section sketches in order (obj:/$N) |