Thread / rib / draft
part_thread_rib_draftCreates cosmetic threads, ribs, and face drafts in KOMPAS-3D parts, verifies each change, and returns handles, volume/mass changes, and a backup path.
Instructions
kind=thread: cosmetic thread (условное изображение резьбы, ГОСТ 2.311) on a cylindrical face — a shaft (outer, face Ø = d) or a bore (inner, face Ø = drill d1); designation 'M20' / 'M20x1.5' is looked up in KOMPAS's thread table. kind=rib: rib (ребро жёсткости) from a sketch with an open line running between two walls, symmetric thickness. kind=draft: draft (уклон) of faces about a neutral plane/face, inward (removes material) unless outward=true. Verified: rib adds volume, draft moves it the chosen way, the thread is valid and reads back its designation. 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_thread_rib_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc | Yes | Document handle from doc_list/doc_open, e.g. 'doc:12001:0a1b2c3d' | |
| base | No | draft: neutral plane/face (XY|ZX|ZY|obj:|topo:) | |
| face | No | thread: topo: cylindrical face | |
| kind | Yes | ||
| left | No | thread: left-hand | |
| name | No | Meaningful feature name for the tree, e.g. 'Отв_крепёжные_6xD11' | |
| side | No | rib: side the rib grows to; auto tries both | auto |
| angle | No | draft: degrees | |
| faces | No | draft: topo: faces to tilt | |
| length | No | thread: mm from the face start (default: whole face) | |
| sketch | No | rib: obj:/$N sketch with one open line | |
| thread | No | thread: designation, e.g. 'M20', 'M20x1.5' | |
| outward | No | draft: add material instead of removing it | |
| standard | No | thread: table name for non-metric threads | |
| thickness | No | rib: full thickness, mm |