DXF Add Line
The connective tissue of vector workflows
- dxf
- DXF
A line is the simplest thing in any vector toolkit, and in the DAO pack's DXF system it's the one you'll use to connect everything else. DXF Add Line takes a dxf document, drops a straight segment from point A to point B into it, and returns the updated document. That's the whole job - and it's exactly what you want when a design is more about structure than shapes.
It's part of orion4d/ComfyUI_DAO_master, the French-authored vector-and-image pack running on ezdxf. It follows the family rule: non-destructive. Your input document is copied, the line is added to the copy, and a new document comes out - your original never changes.
How it works
Four floats define the segment:
x1,y1- start point (defaults 0, 0).x2,y2- end point (defaults 20, 0).
Output is a single DXF socket carrying the updated document.
What to do with it
Lines are the scaffolding of technical drawings - axes, hatching, connectors, dividers, the spokes of a design. Because the nodes chain, you can lay down a grid of lines by adding one after another (or by branching a single document down parallel paths). Finish any of it with DXF Preview to see the result as an image, or DXF to SVG to convert the geometry into SVG paths.
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 you're drawing.
Where people get burned
The usual primitive-family trap: not wiring the previous DXF output into the dxf input, so the line lands on an empty document. And there's no line width or style here - that's a rendering concern, handled later by DXF Preview's stroke settings, not by the geometry. Keep lines as pure geometry and style them at the end.
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| dxf | DXF | — | |
| x1 | FLOAT | 0.00 | — |
| y1 | FLOAT | 0.00 | — |
| x2 | FLOAT | 20.00 | — |
| y2 | FLOAT | 0.00 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| DXF | DXF | — |