Render DXF drawings to clean, scalable vector graphics over HTTP.
DXF is the format everything in CAD and CAM speaks, but it is a data format, not a picture — reading it means implementing splines, arc bulges, block transforms, line types and text placement correctly. That is a surprising amount of geometry maths to get right, and getting it subtly wrong produces a drawing that looks fine until someone measures it. This endpoint does the rendering for you and returns finished SVG.
curl -X POST "https://apimycad.com/v1/dxf-to-svg" \
-H "X-API-Key: YOUR_KEY" \
-F "file=@part.dxf" \
-o part.svg
Uploads up to 50 MB — DXF is a text format and runs several times larger than the equivalent DWG, so the limit is higher here than on the DWG endpoints.
?bg=white (default), ?bg=black or
?bg=transparent. White gives you a printable sheet; transparent is the one
you want when embedding into a page that already has its own background or a dark theme.
Malformed DXF files are audited and repaired where possible rather than rejected outright — real-world files exported by older software often contain small inconsistencies that would otherwise stop a strict parser.
PNG output is available from the same renderer via
/v1/dxf-to-png, with a dpi parameter from 72 to 600.