Planning of toolstages, comprising selection tools, position and motion