Line

LINE (DXF Reference) entity is a 3D line from Line.dxf.start to Line.dxf.end.

Subclass of

ezdxf.entities.DXFGraphic

DXF type

'LINE'

Factory function

ezdxf.layouts.BaseLayout.add_line()

Inherited DXF Attributes

Common graphical DXF attributes

Warning

Do not instantiate entity classes by yourself - always use the provided factory functions!

class ezdxf.entities.Line
dxf.start

start point of line (2D/3D Point in WCS)

dxf.end

end point of line (2D/3D Point in WCS)

dxf.thickness

Line thickness in 3D space in direction extrusion, default value is 0. This value should not be confused with the lineweight value.

dxf.extrusion

extrusion vector, default value is (0, 0, 1)