cad_edit_existing
Modify existing CAD models by applying validated instruction lists to dimensions, variables, features, properties, and materials, then rebuild and return before/after changes.
Instructions
修改现有模型。edits 为指令列表: {"op":"set_dimension","name":"D1@凸台-拉伸1","value":20} / {"op":"set_variable","name":"pitch","value":180} / {"op":"suppress","feature":"圆角1","suppressed":true} / {"op":"set_property","name":"Description","value":"..."} / {"op":"set_material","material":"AL6061-T6"}。 先校验(名称存在、方程式驱动的尺寸要改变量、变化幅度);dry_run=true 只校验。执行后重建,出错不保存; 成功则返回改前改后对比(尺寸/质量/包围盒),并自动更新引用它的装配和工程图、检查悬空标注。 每次修改前自动建检查点(rollback_to)。发布后可用 cad_change_writeback 回写原位置。
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": {
"file": "<file>",
"edits": "<edits>"
},
"name": "cad_edit_existing"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | ||
| edits | Yes | ||
| dry_run | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||