The invention relates to the technical field of image
programming, and discloses a
programming method of
image measurement software, which comprises the following steps of: 1, interpreting all elements in a computer-aided design (CAD) /
data exchange format (DXF) file to generate an original element
database # DBF1; step 2, interpreting an
annotation group code and an
annotation style existing in the CAD / DXF file; step 3, filtering redundant items in the
database # DBF1 by marking position information in the
group code; and 4, interpreting the data packets in the
annotation group codes to obtain corresponding tolerance types, theoretical values and tolerance zones. According to the
programming method of the
image measurement software, due to items needing tolerance control, marking of theoretical values and tolerance zones is carried out in a CAD drawing, the manual programming standard of a measurement program is also based on CAD tolerance marking, the
software recognizes position information of marking items in CAD through interpretation, redundant elements irrelevant to measurement in the CAD are filtered out, and therefore the
measurement precision is improved. A manual screening process is not needed, and a program automatically screens out measurement elements needing to be managed and controlled.