Due to the rapid increase and development of new information technologies, it is now possible to collect real data from the production process, thereby creating an image of a real plant in a virtual environment. The concept of a digital twin in the design of production systems consists of creating a digital twin of the entire production plant, which consists of a digital, real and virtual enterprise, which is a fundamental difference between the design of production systems in the concept of a digital enterprise and in the concept using a digital twin. The paper deals with the methodology of data collection, layout creation and the company's digital twin. The practical benefits of the proposed solution are mainly from the point of view of reducing the necessary time when designing the production layout, especially in the phase of variant design. Closely related to this is the possibility of checking a larger set of solutions, taking into account various limiting conditions. As this proposed solution reduces the time required in the phase of variant design, costs necessary for the creation of a new or changing production layout are reduced.