In modern manufacturing, it is urgent to require integrating manufacturing and inspection because manual inspection and off-line inspection severely restricts the development of inspecting automation. In the paper, automatic programming system based on solid driven technology for machining center on-line inspection has been developed by secondary development kit object ARX of CAD. Inspection feature datum and information were gotten by ARX tool in CAD stage, and then inspecting program can be automatically made up through inspecting process planning. On-line inspection automatic programming system based on solid driven technology has been applied in SSK-U6035 machining center. The application result shows that the programming system is simple and effective, which has realized integration of manufacturing and inspection more efficiently, increased precision, production efficiency and reduced the rate of rejection and tool damage.