Convert an AutoCAD Spline to a Polyline for DXF
Open a copy in AutoCAD, choose straight-segment conversion, then compare the saved DXF with the original curve. Keep the original until the result meets your receiving software’s requirements.
For one spline in AutoCAD, set PLINECONVERTMODE to 0, run SPLINEDIT, select the spline, choose P, and enter an integer precision from 0 to 99. Save a separate DXF and check its entities, curve detail, dimensions and open or closed state.
Before converting: confirm the receiving format
A spline is a smooth curve; a straight-segment polyline approximates it with connected lines. Convert when the receiving application requires polylines. Confirm whether it accepts lightweight 2D polylines, legacy polylines or arc segments before choosing export settings.
This guide covers a planar 2D curve. Preserve a copy, note its known dimensions and units, and check whether it is open or closed. Do not flatten 3D geometry or close intentional open paths just to make a file pass a check.
Convert a single spline in AutoCAD
1. Open a copy and inspect the curve
Use Properties to confirm that the selected object is a spline and that it lies in the intended plane. Record a known dimension and the endpoint or closure state before editing.
2. Choose straight segments
Enter PLINECONVERTMODE and set it to 0. Autodesk documents 0 as linear segments and 1 as arc segments. Check the current setting rather than assuming a default; arc-containing polylines are outside TraceDXF’s checked subset.
3. Run SPLINEDIT
Enter SPLINEDIT, select the spline, then choose P (Convert to Polyline). The instructions follow Autodesk’s AutoCAD 2025 help and support article updated June 5, 2025; they have not been reproduced in a local AutoCAD session for this guide.
4. Choose precision and compare
Enter an integer from 0 to 99. Increase it if the approximation loses needed curve detail, then compare again with the original. This setting is not a millimeter tolerance or a fixed vertex count. Higher detail can increase the geometry and processing cost.
5. Save a separate DXF and reopen it
Use SAVEAS with a DXF version supported by the receiver. Inspect the saved entity types, scale, endpoints, closure and deviations. Do not assume choosing R12 preserves LWPOLYLINE: Autodesk warns that saving splines in R12 can create 3D polylines and affect other drawing data.
Compare two self-made approximations
The downloadable source is one open cubic spline, 100 × 45 mm. Our script creates an 8-segment polyline with 9 vertices and a 32-segment polyline with 33 vertices. Both retain the same endpoints, open state and bounds; neither contains arc bulges. These are self-made engineering examples, not AutoCAD command exports or examples of particular precision settings.
Across 100,001 curve samples, the largest measured distance to the coarse polyline is about 1.1523 mm; to the fine polyline, 0.0732 mm. Conservative mathematical bounds for this subdivision are 1.3667 mm and 0.0855 mm. Sampling alone does not prove an exact maximum. Neither file has been imported into AutoCAD or LightBurn for this comparison; choose a tolerance for your own task.
Record the approximation before export
Before you export, write down two separate things: what you asked AutoCAD to do, and what the resulting polyline actually measures. The first is your precision setting and source geometry. The second is vertex count, bounds, closure and deviation. Keeping them apart stops a precision value from being read as a measured deviation.
The workflow here follows Autodesk documentation for [PLINECONVERTMODE](https://help.autodesk.com/cloudhelp/2019/ENU/AutoCAD-LT/files/GUID-AB5B75E5-2302-454E-B4D5-5C0DBD7EF1F6.htm), [SPLINEDIT](https://help.autodesk.com/cloudhelp/2020/ENU/AutoCAD-Core/files/GUID-5530922C-6828-48B1-804C-EDD9053535BD.htm) and [curve detail and precision](https://help.autodesk.com/cloudhelp/2025/ENG/AutoCAD-Core/files/GUID-71F69647-809E-42BA-B65B-357F3FFD0CAA.htm). The precision range is 0-99. This guide does not report a local AutoCAD reproduction, so it does not claim a measured result from AutoCAD itself.
Before/after record
The figures above come from a self-made comparison of a cubic spline and two straight-segment polylines. They are not AutoCAD exports. Sampling does not give an exact maximum, which is why the sampled deviation and the conservative bound are listed separately. You can download the [measurement record](/examples/spline-polyline/measurements.json), the [original spline input](/examples/spline-polyline/source-cubic-spline.dxf), the [coarse polyline](/examples/spline-polyline/coarse-polyline.dxf) and the [fine polyline](/examples/spline-polyline/fine-polyline.dxf) and run the same checks on your own copy.
| Field | What to record | Example from the project files |
|---|---|---|
| Source object | Entity type, dimensions, units, open or closed | Open 2D cubic spline, millimeter units, 100 × 45 mm bounds |
| Conversion method | PLINECONVERTMODE, SPLINEDIT conversion or another route, plus precision value | Not run in AutoCAD for these files |
| Result entity | LINE or LWPOLYLINE, and whether segments are straight or arcs | Straight-segment LWPOLYLINE approximations |
| Vertex and segment count | Count both | Coarse: 9 vertices, 8 segments. Fine: 33 vertices, 32 segments |
| Bounds | Compare the result bounds with the source bounds | 100 × 45 mm source bounds |
| Closure | Open or closed, and whether it matches the source | Record as open or closed, then compare |
| Sampled deviation | Maximum distance found by sampling, with the sample method noted | Coarse: about 1.1523 mm. Fine: about 0.0732 mm |
| Conservative bound | An upper bound that is not an exact maximum | Coarse: about 1.3667 mm. Fine: about 0.0855 mm |
| Software check | Where the DXF was opened, and what the receiving software reported | Not imported into AutoCAD or LightBurn |
| Remaining unknowns | Native AutoCAD result, receiving-software behavior, anything not measured | Native conversion result and receiving-software checks are open |
Checklist for your own file
The [DXF checker](/dxf-checker) covers straight-segment LINE and LWPOLYLINE geometry and reports units and supported entities. It does not convert SPLINE. If the imported file comes in at the wrong size, see [diagnosing a DXF with the wrong size](/guides/dxf-wrong-size).
- Note the source entity, units, bounds and whether the curve is open or closed.
- Record the conversion route and the precision value you used. The precision value is a setting, not a measured deviation.
- Count vertices and segments in the result and confirm the entity type.
- Recheck bounds and closure against the source.
- Measure and record deviation with the method stated, and show any conservative bound separately.
- Open the DXF in the receiving software and note what it reports before you rely on the file.
Check the saved DXF before moving on
The DXF checker reports declared units, supported entity counts and bounds. TraceDXF checks only ASCII 2D LINE and straight-segment LWPOLYLINE geometry; it does not convert SPLINE. Unsupported SPLINE, ARC, CIRCLE, legacy POLYLINE or nonzero bulges remain unchecked. A parser result does not prove receiving-software compatibility.
Use DXF to SVG only after the saved geometry falls within that same subset. For a scale discrepancy, follow the DXF wrong-size guide; for an Inkscape export workflow, follow the SVG-to-DXF guide. Keep software conversion and unit troubleshooting as separate checks.
Common preparation questions
Which precision value should I use?
No value guarantees a particular millimeter error. Choose a starting integer within 0–99, compare the result against the original, and increase detail only as needed. Inspect tight bends, dimensions and the receiving application’s requirements.
Can TraceDXF convert my SPLINE DXF?
No. Convert the spline in software that supports it first. TraceDXF’s current checker and DXF-to-SVG tool cover ASCII 2D LINE and straight-segment LWPOLYLINE, with known units and explicit limitations.
Can I convert several splines at once?
Autodesk documents PEDIT → M (Multiple), select the splines, confirm Y for conversion, enter precision 0–99, then Esc. Select them during PEDIT rather than beforehand. Inspect each result and the saved file; this batch workflow has not been locally reproduced for this guide.
Sources and verification
Sources: Autodesk’s single-spline conversion article (June 5, 2025), AutoCAD 2025 conversion and curve-detail help, SPLINEDIT command reference, and PLINECONVERTMODE reference. The downloadable measurements describe our generated engineering files, not Autodesk software output.