The paper presents the analytical solution of determination of coordinate reference system for pipes system measurements, The transformation matrix is a composition of the consecutive calculated submatrices, basing on the chosen three points from frame of pipes.