DXF Add Rounded Rectangle
The softer sibling of the rectangle node
- dxf
- DXF
A plain rectangle is fine until you want a button, a card, or a label - then the sharp corners start to look wrong. DXF Add Rounded Rectangle is the rectangle node with a radius input bolted on, so you get the same anchor/dimension controls plus a corner radius for that softer, modern shape.
It's part of orion4d/ComfyUI_DAO_master, the French-authored vector-and-image pack built on ezdxf. Same non-destructive family behavior: input DXF in, a copy is made, the rounded rectangle is added, and a fresh document comes out.
How it works
x,y- anchor point (defaults 0, 0).width,height- dimensions (defaults 20 × 10).radius- corner rounding, minimum 0 (default 2). Set it to 0 and you've just built a plain rectangle.centered- if true,(x, y)is the center; if false, it's the lower-left corner.
Output is a single DXF socket with the updated document.
What to do with it
This is the shape for UI mockups, badges, tags, and any design language that avoids sharp corners. The pack renders it via ezdxf paths, so it previews cleanly with DXF Preview and carries through DXF to SVG when you want the rounded rect as SVG geometry for the rest of the vector pipeline.
Installing
ComfyUI Manager (search ComfyUI_DAO_master) or:
cd ComfyUI/custom_nodes
git clone https://github.com/orion4d/ComfyUI_DAO_master.git
pip install ezdxf
Restart and go.
Where people get burned
The centered flag is the gotcha - flip it and your shape shifts by half its width and height. And a radius larger than half the smaller dimension will just pinch the corners together into something odd; keep it proportional to the size of the rectangle. Same wiring rule as the whole family: no previous dxf input, no carried-over drawing.
Inputs (7)
| Name | Type | Default | Description |
|---|---|---|---|
| dxf | DXF | — | |
| x | FLOAT | 0.00 | — |
| y | FLOAT | 0.00 | — |
| width | FLOAT | 20.00 | — |
| height | FLOAT | 10.00 | — |
| radius | FLOAT | 2.00 | — |
| centered | BOOLEAN | false | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| DXF | DXF | — |