XLine

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 XLINE/RAY entity by transformation matrix m inplace.

New in version 0.13.

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, returns self (floating interface).

New in version 0.13.