How to draw a rounded rectangle as a closed object in a DXF

I have a program which makes the file:

aexport (1).dxf (884 Bytes)

which opens as expected in LibreCAD:

except it is possible to select each individual line segment/arc:

and when imported into Carbide Create, it comes in as an open/unclosed figure:

How can one structure this DXF, or represent a rounded rectangle so that it is a single closed object?

The solution is:

0
SECTION
2
ENTITIES
0
LWPOLYLINE
5
4E
100
AcDbEntity
8
0
6
ByLayer
8
Layer_Black
62
256
370
-1
100
AcDbPolyline
90
8
70
1
43
0

1 Like

Or select all segments then go to menu Tools → Polyline → Create Polyline from existing Segments?
aeexport-polyline.dxf (16.0 KB)

I’m trying to make this programmatically to begin with.

1 Like

ah, I thought you were trying to fix it. Indeed, starting with a polyline to begin with is the best way to make a closed design. Same technique applies to SVG designs and laser cutting.