Let Ei be the foot of the altitude from Di to the side AC in the right-angled triangle ABC, for each i=0,1,…,2018. We have E0=A, E2018=C.

Since the lines DiEi are parallel to BC, Thales' theorem asserts that
∣E0E1∣=∣E1E2∣=⋯=∣E2017E2018∣.
From here we get ∣CEi∣=∣AE2018−i∣ for i=1,2,…,2017.
The Pythagorean theorem, applied to the right-angled triangles CDiEi and ADiEi for i=1,2,…,2017, yields
∣CDi∣2=∣DiEi∣2+∣CEi∣2and∣ADi∣2=∣DiEi∣2+∣AEi∣2
By subtracting these two equalities, we get
∣CDi∣2−∣ADi∣2=∣CEi∣2−∣AEi∣2,i=1,…,2017,
and the same relation also holds for i=0 and i=2018.
Adding up all these relations, we get
∣CD0∣2+∣CD1∣2+⋯+∣CD2018∣2−(∣AD0∣2−∣AD1∣2)−⋯−(∣AD2018∣2=∣CE0∣2+∣CE1∣2+⋯+∣CE2018∣2−(∣AE0∣2−∣AE1∣2)−⋯−(∣AE2018∣2=(∣CE0∣2−∣AE2018∣2)+(∣CE1∣2−∣AE2017∣2)+⋯+(∣CE2018∣2−∣AE0∣2)=0.
Since ∣AD0∣=0, this proves the claim.