HI Ken , sounds like you are looking for one of the Holy Grails of CNC machining. Collision avoidance (;-)

(;-) TP