dxf_modify_entities
Modify DXF entities in batch to change layer, color, move, rotate, scale, or update block attributes by handle. Save results to an optional output copy.
Instructions
Altera entidades de um DXF: camada, cor, mover, girar, escalar e atributos de bloco.
QUANDO USAR: ajustes em lote de um DXF (mudar camada de suportes, deslocar um trecho, corrigir TAG). Parâmetros: path; handles; layer; color; translate [dx,dy,dz]; rotate_deg (+ rotate_center); scale (>0); attributes {"TAG":"S-01"} (só blocos); output_path (recomendado: salva cópia). Exemplo: dxf_modify_entities(path="a.dxf", handles=["2A3"], attributes={"TIPO":"GUIA"}, output_path="a_rev1.dxf")
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": {
"path": "<path>",
"handles": "<handles>"
},
"name": "dxf_modify_entities"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| color | No | ||
| layer | No | ||
| scale | No | ||
| handles | Yes | ||
| translate | No | ||
| attributes | No | ||
| rotate_deg | No | ||
| output_path | No | ||
| rotate_center | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||