set_variable
Assigns a numeric value or native expression to a KOMPAS-3D variable and rebuilds the model. Use create to define a new user variable.
Instructions
Set one numeric value OR native expression and rebuild. Explicit create enables new user variables.
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>",
"name": "<name>"
},
"name": "set_variable"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| note | No | ||
| value | No | ||
| create | No | ||
| expression | No | ||
| feature_id | No | ||
| document_id | Yes |