Invalid Bezier curve - Items in the imported file could not be handled properly

I created a board shape in LibreCAD, exported it as DXF and importing the shape into KiCAD fails with

Items in the imported file could not be handled properly.
Invalid Bezier curve created

Screenshot from 2022-03-16 14-02-34

The DXF outline is attached. Just importing this in an otherwise empty file triggers the message.
Is this a problem with LibreCAD or KiCAD?

Version: 6.0.2+dfsg-1~bpo11+1, release build

outline.dxf (16.1 KB)

Is this a problem with LibreCAD or KiCAD?

Both, and I guess Kicad takes the bigger share.
Try to save in an older dxf-format and than import into Kicad.
Attachement saved as DXF-R12-format in QCAD and imports without error-message into Kicad.
outline_v2_r12.dxf (22.2 KB)

The root-cause is that DXF is an ever changing/enhancing format. For instance QCAD (similar to librecad) alone offers me 7 different dxf-versions during file-save.
So I think your outline.dxf contains elements from a dxf-version newer than Kicad can import.

1 Like

Ok, bug report: Importing DXF results in ā€œInvalid Bezier curveā€ (#11153) Ā· Issues Ā· KiCad / KiCad Source Code / kicad Ā· GitLab

LibreCAD has the option to save in R12 format and that works, indeed. Thank you for the hint and the quick reply.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.