Get Ordered Intersection Points Along a direction (AutoCAD .net API)

_config.yml

The task at hand is to get an ordered list of the intersection points of a line against various entities (in this, other lines). The reader, as an exercise may extrapolate this code to apply against other entities.

It’s pretty straight forward, so here it is. You could project the points along the X-axis if you wanted to, but for simplicity I’ve simply rotated it.

Here’s the code:

Written on May 7, 2019