1 Introduction

With the development of modern material technology, more and more high-performance and difficult-to-machine materials are applied to aviation, automobile, energy, and other mechanical manufacturing fields, such as titanium alloy, wear-resistant cast iron, and high-strength structural steel [1]. Traditional tools cannot meet the requirements of surface quality, dimensional accuracy, machining efficiency, and tool life in new material processing. Therefore, it is necessary to develop complex cutting tools with highly customized requirements. In the process of designing customized tools, designers need to fully consider the characteristics of the machined parts, so that the tools can achieve cutting performance such as vibration suppression, high precision, and high efficiency, which cannot be achieved by standardized tools. Therefore, the structure of the tools has undergone tremendous changes. Although the traditional tool design method is mature, it still has many shortcomings, such as repetitive work, large amount of calculation, complicated process, and low efficiency, which has been unable to meet the research and development needs of customized tools. Parametric design has become an effective method for custom tool design because of its high efficiency, simplicity, and ease of use. In the process of designing customized tools, 3D CAD software has been widely used for parametric design of tools. However, developing an independent parametric design platform for cutting tools is long in cycle, high in cost, and difficult. Therefore, secondary development based on CAD software has become a new research direction [2].

At present, many scholars have studied the parametric design of cutting tools. Tzotzis et al. [3, 4] established a tool design platform which can be used to generate a standardized CAD model of turning inserts by using SolidWorks API and Visual Basic for Applications (VBA) programming language, and imported it into DEFORM-3D. The accuracy of the model was verified by simulation and experimental results, and the influence of nose radius on the cutting force was studied. Krol and Sokolov [5] established a three-dimensional parametric model of gear hob with APM WinMachine parametric toolbox in APM Studio module environment, and analyzed the stress and strain state of the working surface of hob. Nasri et al. [6] established three-dimensional parametric models of face milling cutter and ball-end milling cutter by CATIA software, which were used for finite element simulation of milling process. Chang [7] uses CATIA 3D modeling software and Visual Basic (VB) development technology. The parametric design system of ball-end milling cutter is established. Zhu [8] and Chen [9] combined VB user interface and CATIA macro programming technology, and developed a parametric design system for fillet end mills. The end milling cutter model is imported into Third Wave AdvantEdge software for finite element simulation, and the simulation results are used to guide the optimal design of the cutter. Li et al. [2] made use of UG/open API, MenuScript, UIstyler, and C/C +  + and other modules to carry out the secondary development of UG NX platform, which combined parametric design with the development of two-dimensional drawing of integral cemented carbide end milling cutter, and realized the computer-aided rapid design of end milling cutter. Ding et al. [10] developed a ball-end milling cutter design system integrated with SIEMENS NX and ANSYS on the platform of Visual Studio 2008, which can generate a three-dimensional model of the cutter on SIEMENS NX. And according to the information provided by the user, continue the simulation on ANSYS. Ding et al. [11] established a milling force simulation system on UG platform based on the existing milling force model of ball-end milling cutter, and realized the integration of geometric simulation and physical simulation. Ji et al. [12, 13] completed the parametric design of face milling cutter series by using UG/open API secondary development technology. The finite element modal analysis is carried out by Abaqus software. Ding et al. [14] realized parametric modeling and parametric finite element analysis by using UG/OPEN secondary development tool and APDL module of ANSYS software respectively. By compiling the interface program between UG6.0 and ANSYS10.0, the data sharing of CAD/CAE is realized. The remote design and analysis platform is constructed by using ASP.NET technology, component technology, and database technology. Many scholars have studied parametric design of tools based on UG/Open technology [15,16,17,18,19].

From the above documents, it can be seen that the parametric design system of cutting tools based on secondary development of commercial CAD software at present is almost only aimed at one kind of cutting tools and is not comprehensive. The operation of these systems mostly depends on CAD software windows, and the development process and operation are complicated and the hardware requirements are high. None of the above researches has applied modeling standards in tool modeling, The interaction of tool data is poor. In the world, more and more researches have used ISO 13399 “Representation and Exchange of Cutting Tool Data” (hereinafter referred to as ISO 13399 standard) as the standard for tool modeling [20,21,22,23,24]. The application of tool modeling standard is beneficial to the transmission and interaction of tool data. Therefore, the research and development of parametric design platform for various kinds of tools based on tool modeling standards is of great significance to improve the design efficiency of customized tools.

On the basis of ISO 13399 standard, this paper realized the parametric modeling of customized tools based on the process construction method of generating history, and designed a set of parametric design platform for various customized tools. The advantage of this platform is that it is separated from the main window of NX software, and the parametric design of tools can be realized through the user interface made by Python. The platform can provide simulation models, 3D tool model, and 2D drawing conforming to ISO 13399 standard for the research of tool cutting simulation, the construction of digital twin system of tool manufacturing [25], and the tool manufacturing site. Based on the developed platform, the efficiency and accuracy of tool modeling in cutting simulation can be improved and a lot of modeling and drawing time can be saved. Finally, it can improve the efficiency of tool design, shorten the design cycle, and reduce the design cost.

2 Research background

It is meaningful to realize the parameterization, integration, and standardization of customized tool design. Designers can reduce a lot of repetitive work by using parametric design technology. Making full use of modern CAD/CAM software to design customized tools can avoid the disadvantages of traditional tool design methods such as large amount of calculation and many decisions. Applying modeling standards in the process of tool design is beneficial to the interaction and transmission of tool model data.

2.1 Parameterization

Aviation, automobile, and energy are representative industrial fields in machining manufacturing, which have developed rapidly in recent years. Aviation manufacturing industry has the typical characteristics of high-tech industry and advanced manufacturing industry, and is an important symbol of science and technology, economy, national defense strength, and industrialization level. The titanium alloy aircraft frame parts shown in Fig. 1 are thin-walled parts with small processing batch and large size. Machining this part requires that the cutting tool has shock absorption function, specialized cutting tool function, and high-efficiency and high-precision machining performance. As a representative of the manufacturing industry with high technological content, intelligent degree, and industrial concentration, the automobile industry has become the forerunner of Germany’s “Industry 4.0.” The cast iron automobile engine block part shown in Fig. 2 has complex structure and big processing batch. Machining this part requires the tool to have high structural complexity, customized composite structure, and high machining accuracy. Energy industry plays a very important role in the development of economy, and its development is inseparable from the breakthrough of energy equipment manufacturing industry. The steel nuclear reactor pressure vessel water chamber head shown in Fig. 3 is large in size and processed by heavy cutting. Machining this part requires the tool to have stable performance, high machining efficiency, and high precision. Most of the above parts are processed by milling, and the tools shown in Figs. 1, 2, and 3 are frequently used in milling. In this paper, typical complex spiral curved surface cutters, customized reamers, and indexable insert milling cutters are selected as research objects. By introducing the structural characteristics of these three types of tools and analyzing the difficulties in tool model design, the necessity of parametric design of tools is illustrated.

Fig. 1
figure 1

Titanium alloy frame of aircraft and typical complex tools for machining

Fig. 2
figure 2

Automobile engine block and typical complex tools for machining

Fig. 3
figure 3

Water chamber head of nuclear reactor pressure vessel and typical complex cutting tools for processing

Cutting tools with complex spiral surfaces are one of the most widely used milling cutters, including integral end mills and drill bits. In this paper, the integral end mill in Fig. 1 is selected as the main research object. The cutting tool has complex blade shape, adopts unequal pitch and unequal lead design, and has high manufacturing precision. The cutter can effectively inhibit the generation of vibration, Excellent machined surface quality is obtained. The cutter is a five-edge, rounded end mill, and the five circumferential edges are designed in three groups. The spiral angles of two adjacent circumferential edges are different and the difference is not more than 2 degrees. Because the tool pitch is different from standard tool and the tip is rounded, it is difficult to model the cutting edge. In order to obtain the optimal design parameters of spiral angle combination, circumferential edge, and end edge, tool models with different design parameters need to be used for simulation, and the modeling workload is heavy. Parametric tool design technology can speed up modeling and improve modeling accuracy.

Using customized tools in mass production lines can improve production efficiency and machining accuracy. PCD high-precision non-standard customized tools are used in machining hole features such as valve seat guide pipe, spark plug hole, and double camshaft hole of engine block. Most of these tools are reamed. In this paper, the special tool for valve seat ring in Fig. 2 is selected as the main research object. This tool is a specialized non-standard tool, and the blades are combined. First, perform rough finishing on the bottom hole of the seat ring catheter, and then perform rough finishing after inserting the upper seat ring and catheter. Because the sizes of inlet and exhaust valves are inconsistent, the required tool structures are quite different. Using the tool parametric design technology can quickly modify the tool structure, generate a new tool model, and save the time wasted by re-modeling.

The indexable insert milling cutter can realize face milling, side milling, square shoulder milling, and complex curved surface milling. Face milling cutter is widely used in metal cutting as the main tool of plane machining. In this paper, the face milling cutter in Fig. 3 is selected as the main research object. The face milling cutter blade has a complex blade shape, small main deflection angle, and multiple circular arc edges. The design of small main deflection angle can improve the feeding speed of machining and then greatly improve the machining efficiency. When designing this kind of tool, the shape of the tool body will change with the change of the design parameters of the blade. The parametric design technology of the tool can make the blade and the tool body model change synchronously, thus reducing the workload of designers.

All the tools described above are customized tools based on specific machining scenes. Although they are similar in appearance to traditional standard tools, their structures have changed greatly in order to meet specific processing requirements. In order to make the cutting tool have the best cutting performance, the designer needs to divide the constant and variable parameters of the tool. Experiment and simulation are carried out for variable parameters, and the best geometric and technological parameters are obtained. Although the technological parameters of the tool can be set by simulation software, the change of the geometric parameters of the tool must be realized by replacing the tool model, so designers need to build a large number of tool models. However, due to the complex structure of the customized cutter, the change of one design parameter may make the whole model invalid. And with the change of tool design parameters, the two-dimensional drawings used in tool production also change, so designers need a lot of time to redraw the drawings. Therefore, in order to improve the efficiency of tool design and reduce the workload of designers, it is necessary to develop a tool parametric design platform.

2.2 Integration

The traditional tool development process often adopts the traditional mode of “design-trial cutting-improvement,” which has the advantages of long development cycle, high cost, and low efficiency. The mode of “parametric design-cutting simulation–optimization evaluation” is adopted. After the designers input the design parameters directly through the user interface, the system automatically generates the corresponding 3D model of milling cutter, which greatly reduces the modeling time, improves the design efficiency and shortens the design cycle. When the performance of the tool is optimized, the designer adjusts the original design parameters and automatically updates the 3D model and 2D drawing of the tool.

Tool design integration is to use programming language and secondary development technology to combine design software, simulation software, analysis software, and database to realize the integration of tool design. The principle of tool integrated design platform is shown in Fig. 4. Through the secondary development of CAD and CAE software, the tool model can be quickly designed and directly imported into the simulation model. Tool design and cutting simulation and manufacturing process digital twinning can be closely integrated with models by ISO 13399 standard data and simulation data. Using the optimization algorithm, through the analysis of simulation data and the optimization of tool design parameters and cutting process parameters, the optimal design results are found, and the complex tool design process is finally completed. The tool parametric design platform developed in this paper is the source of the standard tool model in the simulation module and the tool manufacturing digital twin module, which plays an indispensable role.

Fig. 4
figure 4

Integrated design principle of cutting tool

2.3 Standardization

In order to promote the efficient exchange of information between different environments, systems, and applications in the process of tool design and manufacturing, the use of standards will play an important role. The ISO 13399 standard was developed by Sandvik Coromant, Kennametal, Stockholm Royal Institute of technology, CETIM, and other stakeholders in the field of metal cutting. The ISO 13399 standard provides the information structure needed to describe the various data of cutting tools and cutting tool components, A method for realizing the electronic representation of cutting tool data is provided [26]. It aims to facilitate the exchange of data in the design, manufacture, distribution, and use of cutting tools [27]. ISO 13399 is not a standard to guide the design of cutting tools, but a standard for information expression of cutting tools. The structure of the standard is shown in Fig. 5, and a total of 36 sub series standards have been published. In order to facilitate the interaction and transmission of tool model data, the platform developed in this paper uses ISO 13399 as the standard of parametric model establishment.

Fig. 5
figure 5

Standard structure of ISO 13399

3 Parametric design technology

This section introduces the selection of secondary development software and the method of tool parametric design. In order to solve the problem of modeling accuracy of complex spiral surface cutter, the parametric equation of tool edge line of fillet end mill is analyzed and given. In order to improve the accuracy of tool model establishment, tool measurement experiments are carried out according to the existing tools. In order to verify the manufacturability of the tool edge line, a tool grinding experiment was carried out.

3.1 Selection of development software

The commonly used commercial CAD software for tool design includes NX, Pro/E, CATIA, and SolidWorks. NX is a product engineering solution produced by Siemens PLM Software Company, which has strong secondary development interface and surface modeling advantages. UG/open, the traditional secondary development technology of NX software, provides rich functions and various development modules, which can meet the user-defined requirements of the staff. Developers can use this function to customize the UG system and create functions to meet specific requirements. Therefore, it is an efficient tool design method to realize the parametric modeling of NX.

Although the traditional secondary development function of NX software UG/open is mature, it still needs to rely on NX software main interface to run. Moreover, the programming is more complex, which requires high hardware development, and is not conducive to integration with other CAM software. Python is an interpretative, interactive, cross platform, and object-oriented language; it has the advantages of easy to read and maintain, perfect basic code base, and support mainstream database interaction. The NX software is redeveloped by Python, which is separated from the main window of the software. The parametric modeling of the tool model can be realized through the user interface made by Python. In addition, Python language has been widely used in CAE software such as ABAQUS. Using Python language for secondary development is conducive to the integration and fusion of CAD and CAM software. Therefore, this paper chooses the method of secondary development of NX software based on Python language to realize the parametric modeling of tool model.

3.2 Parametric design method

In recent years, great progress has been made in the research of parametric design methods, such as variable geometry method based on geometric constraints, artificial intelligence method based on geometric reasoning, and process construction method based on generation process. The variable geometry method based on geometric constraints needs to use iterative method to solve nonlinear equations. The more complex the model is, the more difficult it is to solve. The artificial intelligence method based on geometric reasoning is built on the basis of complex expert system, and its modeling speed is slow. The process construction method based on generation process is the most mature method, which is widely used in the process of 3D model building of commercial CAD software. When modeling with this method, the model entity is obtained by geometric constraints and Boolean operations, and the model feature information is taken as variable parameters. The new 3D model can be obtained by changing the parameters in a reasonable range and updating the generation history of the model. The modeling is accurate and fast. Therefore, in this paper, the process construction method based on generation history is chosen to design customized tools parametrically.

Expression is an important part of tool parametric design by NX software, and it is the carrier of model variable parameters in process construction method. The expression is characterized by expressing the relationship among various parameters through functional relations, and the parameters can be defined as numbers and formulas. The tool can be modified by modifying one or several parameters in that expression, The realization principle of parametric design is shown in Fig. 6. Expressions can also store title bar information of 2D drawings. According to the main design parameters of cutting tools in the cutting process, this design method can quickly generate different size models from tool models with the same design features and simultaneously generate new 2D drawings, 3D models, and 3D simulation models. The modeling efficiency and modeling accuracy are greatly improved.

Fig. 6
figure 6

Implementation principle of parametric design of cutting tools

In order to solve the problem that the user’s hardware cannot use NX software smoothly because of its low performance, it is necessary to realize the function of fast parametric design without running the main interface of NX software. In this paper, the “run_journal.exe” program in NX software directory “\Siemens\NX1899\NXBIN” is selected for secondary development. Firstly, Python language is used to record the generation history file of parametric tool model. Secondly, compile a batch file in bat format, and the driver in this file can run the “run_journal.exe” program in the background and read the generated history file. Finally, the batch file can be called by Python logic program to realize the function of modeling away from the main interface of NX software.

3.3 Parameter equation of milling cutter edge line

The accuracy of tool modeling is one of the important factors for the accuracy of simulation results, and this influence is particularly significant in the edge modeling of integral end mills. In this section, the integral fillet end milling cutter in Fig. 1 is taken as an example, and a continuous cutting-edge curve model is established by using the equal lead helix of rotary cutter. In Fig. 7, in the coordinate system of the end mill with rounded corners, the equation of the blade line is expressed by rotating φ angle at any point P on the blade line. In the following, the edge line type of the fillet end milling cutter is analyzed and the parameter equation about the parameter t is given.

Fig. 7
figure 7

Coordinate system of integral fillet end milling cutter

The line of circumferential edge

When the curve of the circumferential edge rotates around the Z axis, the equation r1 of the surface of revolution is shown in Eq. (1).

$${r}_{1}=\left\{\begin{array}{c}R\mathrm{cos}{\varphi }_{1}\\ R\mathrm{sin}{\varphi }_{1}\\ r+\left(L-r\right)t\end{array}\right\}{\varphi }_{1}\in \left[\mathrm{0,2}\pi \right],t\in \left[\mathrm{0,1}\right]$$
(1)

where R is the half of cutting diameter, r is the corner radius of the cutter, and L is the depth of cut maximum. The tangential vector and meridian vector of the cutting-edge curve of point P in Eq. (2) are respectively \(d_{{r_{1} }}\) and \(\delta_{{r_{1} }}\).

$$\left\{\begin{array}{c}{d}_{{r}_{1}}={r}_{\text{1t}}dt+{r}_{{1}\varphi }d{\varphi }_{1}\\ {\delta }_{{r}_{1}}={r}_{\text{1t}}\delta t\\ {r}_{{1}t}=\left\{\mathrm{0,0},L-r\right\}\\ {r}_{1\varphi }=\left\{-R\mathrm{sin}{\varphi }_{1},R\mathrm{cos}{\varphi }_{1},0\right\}\end{array}\right.$$
(2)

where r1t is the first partial derivative of r1 with respect to t and r is the first partial derivative of r1 with respect to φ. Using the first basic form of curved surface as Eqs. (3) and (4), we can find the angle between \(d_{{r_{1} }}\) and \(\delta_{{r_{1} }}\) on the surface, and the flute helix angle β.

$$\cos^{2} \beta = \frac{{\left( {L - r} \right)^{2} dt^{2} }}{{\left( {L - r} \right)^{2} dt^{2} + R^{2} d\varphi_{1}^{2} }}$$
(3)
$${\text{d}}\varphi_{1} = \frac{{\left( {L - r} \right)\tan \beta }}{R}{\text{d}}t$$
(4)

When t = 0 and φ = 0, the integration of Eq. (4) yields Eq. (5).

$$\varphi_{1} { = }\frac{{\left( {L - r} \right)\tan \beta }}{R}t$$
(5)

Substituting Eq. (5) into Eq. (1), the parameter equation of the circumferential edge helix f (xt1, yt1, zt1) of the round end milling cutter with respect to t ∈ [0,1] is Eq. (6).

$$\left\{ \begin{gathered} xt{1 = }R\cos \left[ {180t\left( {L - r} \right)\tan \beta /\left( {\pi R} \right)} \right] \hfill \\ yt{1 = }R\sin \left[ {180t\left( {L - r} \right)\tan \beta /\left( {\pi R} \right)} \right] \hfill \\ zt{1} = r + \left( {L - r} \right)t \hfill \\ \end{gathered} \right.$$
(6)

The line of arc edge

The curve of circular arc and the curve of circumferential edge belong to equal lead helix, and the equation of circular arc edge line is calculated according to the existing equation of circumferential edge line. Equation (7) can be seen from Fig. 5.

$$r_{0} = R - r + r\sqrt {1 - t^{2} }$$
(7)

where r0 is the radius of rotation of point P in the XOY plane. Equation (8) can be obtained in the same way by Eq. (5).

$$\varphi_{2} { = }\frac{r\tan \beta }{R}t$$
(8)

The parameter equation of the arc edge curve f (xt2, yt2, zt2) of the fillet end mill with respect to t ∈ [0,1] is Eq. (9).

$$\left\{ \begin{gathered} xt2 = \left( {R - r + r\sqrt {1 - t^{2} } } \right)\cos \left[ {180tr\tan \beta /\left( {\pi R} \right)} \right] \hfill \\ yt2 = - \left( {R - r + r\sqrt {1 - t^{2} } } \right)\sin \left[ {180tr\tan \beta /\left( {\pi R} \right)} \right] \hfill \\ zt2 = r\left( {1 - t} \right) \hfill \\ \end{gathered} \right.$$
(9)

The line of the end edge

The line of the end edge is a straight line passing through the center on the XOY plane and tangent to the curve of the circular arc edge. The parameter equation of the edge line f (xt3, yt3, zt3) of the end edge of the fillet milling cutter with respect to t ∈ [0,1] is Eq. (10).

$$\left\{ \begin{gathered} xt3 = \left( {R - r} \right)\cos \left[ {180r\tan \beta /\left( {\pi R} \right)} \right]t \hfill \\ yt3 = - \left( {R - r} \right)\sin \left[ {180r\tan \beta /\left( {\pi R} \right)} \right]t \hfill \\ zt3 = 0*t \hfill \\ \end{gathered} \right.$$
(10)

The expressions of cutting-edge curves edited according to Eqs. (6), (9), and (10) are imported into NX software, and the cutting-edge curves shown in Fig. 8 are obtained.

Fig. 8
figure 8

Cutter edge curve

3.4 Milling cutter parameter measurement experiment

In order to establish the tool model more accurately, the full-scale measurement experiment of the tool shown in Fig. 10 was carried out by using the ultra-depth of field microscope (KEYENCE VHX-1000C, Japan) shown in Fig. 9. During the experiment shown in Fig. 10, the overall structure, spiral angle, circumferential edge size, and end edge size of the tool were measured in turn. Table 1 lists the measurement results of the main parameters of the tool. The data in Table 1 will be used in the subsequent research of tool model establishment.

Fig. 9
figure 9

Ultra-depth of field microscope

Fig. 10
figure 10

Cutter and experimental process

Table 1 Measurement results of main parameters of cutting tool

3.5 Grinding experiment of integral round corner end milling cutter based on edge line equation

In order to verify the manufacturability of the integral fillet end milling cutter, the grinding experiment of the cutter was carried out based on the established edge line equations of the circumferential and arc edges and the geometrical parameters of the cutter. Grinding track is designed and simulated with Helitronic Tool Studio grinding software. The simulation results are shown in Fig. 11. The final grinding process is aligned with the grinding machine tool (WALTER HELITRONIC VISION 400 L, Germany) shown in Fig. 12a. The manufacturing process is shown in Fig. 12b and the resulting integral end mill is shown in Fig. 12c. The measurement results of main parameters of cutting tool experiment are shown in Table 1.

Fig. 11
figure 11

Grinding track simulation of integral fillet end milling

Fig. 12
figure 12

Grinding process and results of integral fillet end milling

3.6 Standardized modeling

Based on the ISO/TS 13399–303 [28] standard, take the parametric model of high-efficiency end mill with variable pitch and helix angle as an example of solid end mills is established as shown in Fig. 13. First, a sketch is drawn and the basic model of the cutter is obtained by rotating the sketch. Then, make detail model of the cutter according to the design parameters. Finally, based on the ISO/TS 13399–70 [29] standard, the drawing of the cutter is established and derived.

Fig. 13
figure 13

Solid end mills design example

Based on the ISO/TS 13399–201 [30] standard, take the insert of high feed milling cutter as an example of indexable mill inserts is established as shown in Fig. 14. First, a sketch is drawn and the basic model of the insert is obtained by extruding the sketch. Then, make detail model of the insert according to the design parameters. Finally, based on the ISO/TS 13399–70 standard, the drawing of the insert is established and derived.

Fig. 14
figure 14

Indexable mill inserts design example

4 Development of parametric design platform

The necessity of realizing parametric design and the technology of tool parametric design were introduced. In this section, a parametric design platform for various customized tools is developed based on Python language from the perspective of user application examples.

4.1 Design scheme

Parametric design platform adopts modular design structure, and the platform structure is shown in Fig. 15. The user can input design parameters through the parametric design interface to generate new tool model data, and view the model data generated by the above design through the model browser in the model browsing module. You can also manage the tool model database through the database management interface.

Fig. 15
figure 15

Structure of parametric design platform for cutting tools

4.2 Interface design

User interaction module

In order to facilitate users to complete the parametric design process without complete professional knowledge, the platform designed a series of user interaction functions. In this paper, PyQt5 plug-in made by Python GUI is used as the development tool of platform interface. The main interface of tool parametric design platform as shown in Fig. 16a is established with PythonOCC as the core. The main function of the main interface is to integrate all the contents of parametric design module and database module, and has the function of browsing 3D model. For the convenience of users, the platform built a 2D graphic browser as shown in Fig. 16b with Python’s two-dimensional drawing display plug-in ezdxf as the core. Users click on the “DXF Browsing” button in the main interface to pop up the 2D graphics browser. In addition, the main interface is also provided with a help function. It is used to guide users to complete parametric design operations.

Fig. 16
figure 16

User interaction module

Parametric design module

The user can quickly generate the new tool model shown in Fig. 16a by using the parametric design interface of the tool model as shown in Fig. 17a and made by PyQt5 and inputting the key design parameters that affect the cutting process. The user can also fill in the title bar information of two-dimensional drawings in the title bar information pop up window as shown in Fig. 17b by clicking on the “Drawing title block” button; the program can directly write the title bar information into the newly generated 2D drawing shown in Fig. 16b.

Fig. 17
figure 17

Parametric design module of cutting tools

Model database management module

In order to facilitate users’ interaction and application of tool model data, this paper uses Linux system to build a cloud database based on MySQL database. According to data categories, the database has established five sub-tables: STEP 3D model, SAT simulation model, DXF 2D drawing, account information, and operation records. Users can manage the database through the model database management interface as shown in Fig. 18, and at the same time, the logic program can upload the user’s operation record and IP address to the operation record sub-table, which provides guarantee for the database security.

Fig. 18
figure 18

Model database management module

4.3 Programming

Main program

The function of the main program is to connect the interface program with the logic program. In this paper, the interface program and logic program are separated for programming. This method has the advantages of clear code structure and high programming efficiency, and the modification of a single program will not affect other programs.

Parametric modeling logic program

Logic program is the core program of the whole tool parametric design platform, which mainly realizes the functions of obtaining interface input parameters, distinguishing parameters, modifying expression files, and running parametric drive files. The principle of this function is shown in Fig. 19. The logic also plays the role of transferring parameters and controlling interface actions.

Fig. 19
figure 19

Main functional principle of logic program

Database logic program

The model management logic program mainly realizes the functions of uploading, downloading, and deleting model data. The logic also plays the role of database content display and interface action control. In addition, the program can compare the data uploaded by users with the original data in the database to ensure that there is no duplicate data in the database.

4.4 Design examples

The parameterized model of special tool for valve seat ring as shown in Fig. 20a is established based on ISO/TS 13,399–204 [31] and ISO/TS 13399–312 [32] standards. And based on the ISO/TS 13399–308 [33] standard, a parametric model of large feed milling cutter is established as shown in Fig. 20b.

Fig. 20
figure 20

Platform design example

In Fig. 21, according to the test and statistics at the manufacturing site, it takes about 50 min to build the 3D model of the tool and draw the 2D drawing by the traditional method. However, it takes only 5 min from inputting design parameters to generating tool models and two-dimensional drawings by using this platform. And the modeling and drawing efficiency is improved by 90%.

Fig. 21
figure 21

Modeling efficiency

5 Conclusions

This paper introduces the structural characteristics of typical cutting tools used in manufacturing industries, analyzes the difficulties in tool model design, and puts forward the necessity of developing a parametric design platform for cutting tools. In this paper, an integrated design method for complex tools is proposed, which integrates cutting-edge topography, CAD software, CAE software, database, and optimization algorithm. Parametric tool design platform is a part of it, to provide a standardized tool model. The parameter equation of continuous edge curve of circumferential edge curve and circular edge curve is established by using equal lead helix of rotary cutter. The manufacturability of the cutting-edge line of the tool is verified by the experiment of tool grinding. Aiming at the problems of long design cycle and low design efficiency of complex cutting tools with customized requirements, this paper realizes parametric modeling of cutting tools based on the process construction method of generating history. Using Python as the bottom language, the tool parametric design platform is developed by the method of secondary development of commercial CAD software. The conclusions are as follows:

  1. 1.

    Tool parametric design platform can quickly generate 2D drawings, 3D models, and simulation models, and realize the cloud storage function of model data.

  2. 2.

    The tool model established by the platform following ISO 13399 standard has good tool information interactivity. The platform is separated from the main interface of NX software, which is easy to operate and has low requirements for hardware configuration.

  3. 3.

    The platform has realized the parametric design of many kinds of tools, which has the characteristics of good integration and good human–computer interaction. Compared with conventional modeling, the efficiency of modeling with this platform has increased by 90%.