Orienting selected tool with respect to workpiece