A method for identifying part process features based on CAD model color system
Through the identification and encoding method based on the CAD model color system, automatic matching of part process characteristics and processing technology is achieved, solving the problems of cumbersome and error-prone programming process in the existing technology, and improving programming efficiency and process integration capabilities.
Patent Information
- Application Number
- CN202310481619.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-28
- Publication Date
- 2025-03-14
- Estimated Expiration
- 2043-04-28
AI Technical Summary
In the existing CNC automatic programming methods, engineers need to manually set the processing characteristics and processes of parts. The process is cumbersome and error-prone, and the technical level of engineers is high.
Through the method based on the CAD model color system, the manufacturing characteristics of parts are identified, coded and colored, and the automatic programming system is used for compilation and matching, so as to achieve automatic matching of part process characteristics and processing technology.
Automatic matching of the manufacturing characteristics and processing process characteristics of the CAD model is achieved, programming efficiency and process integration capabilities are improved, and human errors are reduced.
Smart Images

Figure CN116880361B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of numerical control programming, and in particular to a method for identifying part process features based on a CAD model color system. Background Art
[0002] The mechanical manufacturing industry is developing towards intelligent manufacturing. In the field of CNC programming, the upstream part design model is expressed based on design features, and the downstream process judgment and processing model are expressed based on processing features. Feature conversion is required to realize the transformation of parts from design models to processing models. Therefore, if automatic programming is to be achieved, it is necessary to integrate design and manufacturing, that is, CAD / CAM integration.
[0003] After searching, the invention patent number is found: 202211646393.4, and the patent name is: A method, device, terminal equipment and storage medium for automatic compilation of processing programs. In the existing CNC automatic programming method, the CAD model drawing is first identified to identify the processing features of the parts, and then the engineer sets the corresponding processing technology for the identified processing features one by one to realize programming. In the above scheme, the technical level of engineers is very high, the process is cumbersome and prone to errors.
[0004] Therefore, it is necessary to carry out research and development to identify the process characteristics of parts and realize automatic matching of part process characteristics and processing technology, so as to realize automatic programming. Summary of the invention
[0005] The patented technical solution of the present invention is to solve the technical problems pointed out in the prior art. The present invention provides a method for identifying the process characteristics of parts based on the CAD model color system.
[0006] A method for identifying process features of a part based on a CAD model color system comprises the following steps:
[0007] S1: Identify the manufacturing features of the CAD model from the STEP file and calculate the parameters of the features in the geometric model.
[0008] S2: Remove the identified manufacturing features from the geometric model and organize the manufacturing features into feature graphics.
[0009] S3: Use computers to encode manufacturing features, and different manufacturing features will have different encoding information.
[0010] S4: According to the process plan, different coding information is colored in the CAD model color system, and different coding information corresponds to different colors to obtain color number information.
[0011] S5: The color number information of the coloring is transmitted to the automatic programming.
[0012] S6: Automatically compile the received color number information and reversely derive the binary code information
[0013] S7: The derived binary coding information is queried in the feature model library and matched with the process feature library to identify the process features.
[0014] The beneficial effects of the method for identifying part process features based on the CAD model color system according to the present invention are as follows:
[0015] 1. Automatically match the manufacturing features of the CAD model with the processing technology features to achieve automated programming.
[0016] 2. Improved the programming efficiency and process integration capabilities of the workshop. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 The present invention relates to a flow chart of a numerical control automatic programming method based on a CAD model color system.
[0018] Figure 2 This is a schematic diagram of using 8-bit RGB color code to define manufacturing features.
[0019] Figure 3 This is a schematic diagram of using 8-bit encoding of RGB color numbers to define dimensional accuracy.
[0020] Figure 4 This is a schematic diagram of using 8-bit encoding of RGB color numbers to define shape accuracy.
[0021] Figure 5 This is a schematic diagram of using 8-bit encoding of RGB color numbers to define position accuracy.
[0022] Figure 6 This is a schematic diagram of using 8-bit RGB color code to define surface quality.
[0023] Figure 7 This is a schematic diagram of using 8-bit RGB color code to define surface treatment
[0024] Figure 8 This is a schematic diagram of using 8-bit RGB color code to define the detection mark.
[0025] Fig. 9 It is the process of compiling the color number of manufacturing feature process information Implementation
[0026] The technical solution of the present invention is described in detail below to facilitate a better understanding of the technical solution of the present invention.
[0027] A STEP file is a neutral file of the STEP standard that complies with the ISO10303 AP 203 application protocol. It is a text file written in the physical format specified in Chapter 21 of the ISO 10303 standard. The file is mainly generated by three-dimensional modeling of parts through the CAD system, that is, the geometric structure and topological information of the part design shape are accurately and intuitively expressed in the computer system and converted and saved as a STEP file. The AP 203 application protocol is one of the most mature protocols in the STEP standard. Currently, CAD systems such as Pro / E, Auto CAD, and CATIA are widely used.
[0028] refer to Figure 1 , a method for identifying part process features based on CAD model color system: it comprises the following steps:
[0029] S1: Identify the manufacturing features of the CAD model from the STEP file. The manufacturing features are through holes, flat-step through holes, tapered-step flat-bottom holes, etc., and calculate the parameters of the features in the geometric model. The calculated feature parameters refer to the detection size, position, shape accuracy, size, feature category, surface, surface treatment, shape, etc.
[0030] S2: removing the identified manufacturing features from the geometric model, wherein the manufacturing features are detection dimensions, positions, shape accuracy, dimensions, feature categories, surfaces, surface treatments, shapes, etc., and organizing the manufacturing features;
[0031] S3: Using computers to encode manufacturing features, different manufacturing features will have different encoding information;
[0032] S4: According to the process planning, which refers to the processing method of manufacturing features such as flat step light holes, cone step light holes, and cone bottom light holes, different coding information is colored in the CAD model color system, and different coding information corresponds to different colors, thereby obtaining color number information;
[0033] S5: passing the color number information of the coloring to the automatic programming;
[0034] S6: Automatically compile the received color number information and reversely derive the binary code information;
[0035] S7: The derived binary coding information is queried in the feature model library. The feature model library already has the corresponding information of the binary coding. The automatic programming compiles the received color number information to obtain the binary coding information, and then queries the feature library for the features corresponding to the binary coding, and matches it with the process feature library to identify the process features.
[0036] Manufacturing characteristic color code definition standard
[0037] refer to Figure 2 :Computer data storage is in "bytes", data transmission is in "bits", one bit represents a 0 or 1 (i.e. binary), every 8 bits make up a byte, which is the smallest unit of information; Byte data type (byte type) is stored in one byte, which can distinguish 256 numbers, with a value range of 0 to 255; Byte is an unsigned type from 0-255, RGB each has 256 levels of brightness, expressed digitally from 0, 1, 2... to 255, although the highest number is 255, 0 is also one of the values, so there are 256 levels in total; the range of each RGB color value is 0~255, so each color can be completely represented inside the computer with 1 byte = 8 bits.
[0038] Manufacturing characteristic RGB(R) color code definition
[0039] Due to the limited processing features, we define the 8-bit encoding of RGB (R) color numbers: the first two bits are reserved as 1, 1, and the last six bits are used to define the processing features; the number is converted from the encoded binary number to the corresponding decimal number. We select RGB (R) color numbers 192 to 210 to define the feature names, such as 192-light hole, 193-threaded hole, 194-conical hole, etc., as shown in the following table:
[0040] Number Code Feature Name
[0041] 192 1 1 0 0 0 0 0 0 Clearance
[0042] 193 1 1 0 0 0 0 0 1 Through threaded hole
[0043] 194 1 1 0 0 0 0 1 0 Cone through hole
[0044] 195 1 1 0 0 0 0 1 1 Flat bottom aperture
[0045] 196 1 1 0 0 0 1 0 0 Flat bottom threaded hole
[0046] 197 1 1 0 0 0 1 0 1 Cone-bottom aperture
[0047] 198 1 1 0 0 0 1 1 0 Cone bottom threaded hole
[0048] 199 1 1 0 0 0 1 1 1 Flat step aperture
[0049] 200 1 1 0 0 1 0 0 0 Flat step through threaded hole
[0050] 201 1 1 0 0 1 0 0 1 Flat step flat bottom aperture
[0051] 202 1 1 0 0 1 0 1 0 Flat step flat bottom threaded hole
[0052] 203 1 1 0 0 1 0 1 1 Flat step cone bottom aperture
[0053] 204 1 1 0 0 1 1 0 0 Flat stepped cone bottom threaded hole
[0054] 205 1 1 0 0 1 1 0 1 Cone-step aperture
[0055] 206 1 1 0 0 1 1 1 0 Cone-step through threaded hole
[0056] 207 1 1 0 0 1 1 1 1 Cone-step flat bottom aperture
[0057] 208 1 1 0 1 0 0 0 0 Cone-step flat-bottom threaded hole
[0058] 209 1 1 0 1 0 0 0 1 Cone-step cone bottom aperture
[0059] 210 1 1 0 1 0 0 1 0 Cone-step taper bottom threaded hole
[0060] ••• ••• ••• ••• ••• ••• ••• ••• ••• ••• 255 1 1 1 1 1 1 1 1
[0062] Refer to Figure 3: Due to the limitations of processing accuracy and surface quality, we define the 8-bit encoding of the RGB (G) color number: the first two digits are numbered 0 to 3, and the number is converted from the encoded binary number to the corresponding decimal number, which is defined as the dimensional accuracy. The accuracy is divided into 4 levels.
[0063] refer to Figure 4 :The third and fourth digits are numbered from 0 to 3. The number is converted from the coded binary number to the corresponding decimal number, which is defined as the shape accuracy. The accuracy is divided into 4 levels.
[0064] refer to Figure 5 :The fifth and sixth digits are numbered from 0 to 3. The number is converted from the encoded binary number to the corresponding decimal number, which is defined as the position accuracy. The accuracy is divided into 4 levels.
[0065] refer to Figure 6:The seventh and eighth bits are numbered from 0 to 3. The number is converted from the coded binary number to the corresponding decimal number, which is defined as the surface quality. The accuracy is divided into 4 levels.
[0066] refer to Figure 7 :Due to the limited processing methods of surface treatment in industry, the 8-bit encoding of RGB (B) color number is defined: the first four digits are numbered 0 to 15, and the number is converted from the encoded binary number to the corresponding decimal number, which is defined as the surface treatment, such as 15-matte, 14-bluing, and 13-enhanced.
[0067] refer to Figure 8 :Through the 8-bit encoding definition of RGB (B) color number: the last four bits are numbered from 0 to 15, and the number is converted from the encoded binary number to the corresponding decimal number, which is defined as the detection mark; such as 15-size + position + shape + surface, 14-size + position + shape, 13-size + position + surface, etc.
[0068] refer to Fig. 9 : The color number compilation process of manufacturing feature process information, for a manufacturing feature: cone-bottom light hole, the corresponding manufacturing feature RGB (R) color number is 1100110, the size accuracy is IT5, the shape accuracy is IT5, the position accuracy is IT6, the surface quality is Ra3.2, the corresponding manufacturing feature RGB (G) color number is 10010101, the surface is bluing treated, the detection mark is size + shape, the corresponding manufacturing feature RGB (B) color number is 11101010, converted to hexadecimal through computer coding, the color number is #C595EA.
[0069] The beneficial effects of the method for identifying part process features based on the CAD model color system according to the present invention are as follows:
[0070] 1. Automatically match the manufacturing features of the CAD model with the processing technology features to achieve automated programming.
[0071] 2. Improved the programming efficiency and process integration capabilities of the workshop.
[0072] The above are only preferred embodiments of the present invention, and the patent scope of the present invention cannot be limited thereby. Any equivalent process transformation made by using the contents of the specification and drawings of the present invention, or directly or indirectly applied in other related technical fields, are included in the patent protection scope of the present invention.
Claims
1. A method for identifying process features of parts based on a CAD model color system, characterized in that: The steps include: S1: Identify the manufacturing features of the CAD model from the STEP file and calculate the parameters of the features in the geometric model; the manufacturing features are through holes, flat-step through holes, and tapered-step flat-bottom holes; the parameters of the features refer to the detection size, position, shape accuracy, size, feature category, surface treatment, and shape; S2: Remove the identified manufacturing features from the geometric model; S3: Using computers to encode manufacturing features, different manufacturing features will have different encoding information; S4: According to the process planning, different coding information is colored in the CAD model color system, and different coding information corresponds to different colors to obtain color number information; the process planning refers to the processing method of the flat step light hole, the cone step light hole, and the cone bottom light hole manufacturing features; the cone bottom light hole, the corresponding manufacturing feature RGB (R) color number is 1100110, the size accuracy is IT5, the shape accuracy is IT5, the position accuracy is IT6, the surface quality is Ra3.2, and the corresponding manufacturing feature RGB (G) color number is 10010101, the surface is bluing treated, the detection mark is size + shape, and the corresponding manufacturing feature RGB (B) color number is 11101010, which is converted into hexadecimal through computer coding, and the color number is #C595EA; S5: passing the color number information of the coloring to the automatic programming; S6: Automatically compile the received color number information and reversely derive the binary code information; S7: The derived binary coding information is queried in the feature model library and matched with the process feature library to identify the process features.
Citation Information
Patent Citations
Processing program automatic programming method and device, terminal equipment and storage medium
CN115629573A
Data storage method based on RGB (red green blue) color coding
CN103700120A
Intelligent programming method
CN105759724A