relations_set
Replaces all relations in a Creo model with supplied lines; retrieve existing relations first to append, or pass an empty list to clear them.
Instructions
REPLACE all relations of a model with the given lines (e.g. ["d1 = 2*d0", "MASS_LIMIT = 5"]).
To append, call relations_get first and send the combined list. An empty list clears relations.
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": {
"relations": "<relations>"
},
"name": "relations_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | ||
| relations | Yes | ||
| regenerate | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||