The invention provides a numerical control machining program sheet generating method based on UGNX secondary development, and belongs to the technical field of software development. The method comprises the following steps: a, creating a three-dimensional model of a part to be machined; b, compiling a machining process of the part based on the three-dimensional model; c, making a numerical controlmachining program sheet template of an Excel format; d, compiling a dialog box interface by using a C++ language; e, straightening the three-dimensional model; f, selecting a program group for outputting the machining program sheet; g, initializing the dialog box interface; h, inputting and selecting information relevant to the part in the dialog box interface; i, acquiring a main view, a top view, a side view and an isometric diagram of the part; j, acquiring machining information of the part; k, acquiring other information; l, opening the machining program sheet template, and writing all relevant information; and m, generating a numerical control machining sheet of a PDF format. Through adoption of a secondary development technology of UG NX, the communication between a programmer and an operator is reduced, and the knowledge consolidation of a product numerical control machining process is realized.