Orienting workpiece relative to tool