This report summarizes the outcomes and achievements of project LEGO Digital Prepack. The main goal of this project was to analyze the behavior of LEGO packing lines that produce Prapacks, i.e., plastic bags filled with LEGO bricks. The pre-pack lines are composed of three key types of components: Counting Machines, Scales, and case packs. The main attention was paid to the development od optimization method to improve the behavior of these components in terms of speed, reliability, and production quality.