Get section line curve

Well this works. Why, I dont know. its slightly off on the location but Ill figure out why in time. If anyone ends up interested in this.