XLine

The XLINE entity (DXF Reference) is a construction line that extents to infinity in both directions.

Subclass of

ezdxf.entities.DXFGraphic

DXF type

'XLINE'

Factory function

ezdxf.layouts.BaseLayout.add_xline()

Inherited DXF attributes

Common graphical DXF attributes

Required DXF version

DXF R2000 ('AC1015')

class ezdxf.entities.XLine
dxf.start

Location point of line as (3D Point in WCS)

dxf.unit_vector

Unit direction vector as (3D Point in WCS)

transform(m: Matrix44) XLine

Transform the XLINE/RAY entity by transformation matrix m inplace.

translate(dx: float, dy: float, dz: float) XLine

Optimized XLINE/RAY translation about dx in x-axis, dy in y-axis and dz in z-axis.