Building information model (BIM) technology has become an important tool for construction practitioners to improve the engineering design, shades eq 07m construction and management.However, it has not been widely used in petrochemical industry, such as oil pipeline construction.This paper presents an automatic labeling algorithm based on BIM technology.We used simulated annealing algorithm to optimize the overlap of pipe weld label positions, resulting in the sequential pipe welds.We used this algorithm in oil pipeline construction and verified its automatic tru spec softshell jacket labeling effect on pipe welds.