create_feature
Create parametric features in KOMPAS-3D models by defining entity type and documented settings, supporting shells, lofts, sweeps, and more.
Instructions
Create any API5 NewEntity-supported feature using documented definition settings.
entity_type is an o3d_ enum. properties maps writable names to values. calls contain member/arguments/expect and optional via zero-argument getters. References: {entity_id:id} within this document, {handle:id}, {constant:name}. Used for shells, lofts, sweeps, ribs, drafts, patterns, mirrors and more. API7-only operations require api_cast/api_batch. Read SDK first; no universal recipe is implied.
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": {
"document_id": "<document_id>",
"entity_type": "<entity_type>",
"settings": "<settings>"
},
"name": "create_feature"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Feature | |
| settings | Yes | ||
| document_id | Yes | ||
| entity_type | Yes |