This code is used for automatic packing.The user can open the selection window in the packaging table or create a new one via the tunnel.