Automation solution enables integration of milling and eroding