Rebuild drawing
drw_rebuildReopens a saved drawing after its model changes so associative views and dimension values update to the saved model; returns changed and unbound dimensions. Save the model first.
Instructions
Update a saved drawing after its model changed: reopens it so the associative views AND dimension
values follow the saved model (answers KOMPAS «Перестроить чертеж?» with «Да»). Save the model first.
Returns the dimensions whose values changed and unbound_dimensions: dimensions whose edge/face the model
change replaced (e.g. a cut makes a new end face) lose their binding and keep the OLD value while the view
is up to date — delete and re-add them with drw_add_dimension, or tell the user.
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>"
},
"name": "drw_rebuild"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc | Yes | Document handle from doc_list/doc_open, e.g. 'doc:12001:0a1b2c3d' | |
| save | No | save unsaved drawing changes first (only after the user agreed) |