convert_dwg_to_dxf
Convert a single .dwg file or an entire folder of .dwg files into .dxf format for CAD workflows, with optional version targeting, custom output directory, and cached conversions.
Instructions
[v0.2 Tool 6] Convert a single .dwg file or an entire folder of .dwg files into .dxf format.
Note: `inspect_civil_dxf`, `measure_linear_and_area_features`, and `extract_utility_network_and_levels`
also accept `.dwg` paths directly via transparent background caching.
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": {
"source_path": "<source_path>"
},
"name": "convert_dwg_to_dxf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| use_cache | No | If True (default), reuses SHA-256 cached conversions. | |
| output_dir | No | Optional output directory for converted .dxf files. If None, writes side-by-side with source .dwg. | |
| source_path | Yes | Path to a .dwg file or a directory containing .dwg files. | |
| target_dxf_version | No | Target AutoCAD DXF version (default 'R2018'). | R2018 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| conversions | No | ||
| total_files | Yes | ||
| failed_count | Yes | ||
| succeeded_count | Yes | ||
| converter_backend_detected | No |