With the rapid development of the market economy and the increasing personalized needs of customers, the production mode of the production workshop is gradually shifting towards small batch and multi batch production mode, which has a significant impact on the production efficiency, logistics costs, and other aspects of the production workshop, posing huge challenges to the layout of production workshop facilities. A reasonable workshop layout can not only reduce the distance and cost of material handling, but also save product production time and shorten the production cycle. This article takes DY Company's machining workshop as the research object, and through investigation, it is found that there are problems such as logistics distribution routes crossing and overlapping in the workshop. In response to the above issues, data was collected from the workshop and analyzed using the SLP method, ultimately obtaining the optimal solution for optimizing the layout of the machining workshop, achieving a dual improvement in the production capacity and efficiency of the machining workshop.