The invention provides an automatic program compiling method of a three-
coordinate measuring machine, a storage medium and
electronic equipment, and the method comprises the steps: obtaining the feature information of a to-be-measured part, dividing the feature into a surface feature and a hole feature, and determining a measurement position, a measurement layer number, a scanning point number and a filtering parameter. All the features are grouped, and detection sequences of different groups are sorted; carrying out path planning on the detection of the features in the same group; performing analog
simulation according to the three-dimensional models of the to-be-tested part, the clamp and the probe to determine avoidance parameters; determining a measurement reference of each feature, establishing a reference coordinate
system, and carrying out spatial degree-of-freedom constraint by using each measurement reference; determining a corresponding reference coordinate
system and a
projection direction according to each piece of detection information, and generating coordinate information of the detection information relative to a reference according to a
spatial relationship between a feature corresponding to the detection information and the reference coordinate
system; the pre-compilation parameters are integrated; and substituting the pre-compiled parameter into the target position of the measurement program to generate the measurement program. By means of the technical scheme, automatic compiling of the measuring program of the three-
coordinate measuring machine is achieved, and the requirement of a high-precision
machining part for measurement is met.