programming pipe welding using a single point

Thanks, graemepaulin, your code is really simpler.