The invention relates to the field of building electromechanical technologies, in particular to an electromechanical comprehensive optimization method based on a BIM technology. Comprising the steps of drawing collection, modeling, collision detection, pipe comprehensive adjustment and optimization, net height analysis, comparison and optimization report auditing and confirmation, reserved pre-embedded positioning simulation, material management and control, marking and drawing output and the like. According to the design, the design problem can be avoided in advance, the design quality can be improved, meanwhile, the professional subpackage construction procedure can be deduced, the field management problem of each professional can be effectively coordinated, and then the problem of cross collision of each professional in the field construction process is avoided; in addition, material management and other resource allocation are reasonably arranged, pipe section prefabrication is achieved, the workload can be reduced, and the construction period and cost are saved; therefore, a series of problems from design to construction can be effectively solved, the construction quality is ensured, and the clear height comfort degree of project completion is met.