Convert DWG to DXF and render it
dwg_to_dxfConvert DWG to DXF and render it. Converts a DWG drawing (R13-2018 and newer DWG versions LibreDWG reads) to DXF with LibreDWG, reads the DXF back with our own reader and returns the DXF plus the same layouts, SVG/PDF/PNG, layers, blocks and dimension check as dxf_render. Use when: A DWG file has to be opened, converted to DXF/PDF/SVG/PNG or measured without AutoCAD. Not for: Writing DWG; files LibreDWG cannot read (some proxy objects, newest entity types are skipped and counted). File types: dwg. Max 30 MB.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "dwg_to_dxf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| options | No | Tool options, if any (see the tool description). | |
| file_url | No | Public https URL of the file (preferred). | |
| filename | No | File name with its extension, e.g. part.step. | |
| file_base64 | No | The file as base64, for small files without a URL (give filename too). |