Method for automatically calculating plate blank of machined part in CATIA (computer-graphics aided three-dimensional interactive application) environment
By establishing a basic model for calculating the rough material of machined parts in the CATIA environment and using the program to automatically update parameters and calculate process allowances, the problems of low efficiency and waste caused by manual calculation of the rough material of machined parts are solved, and efficient and accurate automated design is achieved.
Patent Information
- Application Number
- CN202510749217.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-06
- Publication Date
- 2025-09-26
AI Technical Summary
In the CATIA environment, the calculation of the rough material of machined parts and plates relies on manual technical skills, resulting in high labor intensity, low design efficiency, easy errors, and easy waste of raw materials, making it difficult to meet the needs of high-quality, low-cost and rapid development.
By establishing a basic model for calculating the rough material of machined parts in CATIA software, using the program to automatically update parameters, rounding and increasing process allowances, the rough material of machined parts is calculated, and the rough material envelope model and parameter model are established.
It improves the calculation efficiency and accuracy of machined parts sheet metal raw materials, optimizes material utilization, reduces raw material waste, realizes the automated design of machined parts sheet metal raw materials, and reduces the difficulty of software development.
Smart Images

Figure CN120706049A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to, but is not limited to, the field of digital manufacturing, and relates to a method for automatically calculating rough material of machined parts plates under a CATIA environment. Background Art
[0002] Sheet metal roughness calculation plays a crucial role in machining, serving as a key step in determining the raw material dimensions for machined parts. Proper sheet metal roughness calculation is crucial for reducing production costs, improving material utilization, and properly managing inventory. Furthermore, sheet metal roughness calculation for machined parts is crucial for reducing machining stress, optimizing machining paths, and improving product quality and efficiency, a particularly significant benefit for mass-produced machined parts.
[0003] In the digital design environment, the calculation of the rough material of machined parts mainly relies on the measurement and analysis of the model by the design or process, and relies on manual calculation of the rough material of the parts. This design model relies heavily on human technical level, especially for the calculation of the rough material of tens of thousands of machined parts in industries such as aircraft and ships. The labor intensity is high, the design efficiency is low, and it is easy to make mistakes, which can easily lead to waste of raw materials and affect the processing efficiency of machined parts. It is difficult to meet the needs of high-quality, low-cost and rapid development. Summary of the Invention
[0004] The purpose of the present invention is: The present invention provides a method for automatically calculating the rough material of machined parts in a CATIA environment to solve the problems that the current calculation of the rough material of machined parts is highly dependent on the technical level of manual labor, resulting in high labor intensity, low design efficiency, and easy errors, which easily leads to waste of raw materials, affects the processing efficiency of machined parts, and is difficult to meet the needs of high-quality, low-cost and rapid development.
[0005] The technical solution of the present invention is: the present invention provides a method for automatically calculating the rough material of machined parts in a CATIA environment, comprising: Step 1: Based on a pre-established basic model for calculating rough stock of machined parts, a solid model of the machined part model is placed into the basic model for calculating rough stock of machined parts, so as to update the rough stock calculation parameters of the plate in the basic model for calculating rough stock of machined parts; Step 2: For the updated plate rough material calculation parameters in the basic model for calculating the rough material of machined parts, the plate rough material of machined parts is calculated by rounding up and increasing the process allowance; Step 3: Based on the calculation results of the machined part sheet material, a machined part sheet material envelope model 9 and a sheet material parameter model 10 are established.
[0006] Optionally, in the above-mentioned method for automatically calculating the rough material of machined parts in the CATIA environment, the basic model for calculating the rough material of machined parts is established by measuring the part geometry using the inertia measurement tool of the CATIA software and establishing the measurement value of the empty entity inertia envelope.
[0007] Optionally, in the above-mentioned method for automatically calculating the rough material of a machined part sheet in a CATIA environment, the method for establishing a basic model for calculating the rough material of a machined part sheet comprises the following steps: S1-1, create a new part file in CATIA software and build a solid model in the part geometry; S1-2, use the inertia measurement tool in CATIA to measure the part geometry and obtain the inertia envelope measurement value; S1-3, create new parameters for each principal axis component of the center of gravity coordinate system {p-A1x, p-A1y, p-A1z, p-A2x, p-A2y, p-A2z, p-A3x, p-A3y, p-A3z}, and edit the formula to make the parameters of each principal axis component equal to A1x, A1y, A1z, A2x, A2y, A2z, A3x, A3y, A3z in the inertia envelope measurement value 1; where A1, A2, and A3 are the direction parameters of the x, y, and z axes respectively; p- represents the new parameters for each principal axis component; S1-4, respectively create bounding box vertex parameters {(p-BBOx), (p-BBOy), (p-BBOz)} and bounding box length parameter p-BBLx, width parameter p-BBLy, height parameter p-BBLz, and edit the formula to make each parameter equal to BBOx, BBOy, BBOz, BBLx, BBLy, BBLz in the inertia envelope measurement value 1; S1-5, delete the solid model established in the part geometry in S1-1, and complete the establishment of the basic model for calculating the rough material of the machined part sheet.
[0008] Optionally, in the above-mentioned method for automatically calculating the rough stock of a machined part sheet in a CATIA environment, the method of updating the rough stock calculation parameters of the sheet in the basic model for calculating the rough stock of a machined part sheet in step 1 includes: S2-1, develop a program in CATIA software and use the program to automatically open the machined part model; S2-2, copy the solid model in the machined part model; S2-3, paste the copied solid model into the structure tree of the part geometry of the basic model for calculating the rough material of the machined part sheet by pasting the result; S2-4, calling the update function to update the basic model for calculating the rough material of the machined parts; S2-5, read the raw material calculation related parameters {p-A1x, p-A1y, p-A1z, p-A2x, p-A2y, p-A2z, p-A3x, p-A3y, p-A3z}, {(p-BBOx), (p-BBOy), (p-BBOz)}, p-BBLx, p-BBLy, p-BBLz in the basic model for raw material calculation of machined parts; S2-6, delete the solid model under the structure tree in the basic model part geometry of the sheet metal rough material calculation for machined parts.
[0009] Optionally, in the above-mentioned method for automatically calculating the rough material of machined parts sheet metal in the CATIA environment, The rough material of the machined part plate calculated in step 2 includes: the rough material size of the machined part plate and the envelope parameters of the rough material of the machined part plate.
[0010] Optionally, in the method for automatically calculating the rough material of a machined part sheet in the CATIA environment described above, in step 2, the method of calculating the rough material size of the machined part sheet includes: Step 21, the computer rounds off the parts and adds the allowance to obtain the length dimension nbblx, width dimension nbbly, and height dimension nbblz of the plate raw material; nbblx=t*round(BBLx / t+0.5)+z; nbbly=t*round(BBLy / t+0.5)+z; nbblz=t*round(BBLz / t+0.5)+z; Where t is the rounding parameter. When t is 1, 10, 100, and 1000, it corresponds to rounding to the units place, rounding to the tens place, rounding to the hundreds place, and rounding to the thousands place respectively. z is the process allowance, where z is an integer greater than 0.
[0011] Optionally, in the above-mentioned method for automatically calculating the rough material of a machined part sheet in the CATIA environment, in step 2, the method of calculating the envelope parameters of the rough material of the machined part sheet includes: Step 22: After rounding the parts and adding the allowance, the starting coordinates (sptlx, sptly, sptlz) and the ending coordinates (eptlx, eptly, eptlz) of the sheet material in the length direction are calculated using the following formula: sptlx=BBOx- A1x*(nbblx-BBLx) / 2; sptly=BBOy- A1y*(nbblx-BBLx) / 2; sptlz=BBOz- A1z*(nbblx-BBLx) / 2; eptlx=BBOx+ A1x*(nbblx+BBLx) / 2; eptly=BBOy+ A1y*(nbblx+BBLx) / 2; eptlz=BBOz+ A1z*(nbblx+BBLx) / 2; Step 23: After rounding the parts and adding the allowance, the starting coordinates (sptwx, sptwy, sptwz) and the ending coordinates (eptwx, eptwy, eptwz) of the sheet material in the width direction are calculated using the following formula: sptwx=BBOx- A2x*(nbbly-BBLy) / 2; sptwy=BBOy- A2y*(nbbly-BBLy) / 2; sptwz=BBOz- A2z*(nbbly-BBLy) / 2; eptwx=BBOx+ A2x*(nbbly+BBLy) / 2; eptwy=BBOy+ A2y*(nbbly+BBLy) / 2; eptwz=BBOz+ A2z*(nbbly+BBLy) / 2; Step 24: After rounding off the parts and adding the allowance, the starting coordinates (spthx, spthy, spthz) and the ending coordinates (epthx, epthy, epthz) of the plate material in the height direction are calculated by the computer. The calculation formula is as follows: spthx=BBOx- A3x*(nbblz-BBLz) / 2; spthy=BBOy- A3y*(nbblz-BBLz) / 2; spthz=BBOz- A3z*(nbblz-BBLz) / 2; epthx=BBOx+ A3x*(nbblz+BBLz) / 2; epthy=BBOy+ A3y*(nbblz+BBLz) / 2; epthz=BBOz+ A3z*(nbblz+BBLz) / 2.
[0012] Optionally, in the above-mentioned method for automatically calculating the rough material of machined parts in the CATIA environment, step 3 includes: Step 31, using the length direction starting point coordinates (sptlx, sptly, sptlz), length direction end point coordinates (eptlx, eptly, eptlz), width direction starting point coordinates (sptwx, sptwy, sptwz), width direction end point coordinates (eptwx, eptwy, eptwz), height direction starting point coordinates (spthx, spthy, spthz), height direction end point coordinates (epthx, epthy, epthz) in the machined part plate rough material envelope parameters calculated in steps 22 to 24 to construct a rectangular surface and establish a machined part plate rough material envelope model; Step 32, using the length dimension nbblx, width dimension nbbly, and height dimension nbblz of the plate raw material after rounding and adding the allowance of the machined part calculated in step 21, a new parameter model of the plate raw material of the machined part is created in the CATIA software.
[0013] Optionally, the method for automatically calculating the rough material of a machined part sheet in the CATIA environment described above further includes: Step 4: For all machined parts, repeatedly execute steps 11 to 32 to establish the sheet material envelope model and sheet material parameter model of each machined part.
[0014] The beneficial effects of the present invention are as follows: the present invention provides a method for automatically calculating the rough stock of machined parts in a CATIA environment, which can realize the automatic calculation of the rough stock of multiple machined parts through software development; first, based on the pre-established basic model for calculating the rough stock of machined parts, the solid model of the machined part model is placed in the basic model for calculating the rough stock of machined parts to update the rough stock calculation parameters in the basic model for calculating the rough stock of machined parts; secondly, for the updated rough stock calculation parameters in the basic model for calculating the rough stock of machined parts, the rough stock of the part is calculated by rounding up and increasing the process allowance; finally, according to the calculation results of the rough stock of machined parts, a rough stock envelope model of machined parts and a rough stock parameter model are established. The technical solution provided by the embodiment of the present invention proposes to cyclically read the solid model of the machined part by establishing the basic model for calculating the rough stock of machined parts, copy it to the basic model for calculating the rough stock of machined parts, and update the parameters related to the rough stock calculation, and then automatically establish the rough stock envelope model of the machined part and the rough stock parameter model. The method for automatically calculating the rough material of machined parts in the CATIA environment provided by the embodiment of the present invention has the following beneficial effects: (1) The method for automatic calculation of rough material of machined parts provided by the present invention effectively improves the efficiency of standardization calculation of rough material of machined parts, enhances the calculation accuracy of rough material of machined parts, optimizes material utilization, reduces the waste of raw materials, avoids errors in manual rough material calculation, effectively reduces the difficulty of developing software for automatic calculation of rough material of machined parts in batches, and realizes the automated design of rough material of machined parts.
[0015] (2) The method for automatically calculating the rough material of machined parts provided by the present invention has a clear concept and provides a new solution for the high-quality, high-efficiency and standardized automatic batch calculation of the rough material size of aircraft sheet metal parts and aircraft tooling design processes. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The accompanying drawings are used to provide a further understanding of the technical solution of the present invention and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the technical solution of the present invention and do not constitute a limitation on the technical solution of the present invention.
[0017] Figure 1 Schematic diagram of a basic model for calculating rough material of a machined part sheet in an embodiment of the present invention; Figure 2 Schematic diagram of the sheet metal raw material envelope model and the sheet metal raw material parameter model of the machined parts in an embodiment of the present invention.
[0018] Description of reference numerals: 1- Inertia envelope measurement value, 2- Machined parts, 3- Starting point coordinates in length direction, 4- End point coordinates in length direction, 5- Starting point coordinates in width direction, 6- End point coordinates in width direction, 7- Starting point coordinates in height direction, 8- End point coordinates in height direction, 9- Raw material envelope model, 10- Plate raw material parameter model. DETAILED DESCRIPTION
[0019] To make the purpose, technical solutions and advantages of the present invention more clearly understood, the embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that, unless there is a conflict, the embodiments and features in the embodiments of the present application can be combined with each other in any manner.
[0020] As explained in the above background technology, the current calculation of raw materials for machined parts relies heavily on manual technical skills, resulting in high labor intensity, low design efficiency, and easy errors. It is easy to cause waste of raw materials and affect the processing efficiency of machined parts. It is difficult to meet the needs of high-quality, low-cost and rapid development.
[0021] Calculating rough stock and designing its envelope in the CATIA environment are complex, requiring a properly defined rough stock coordinate system. Calculation results can vary widely, and rough stock calculations only consider the part's envelope, resulting in decimals that don't account for part machining allowances. This requires redesigning the stock placement and can't be directly applied to the design and procurement of rough stock for machined parts and sheet metal. Furthermore, CATIA doesn't directly provide a software development interface for calculating rough stock envelopes, making indirect software development difficult and the calculation process complex.
[0022] In response to the above problems, the present invention proposes an automatic calculation method for the rough stock of machined parts plates in the CATIA environment, which uses model replacement to obtain parameters instead of software development, establishes a basic model for the calculation of the rough stock of machined parts plates, uses a program loop to read the machined part model, and places its solid model into the basic model for the calculation of the rough stock of machined parts plates. After the program updates and reads the relevant parameters for the rough stock calculation, it automatically completes the rounding calculation of the plate stock with a margin in the machined part model, and completes the model establishment of the machined part plate stock envelope and the automatic modeling of the plate stock parameters.
[0023] The present invention provides the following specific embodiments that can be combined with each other. The same or similar concepts or processes may not be described in detail in some embodiments.
[0024] Figure 1 Schematic diagram of a basic model for calculating rough material of a machined part sheet in an embodiment of the present invention; Figure 2 Schematic diagram of the sheet metal raw material envelope model and the sheet metal raw material parameter model of the machined parts in an embodiment of the present invention.
[0025] An embodiment of the present invention provides a method for automatically calculating the rough material of machined parts plates in a CATIA environment, a pre-established basic model for calculating the rough material of machined parts plates, a solid model of a machined part model 2 is placed in the basic model for calculating the rough material of machined parts plates, updated plate rough material calculation parameters are calculated by rounding up and increasing the process allowance to calculate the rough material of machined parts plates, and a machined parts plate rough material envelope body 9 model and a plate rough material parameter 10 model are established.
[0026] The embodiment of the present invention provides a method for automatically calculating the rough material of a machined part sheet in a CATIA environment, comprising the following steps: Step 1: Based on a pre-established basic model for calculating rough stock of machined parts, a solid model of the machined part model is placed into the basic model for calculating rough stock of machined parts, so as to update the rough stock calculation parameters of the plate in the basic model for calculating rough stock of machined parts; Step 2: For the updated plate rough material calculation parameters in the basic model for calculating the rough material of machined parts, the plate rough material of machined parts is calculated by rounding up and increasing the process allowance; Step 3: Based on the calculation results of the machined part sheet material, establish the machined part sheet material envelope model and the sheet material parameter model.
[0027] In one implementation of the present invention, a basic model for calculating rough material of a machined part sheet is established by measuring the part geometry using the inertia measurement tool of CATIA software to establish an empty solid inertia envelope measurement value 1. The design method includes the following steps: S1-1, create a new part file in CATIA software and build a solid model in the part geometry; In this embodiment, the established solid model is taken as an example of a 10*10*10 cube.
[0028] S1-2, use the inertia measurement tool in CATIA to measure the part geometry and obtain the inertia envelope measurement value 1; S1-3, create new parameters for each principal axis component of the center of gravity coordinate system {p-A1x, p-A1y, p-A1z, p-A2x, p-A2y, p-A2z, p-A3x, p-A3y, p-A3z}, and edit the formula to make the parameters of each principal axis component equal to A1x, A1y, A1z, A2x, A2y, A2z, A3x, A3y, A3z in the inertia envelope measurement value 1; where A1, A2, and A3 are the direction parameters of the x, y, and z axes respectively; p- represents the new parameters for each principal axis component; S1-4, respectively create bounding box vertex parameters {(p-BBOx), (p-BBOy), (p-BBOz)} and bounding box length parameter p-BBLx, width parameter p-BBLy, height parameter p-BBLz, and edit the formula to make each parameter equal to BBOx, BBOy, BBOz, BBLx, BBLy, BBLz in the inertia envelope measurement value 1; S1-5, delete the solid model established in the part geometry in S1-1, and complete the establishment of the basic model for calculating the rough material of the machined part sheet.
[0029] It should be noted that the method for automatically calculating the rough stock of machined parts provided by the embodiment of the present invention is to update the rough stock calculation parameters of the plate in the basic model for calculating the rough stock of machined parts. In a specific embodiment, in step 1, the rough stock calculation parameters of the plate in the basic model for calculating the rough stock of machined parts are updated by the following steps: S2-1, develop a program in CATIA software and use the program to automatically open the machined part model 2; S2-2, copy the solid model in the machined part model 2; S2-3, paste the copied solid model into the structure tree of the part geometry of the basic model for calculating the rough material of the machined part sheet by pasting the result; S2-4, calling the update function to update the basic model for calculating the rough material of the machined parts; S2-5, through the programmed program, read the raw material calculation related parameters {p-A1x, p-A1y, p-A1z, p-A2x, p-A2y, p-A2z, p-A3x, p-A3y, p-A3z}, {(p-BBOx), (p-BBOy), (p-BBOz)}, p-BBLx, p-BBLy, p-BBLz} in the basic model for raw material calculation of machined parts; the data are shown in Table 1; Table 1 Parameters related to the calculation of rough material of machined parts
[0030] S2-6, delete the solid model under the structure tree in the basic model part geometry of the sheet metal rough material calculation for machined parts.
[0031] In one implementation of the embodiment of the present invention, the rough material of the machined part sheet material calculated in step 2 includes: the rough material size of the machined part sheet material and the rough material envelope parameters of the machined part sheet material. In this implementation, the method of calculating the rough material size of the machined part sheet material in step 2 includes the following steps: Step 21: The computer rounds off the parts and adds the allowance to obtain the length nbblx, width nbbly, and height nbblz of the raw material. The specific calculation formula is as follows: nbblx=t*round(BBLx / t+0.5)+z; nbbly=t*round(BBLy / t+0.5)+z; nbblz=t*round(BBLz / t+0.5)+z; Where t is a rounding parameter. When t is 1, 10, 100, and 1000, the corresponding values are rounding to the units, tens, hundreds, and thousands, respectively. z is a process allowance, where z is an integer greater than 0. In this embodiment, t is 10, and the tens digit is rounded for the raw material calculation parameters.
[0032] In this implementation, the method of adding the parameters of the raw material envelope of the part plate to the computer in step 2 includes the following steps: Step 22: After adding the rounded parts and the allowance, the starting coordinate 3 (sptlx, sptly, sptlz) and the ending coordinate 4 (eptlx, eptly, eptlz) of the length direction of the plate rough material are calculated by the following formula: sptlx=BBOx- A1x*(nbblx-BBLx) / 2; sptly=BBOy- A1y*(nbblx-BBLx) / 2; sptlz=BBOz- A1z*(nbblx-BBLx) / 2; eptlx=BBOx+ A1x*(nbblx+BBLx) / 2; eptly=BBOy+ A1y*(nbblx+BBLx) / 2; eptlz=BBOz+ A1z*(nbblx+BBLx) / 2; In this embodiment, the coordinate values of the starting point coordinate 3 and the end point coordinate 4 in the length direction of the plate material are as follows: sptlx= 8445.6804 - 0.0149 *(1250-1216.2207 ) / 2=8445.4283mm; sptly = -21.4005 - 0.9971*(1250-1216.2207 ) / 2=-38.2407mm; sptlz=420.0793 - 0.0750 *(1250-1216.2207 ) / 2=418.8126mm; eptlx=8445.6804+ 0.0149 *(1250+1216.2207 ) / 2=8464.0844mm; eptly-21.4005+ 0.9971*(1250+1216.2207 ) / 2=-1208.0995mm; eptlz=420.0793 +0.0750 *(1250+1216.2207 ) / 2=512.5578mm.
[0033] Step 23: After adding the rounded parts and the allowance, the starting coordinates 5 (sptwx, sptwy, sptwz) and the ending coordinates 6 (eptwx, eptwy, eptwz) of the width direction of the plate are calculated by the following formula: sptwx=BBOx- A2x*(nbbly-BBLy) / 2; sptwy=BBOy- A2y*(nbbly-BBLy) / 2; sptwz=BBOz- A2z*(nbbly-BBLy) / 2; eptwx=BBOx+ A2x*(nbbly+BBLy) / 2; eptwy=BBOy+ A2y*(nbbly+BBLy) / 2; eptwz=BBOz+ A2z*(nbbly+BBLy) / 2; In this embodiment, the coordinate values of the starting point coordinate 5 and the end point coordinate 6 in the width direction of the plate material are as follows: sptwx=8445.6804 - -0.0805*(320-285.8522) / 2=8447.0552 mm; sptwy = -21.4005 - 0.0760 *(320-285.8522 ) / 2= -22.6973 mm; sptwz=420.0793 - -0.9939*(320-285.8522) / 2=437.0483mm; eptwx=8445.6804+-0.0805 *(320+285.8522 ) / 2=8421.2889mm; eptwy=-21.4005+ 0.0760 *(320+285.8522) / 2=1.6096mm; eptwz=420.0793 + -0.9939 *(320+285.8522 ) / 2=119.0148mm.
[0034] Step 24: After rounding off the parts and adding the allowance, the height direction starting point coordinates 7 (spthx, spthy, spthz) and the height direction end point coordinates 8 (epthx, epthy, epthz) of the plate raw material are calculated by the computer. The calculation formula is as follows: spthx=BBOx- A3x*(nbblz-BBLz) / 2; spthy=BBOy- A3y*(nbblz-BBLz) / 2; spthz=BBOz- A3z*(nbblz-BBLz) / 2; epthx=BBOx+ A3x*(nbblz+BBLz) / 2; epthy=BBOy+ A3y*(nbblz+BBLz) / 2; epthz=BBOz+ A3z*(nbblz+BBLz) / 2.
[0035] In this embodiment, the coordinate values of the starting point coordinate 7 and the end point coordinate 8 in the height direction of the plate rough material are as follows: spthx=8445.6804 - -0.9966*(210-173.2881 ) / 2=8463.9747 mm; spthy= -21.4005 - 0.0088*(210-173.2881 ) / 2= -21.5619mm; spthz=420.0793 - 0.0814 *(210-173.2881 ) / 2=418.5848mm; epthx=8445.6804 + -0.9966*(210+173.2881 ) / 2=8254.6800 mm; ethy= -21.4005 + 0.0088*(210+173.2881 ) / 2= -19.7151 mm; epthz=420.0793 + 0.0814 *(210+173.2881 ) / 2=435.6825 mm.
[0036] In an implementation provided by an embodiment of the present invention, the implementation process of the above step 3 may include: Step 31, using the length direction starting point coordinate 3 (sptlx, sptly, sptlz), length direction end point coordinate 4 (eptlx, eptly, eptlz), width direction starting point coordinate 5 (sptwx, sptwy, sptwz), width direction end point coordinate 6 (eptwx, eptwy, eptwz), height direction starting point coordinate 7 (spthx, spthy, spthz), height direction end point coordinate 8 (epthx, epthy, epthz) of the machined part plate rough material envelope parameters calculated in steps 22 to 24 to construct a rectangular surface and establish the machined part plate rough material envelope model 9.
[0037] In this embodiment, the above coordinate values are shown as follows: The starting point coordinates in the longitudinal direction are 3 (sptlx, sptly, sptlz) = (8445.4283, -38.2407, 418.8126); The coordinates of the end point in the longitudinal direction 4 (eptlx, eptly, eptlz) = (8464.0844, 1208.0995, 512.5578); The starting point coordinates in the width direction are 5 (sptwx, sptwy, sptwz) = (8447.0552, -22.6973, 437.0483); End point coordinates in width direction 6 (eptwx, eptwy, eptwz) = (8421.2889, 1.6096, 119.0148); Height direction starting point coordinates 7 (spthx, spthy, spthz) = (8463.9747, -21.5619, 418.5848); The end point coordinate in the height direction 8 (epthx, epthy, epthz) = (8254.6800, -19.7151, 435.6825).
[0038] Step 32, by writing a program, using the length dimension nbblx, width dimension nbbly, and height dimension nbblz of the plate material after rounding and adding the allowance of the machined part calculated in step 21, a new machined part plate material parameter model 10 is created in CATIA software.
[0039] In one implementation of the embodiment of the present invention, the method for automatically calculating the rough material of a machined part sheet in a CATIA environment provided by the embodiment of the present invention further includes the following steps: Step 4, by writing a program, for all machined parts, by repeatedly executing steps 11 to 32, a sheet material envelope model and a sheet material parameter model 10 of each machined part are established.
[0040] The method for automatically calculating the rough stock of machined parts in the CATIA environment provided by the embodiment of the present invention can realize the automatic calculation of the rough stock of multiple machined parts through software development; first, based on the pre-established basic model for calculating the rough stock of machined parts, the solid model of the machined part model is placed in the basic model for calculating the rough stock of machined parts to update the rough stock calculation parameters in the basic model for calculating the rough stock of machined parts; secondly, for the updated rough stock calculation parameters in the basic model for calculating the rough stock of machined parts, the rough stock of the part is calculated by rounding up and increasing the process allowance; finally, according to the calculation results of the rough stock of machined parts, a rough stock envelope model of machined parts and a rough stock parameter model are established. The technical solution provided by the embodiment of the present invention proposes to cyclically read the solid model of the machined part by establishing the basic model for calculating the rough stock of machined parts, copy it to the basic model for calculating the rough stock of machined parts, and update the parameters related to the rough stock calculation, and then automatically establish the rough stock envelope model of the machined part and a rough stock parameter model. The method for automatically calculating the rough stock of machined parts in the CATIA environment provided by the embodiment of the present invention has the following beneficial effects: (1) The method for automatic calculation of rough material of machined parts provided by the present invention effectively improves the efficiency of standardization calculation of rough material of machined parts, enhances the calculation accuracy of rough material of machined parts, optimizes material utilization, reduces the waste of raw materials, avoids errors in manual rough material calculation, effectively reduces the difficulty of developing software for automatic calculation of rough material of machined parts in batches, and realizes the automated design of rough material of machined parts.
[0041] (2) The method for automatically calculating the rough material of machined parts provided by the present invention has a clear concept and provides a new solution for the high-quality, high-efficiency and standardized automatic batch calculation of the rough material size of aircraft sheet metal parts and aircraft tooling design processes.
[0042] Although the embodiments disclosed herein are as described above, the contents are merely provided to facilitate understanding of the present invention and are not intended to limit the present invention. Any person skilled in the art may make any modifications and variations in the form and details of the embodiments without departing from the spirit and scope of the present invention. However, the scope of patent protection of the present invention shall remain subject to the scope defined by the appended claims.
Claims
1. A method for automatically calculating the rough material of machined parts in CATIA environment, characterized in that: include: Step 1: Based on a pre-established basic model for calculating rough stock of machined parts, a solid model of the machined part model is placed into the basic model for calculating rough stock of machined parts, so as to update the rough stock calculation parameters of the plate in the basic model for calculating rough stock of machined parts; Step 2: For the updated plate rough material calculation parameters in the basic model for calculating the rough material of machined parts, the plate rough material of machined parts is calculated by rounding up and increasing the process allowance; Step 3: Based on the calculation results of the machined part sheet material, establish the machined part sheet material envelope model 9 and the sheet material parameter model 10.
2. The method for automatically calculating the rough material of machined parts in the CATIA environment according to claim 1 is characterized in that: The method for establishing the basic model for calculating the rough material of the machined part plate is to use the inertia measurement tool of CATIA software to measure the part geometry and establish the measurement value of the empty entity inertia envelope.
3. The method for automatically calculating the rough material of machined parts in the CATIA environment according to claim 2, characterized in that: The method for establishing a basic model for calculating the rough material of a machined part plate comprises the following steps: S1-1, create a new part file in CATIA software and build a solid model in the part geometry; S1-2, use the inertia measurement tool in CATIA to measure the part geometry and obtain the inertia envelope measurement value; S1-3, create new parameters for each principal axis component of the center of gravity coordinate system {p-A1x, p-A1y, p-A1z, p-A2x, p-A2y, p-A2z, p-A3x, p-A3y, p-A3z}, and edit the formula to make the parameters of each principal axis component equal to A1x, A1y, A1z, A2x, A2y, A2z, A3x, A3y, A3z in the inertia envelope measurement value 1; where A1, A2, and A3 are the direction parameters of the x, y, and z axes respectively; p- represents the new parameters for each principal axis component; S1-4, respectively create bounding box vertex parameters {(p-BBOx), (p-BBOy), (p-BBOz)} and bounding box length parameter p-BBLx, width parameter p-BBLy, height parameter p-BBLz, and edit the formula to make each parameter equal to BBOx, BBOy, BBOz, BBLx, BBLy, BBLz in the inertia envelope measurement value 1; S1-5, delete the solid model established in the part geometry in S1-1, and complete the establishment of the basic model for calculating the rough material of the machined part sheet.
4. The method for automatically calculating the rough material of machined parts in the CATIA environment according to claim 3 is characterized in that: The method of updating the sheet material calculation parameters in the basic model for calculating sheet material for machined parts in step 1 includes: S2-1, develop a program in CATIA software and use the program to automatically open the machined part model; S2-2, copy the solid model in the machined part model; S2-3, paste the copied solid model into the structure tree of the part geometry of the basic model for calculating the rough material of the machined part sheet by pasting the result; S2-4, calling the update function to update the basic model for calculating the rough material of the machined parts plate; S2-5, read the raw material calculation related parameters {p-A1x, p-A1y, p-A1z, p-A2x, p-A2y, p-A2z, p-A3x, p-A3y, p-A3z}, {(p-BBOx), (p-BBOy), (p-BBOz)}, p-BBLx, p-BBLy, p-BBLz in the basic model for raw material calculation of machined parts; S2-6, delete the solid model under the structure tree in the basic model part geometry of the sheet metal rough material calculation for machined parts.
5. The method for automatically calculating the rough material of machined parts in a CATIA environment according to any one of claims 1 to 4, characterized in that: The rough material of the machined part plate calculated in step 2 includes: the rough material size of the machined part plate and the envelope parameters of the rough material of the machined part plate.
6. The method for automatically calculating the rough material of machined parts in the CATIA environment according to claim 5, characterized in that: In step 2, the method of calculating the size of the rough material of the component plate includes: Step 21, the computer rounds off the parts and adds the allowance to obtain the length dimension nbblx, width dimension nbbly, and height dimension nbblz of the plate raw material; nbblx=t*round(BBLx / t+0.5)+z; nbbly=t*round(BBLy / t+0.5)+z; nbblz=t*round(BBLz / t+0.5)+z; Where t is the rounding parameter. When t is 1, 10, 100, and 1000, it corresponds to rounding to the units place, rounding to the tens place, rounding to the hundreds place, and rounding to the thousands place respectively. z is the process allowance, where z is an integer greater than 0.
7. The method for automatically calculating the rough material of machined parts in the CATIA environment according to claim 5, characterized in that: In step 2, the method of calculating the parameters of the raw material envelope of the part plate includes: Step 22: After rounding the parts and adding the allowance, the starting coordinates (sptlx, sptly, sptlz) and the ending coordinates (eptlx, eptly, eptlz) of the sheet material in the length direction are calculated using the following formula: sptlx=BBOx- A1x*(nbblx-BBLx) / 2; sptly=BBOy- A1y*(nbblx-BBLx) / 2; sptlz=BBOz- A1z*(nbblx-BBLx) / 2; eptlx=BBOx+ A1x*(nbblx+BBLx) / 2; eptly=BBOy+ A1y*(nbblx+BBLx) / 2; eptlz=BBOz+ A1z*(nbblx+BBLx) / 2; Step 23: After rounding the parts and adding the allowance, the starting coordinates (sptwx, sptwy, sptwz) and the ending coordinates (eptwx, eptwy, eptwz) of the sheet material in the width direction are calculated using the following formula: sptwx=BBOx- A2x*(nbbly-BBLy) / 2; sptwy=BBOy- A2y*(nbbly-BBLy) / 2; sptwz=BBOz- A2z*(nbbly-BBLy) / 2; eptwx=BBOx+ A2x*(nbbly+BBLy) / 2; eptwy=BBOy+ A2y*(nbbly+BBLy) / 2; eptwz=BBOz+ A2z*(nbbly+BBLy) / 2; Step 24: After rounding off the parts and adding the allowance, the starting coordinates (spthx, spthy, spthz) and the ending coordinates (epthx, epthy, epthz) of the plate material in the height direction are calculated by the computer. The calculation formula is as follows: spthx=BBOx- A3x*(nbblz-BBLz) / 2; spthy=BBOy- A3y*(nbblz-BBLz) / 2; spthz=BBOz- A3z*(nbblz-BBLz) / 2; epthx=BBOx+ A3x*(nbblz+BBLz) / 2; epthy=BBOy+ A3y*(nbblz+BBLz) / 2; epthz=BBOz+ A3z*(nbblz+BBLz) / 2.
8. The method for automatically calculating the rough material of machined parts in the CATIA environment according to claim 7, characterized in that: The step 3 includes: Step 31, using the length direction starting point coordinates (sptlx, sptly, sptlz), length direction end point coordinates (eptlx, eptly, eptlz), width direction starting point coordinates (sptwx, sptwy, sptwz), width direction end point coordinates (eptwx, eptwy, eptwz), height direction starting point coordinates (spthx, spthy, spthz), height direction end point coordinates (epthx, epthy, epthz) in the machined part plate rough material envelope parameters calculated in steps 22 to 24 to construct a rectangular surface and establish a machined part plate rough material envelope model; Step 32, using the length dimension nbblx, width dimension nbbly, and height dimension nbblz of the plate raw material after rounding and adding the allowance of the machined part calculated in step 21, a new parameter model of the plate raw material of the machined part is created in the CATIA software.
9. The method for automatically calculating the rough material of machined parts in the CATIA environment according to claim 8, characterized in that: Also includes: Step 4: For all machined parts, repeatedly execute steps 11 to 32 to establish the sheet material envelope model and sheet material parameter model of each machined part.