Pattern
part_patternCreates circular, linear, or mirror patterns of part features in KOMPAS-3D, with optional controlled step spacing and variable-driven counts. Returns a verification receipt and full change details.
Instructions
Circular / linear / mirror pattern of features. Circular without step = copies evenly over the full circle, and they stay even when the count changes — to drive the count by a variable n, bind only the pattern's count variable (expr 'n') via variables_set. A given step is the angle (circular) or distance (linear) between ADJACENT copies. 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>",
"features": "<features>"
},
"name": "part_pattern"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc | Yes | Document handle from doc_list/doc_open, e.g. 'doc:12001:0a1b2c3d' | |
| axis | No | circular: rotation axis; linear: direction (X|Y|Z|obj:|topo:) | Z |
| kind | Yes | ||
| name | No | Meaningful feature name for the tree, e.g. 'Отв_крепёжные_6xD11' | |
| step | No | circular: degrees (default 360/count); linear: mm | |
| count | No | instances incl. the original | |
| plane | No | mirror plane XY|ZX|ZY|obj:|topo: | |
| features | Yes | obj: handles of the features to copy |