A method for generating processing description content based on 3D CAD model
Through the process description content generation method based on the 3D CAD model, the template database and machine learning technology are used to automatically generate process description content, which solves the problems of excessive repetitive work and lack of consistency in the process design of machined products, and improves the compilation efficiency and standardization.
Patent Information
- Application Number
- CN202411642056.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-18
- Publication Date
- 2025-10-03
- Estimated Expiration
- 2044-11-18
AI Technical Summary
In the existing technology of process design of machined products, the process description content involves a lot of repetitive work, the compilation efficiency is low, and there is a lack of standardization and consistency when different personnel compile it.
Based on the 3D CAD model, a processing technology description content template database and a regional vector database are established. Through machine learning and image recognition technology, process description content is automatically generated to improve the efficiency and standardization of process procedure compilation.
It achieves efficient compilation of process procedures, improves the standardization and consistency of process description content, and reduces repetitive work.
Smart Images

Figure CN119668199B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of digital manufacturing technology, and in particular relates to a method for generating processing technology description content based on a three-dimensional CAD model. Background Art
[0002] Currently, many machined products utilize 3D design and manufacturing technologies. In the process design phase, technologies and approaches such as 3D CAD model information extraction, model information reuse, and machine learning have laid the foundation for applying new approaches and methods to process design.
[0003] In the process of process design for machined products based on 3D CAD models, the main tasks include CNC machining program design, preparation of machining process regulations, etc. Under normal circumstances, the preparation of machining process regulations involves many aspects such as basic information of the regulations, process nodes, step nodes, process descriptions, etc., especially the process description content generally accounts for a large proportion. Similar regulations or processing methods also have similarities in the textual expression of the process description content, or there are only some differences in the specific processing and index values. In the actual process of procedure preparation, too much repetitive work is prone to occur, which has a relatively large impact on work efficiency. In addition, since the process description content is mainly expressed in text, when the same or similar process description content is prepared by different personnel, it is also easy to have problems such as lack of standardization and consistency. Summary of the Invention
[0004] The technical problem solved by the present invention is: to overcome the shortcomings of the existing technology, provide a method for generating processing technology description content based on a three-dimensional CAD model, improve the efficiency of process specification compilation, and improve the standardization and consistency of process description content of process specifications.
[0005] The objectives of the present invention are achieved through the following technical solutions: a method for generating processing technology description content based on a 3D CAD model, comprising: establishing a processing technology description content template database; establishing a 3D CAD model processing area vector database based on the processing technology description content template database; establishing a 3D CAD model view according to the process and step granularity of the preset 3D CAD model, and allocating the 3D CAD model views to the dimensioning requirements that need to be processed and achieved according to the process and step to form a process and step dimensioning view set; based on the process and step dimensioning view set, the processing technology description content template database and the 3D CAD model processing area vector database, generating the process and step process description content results by extracting model information and capturing images of the view dimensioning associated areas.
[0006] In the above-mentioned method for generating processing description content based on a three-dimensional CAD model, establishing a processing description content template database includes: designing a processing description content template data table; extracting the work step content of the existing procedure according to the granularity of the processing process procedure step, and generating a process description content text data set; applying regular expressions to process the process description content text data set to obtain a process description content template data set; filling the process description content template data set into the process description content template data table to obtain a processing process description content template database.
[0007] In the above-mentioned method for generating processing technology description content based on a three-dimensional CAD model, designing a processing technology description content template data table includes: designing a processing technology description content template data table according to two fields: ID and process description content.
[0008] In the above-mentioned method for generating processing description content based on a three-dimensional CAD model, the ID field is generated and filled in an integer self-incrementing manner.
[0009] In the above-mentioned method for generating processing technology description content based on a three-dimensional CAD model, establishing a three-dimensional CAD model processing area vector database according to the processing technology description content template database includes: based on each data item of the processing technology description content template database, selecting one or more three-dimensional models related to the process description content template, intercepting the processing area direction corresponding to the process description content template, and forming a processing area image data set; vectorizing the processing area image data set to form a processing area vector data set; establishing a processing area vector data table; filling the processing area vector data set into the processing area vector data table to form a processing area vector database.
[0010] In the above-mentioned method for generating processing description content based on a three-dimensional CAD model, establishing a processing area vector data table includes designing and adding the processing area vector data table in the form of two fields: ID and area image vector.
[0011] In the above-mentioned method for generating processing description content based on a three-dimensional CAD model, the ID field value of the processing area vector database is consistent with the ID field value of the process description content template database.
[0012] In the above-mentioned method for generating processing technology description content based on 3D CAD model, a 3D CAD model view is established according to the granularity of process and step for the preset 3D CAD model, and the dimensional annotation requirements that need to be processed and achieved are allocated to the 3D CAD model view according to the process and step to form a process and step dimension annotation view set, including: establishing a processing technology description content generation module based on the 3D model software tool; loading and starting the processing technology description content generation module for the preset 3D model, and establishing a 3D model view according to the process node and step name; on the basis of the current 3D step model view, the processing dimension annotation is allocated in sequence according to the consumable dimension annotation allocation method to form a step dimension annotation view set.
[0013] In the above-mentioned method for generating processing description content based on a three-dimensional CAD model, based on the process and step dimensioning view set, the processing process description content template database and the three-dimensional model processing area vector database, the process and step process description content results are generated by extracting model information and capturing images of the view dimensioning-associated area, including: traversing the process step dimensioning view set, identifying the view annotation area by image recognition, and forming a process step area image dataset by image capture; traversing the process step area image dataset, and forming a process step area image vector dataset by image vector conversion based on a machine learning model; traversing the process step area image vector dataset, querying the processing area vector database according to the cosine similarity method, obtaining the most similar data according to a set threshold, and forming a processing area similarity dataset; traversing the process step dimensioning view set, identifying and extracting dimension expressions and dimension values, and converting them into dimension templates to form a dimension template value dataset; matching the processing process description content template database according to the dimension templates of the dimension template value dataset and the values of the processing area similarity dataset to obtain the best matching process description content template; filling the dimension values of the dimension template value dataset into the best matching process description content template to generate the process and step process description content results.
[0014] In the above-mentioned method for generating processing description content based on a three-dimensional CAD model, an image-to-quantum machine learning model is applied to vectorize the processing area image dataset to form a processing area vector dataset.
[0015] Compared with the prior art, the present invention has the following beneficial effects:
[0016] The present invention is based on a three-dimensional CAD model. By allocating the dimensioning requirements that need to be processed and achieved according to the process steps, a process step dimensioning view is formed. Then, based on the view, model information is extracted and the image of the view dimensioning-related area is captured to realize the automatic generation of the process step process description content, thereby improving the efficiency of process procedure compilation and improving the standardization and consistency of the process description content of the process procedure. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Various other advantages and benefits will become apparent to those skilled in the art upon reading the detailed description of the preferred embodiment below. The accompanying drawings are for illustration purposes only and are not to be considered as limiting the present invention. The same reference symbols are used throughout the drawings to represent the same components. In the drawings:
[0018] Figure 1 It is a flow chart of a method for generating processing description content based on a three-dimensional CAD model provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0019] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art. It should be noted that, unless there is a conflict, the embodiments of the present disclosure and the features described in the embodiments can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0020] After a certain amount of 3D CAD models and model-based processing procedure data has accumulated, it is possible to use the correlation between 3D CAD models and process procedures and process description contents. By extracting model data, establishing corresponding generation models and software tools, and reusing 3D CAD model data and process description content knowledge data, the automatic generation of processing procedure description contents can be achieved, replacing manual compilation work.
[0021] Figure 1 Flowchart of the method for generating processing description content based on a three-dimensional CAD model provided by an embodiment of the present invention. Figure 1 As shown, the method includes the following steps: establishing a processing technology description content template database; establishing a 3D CAD model processing area vector database based on the processing technology description content template database; establishing a 3D CAD model view according to the process and step granularity of the preset 3D CAD model, and allocating the 3D CAD model view to the dimensioning requirements that need to be processed and achieved according to the process and step to form a process and step dimensioning view set (c.3); based on the process and step dimensioning view set (c.3), the processing technology description content template database and the 3D CAD model processing area vector database, the process and step process description content results are generated by extracting model information and capturing images of the view dimensioning associated area.
[0022] Establishing a processing technology description content template database includes: designing a processing technology description content template data table; extracting the work step content of the existing processing technology specification according to the work step granularity of the processing technology specification to generate a process description content text data set (a.2); applying regular expressions to process the process description content text data set to obtain a process description content template data set (a.3); and filling the process description content template data set (a.3) into the process description content template data table (a.1) to obtain a processing technology description content template database (a.4).
[0023] The design of the processing technology description content template data table includes: designing the processing technology description content template data table according to the two fields of ID and process description content.
[0024] The ID field is generated and filled in an auto-incrementing integer.
[0025] Establishing a three-dimensional CAD model processing area vector database based on the processing process description content template database includes: based on each data item of the processing process description content template database (a.4), selecting one or more three-dimensional CAD models related to the process description content template, intercepting the processing area direction corresponding to the process description content template, and forming a processing area image dataset (b.1); applying an image-to-vector machine learning model to vectorize the processing area image dataset (b.1) to form a processing area vector dataset (b.2); establishing a processing area vector data table (b.3); and filling the processing area vector dataset (b.2) into the processing area vector data table (b.3) to form a processing area vector database (b.4).
[0026] Establishing the processing area vector data table (b.3) includes designing the processing area vector data table according to the two fields of ID and area image vector.
[0027] The ID field value of the processing area vector database (b.4) is consistent with the ID field value of the process description content template database (a.4).
[0028] Establish a 3D CAD model view according to the granularity of the process and work step of the preset 3D CAD model, and assign the dimensioning requirements that need to be processed and achieved to the 3D CAD model view according to the process and work step to form a process and work step dimensioning view set (c.3), including: establishing a processing technology description content generation module (c.1) based on the 3D CAD model software tool; loading and starting the processing technology description content generation module (c.1) for the preset 3D CAD model, and establishing a 3D CAD model view (c.2) according to the process node and the work step name; on the basis of the current 3D work step CAD model view (c.2), assigning the processing dimensioning in sequence according to the consumable dimensioning allocation method to form a work step dimensioning view set (c.3).
[0029] Based on the process step dimensioning view set (c.3), the processing technology description content template database, and the 3D CAD model processing area vector database, the process step process description content is generated by extracting model information and capturing images of the associated area of the view dimensioning. The results include:
[0030] Traverse the work step dimension annotation view set (c.3), identify the view annotation area by image recognition, and form a work step area image dataset by image capture (c.4);
[0031] Traverse the work step area image dataset (c.4) and generate a work step area image vector dataset (c.5) through image vector conversion based on a machine learning model;
[0032] Traverse the process step area image vector dataset (c.5), query the processing area vector database (b.4) according to the cosine similarity method, obtain the most similar data according to the set threshold, and form a processing area similarity dataset;
[0033] Traverse the dimension annotation view set of the current work step (c.3), identify and extract the dimension expression method and dimension value, convert them into dimension templates, and form a dimension template value data set (c.7);
[0034] According to the size templates in the size template numerical data set (c.7) and the ID values of the processing area similarity data set (c.6), the processing process description content template database (a.4) is matched to obtain the best matching process description content template (c.8);
[0035] Fill the dimension values of the dimension template numerical data set (c.7) into the best matching process description content template (c.8) to generate the process description content results of the process step.
[0036] Establish a template database for processing technology description content:
[0037] Processing procedures are generally composed of processing steps and process sequence. When building a processing procedure description content template database and forming a reusable processing procedure description content template, the first step is to extract information from existing processing procedure specifications according to the process step granularity. Then, according to certain rules, the specific values in the process description text are replaced and processed and established. For example, for the following process step content description:
[0038] Step 1: Turning the outer circle Length 18±0.5.
[0039] By applying regular expressions, the parts of the process description text related to specific processing values are parsed and replaced with corresponding words and symbols to establish and form the following process description content template:
[0040] Step 1: Turn the outer circle Φ{d}{+,-}, length {d}{+,-}.
[0041] The process description content template is saved in a database table in the form of a text string, with a self-increasing integer serial number as a unique ID, to form a process description content template database.
[0042] Establish a 3D CAD model processing area vector database:
[0043] Establishing a 3D CAD model processing area vector database primarily involves associating 3D model processing areas with processing technology description templates. Each processing technology description template item can correspond to one or more 3D CAD model processing areas. When establishing 3D CAD model processing areas, screenshots are taken from the 3D CAD model view to generate processing area image data.
[0044] By converting the processing area image data into vector data, the similarity between the processing areas can be calculated and given in a cosine similarity manner, so that similarity retrieval can be achieved in the processing area vector database for the processing area of the current model.
[0045] The processing area vector database contains three fields: ID, area image data, and area image vector, among which the ID field maintains the corresponding relationship with the processing content description template database.
[0046] Application process description content generation tool:
[0047] The process description content generation tool has the function of opening the current 3D CAD model, establishing 3D CAD model views according to the granularity of processes and steps, and distributing the processing dimension annotations on the model in each process and step view in a consumable manner.
[0048] After the process and step views are completed, the function of further extracting and analyzing the information of the current view dimension annotation is available to generate a text string composed of expression symbols and characteristic values. For example:
[0049] Expression symbol: {d}{+,-}, characteristic value: 2, +0.2, 0
[0050] Expression symbol: Φ{d}{+,-}, characteristic value: 34.5, 0.1, 0.1
[0051] Expression symbol: Φ{d}{+,-}, characteristic value: 16, 0.1, 0.1
[0052] After extracting and parsing the view dimension information, image recognition is used to capture the area of the model view associated with the dimension. By vectorizing the captured area image, a similar search is performed against the 3D CAD model machining area vector database to obtain the IDs of existing, similar machining areas.
[0053] Based on the acquired existing processing area ID, a search is performed in the processing technology description content template database to obtain a corresponding processing technology description content template data set.
[0054] For the expression symbols and feature values identified in the current work step view, the optimal process description content template is obtained by matching them in the acquired processing technology description content template data set.
[0055] The feature values identified in the work step view are filled in the template to automatically generate the process description content text at the work step granularity.
[0056] This embodiment is based on a three-dimensional CAD model. By allocating three-dimensional dimension annotations and extracting model and view information according to the granularity of processes and steps, a process description content template database and a processing area vector database are established. Through methods and means such as similarity matching and template filling, the automatic generation of processing process description content based on the three-dimensional CAD model is achieved.
[0057] The specific implementation steps are:
[0058] (1) According to the two fields of ID and process description content, design the processing technology description content template data table (a.1).
[0059] Serial number Field Name Field Type 1 ID text 2 Process description content text
[0060] The "ID" field is generated and filled in an integer auto-increment manner.
[0061] (2) According to the granularity of the processing steps in the processing procedures, the process step contents of the existing procedures are extracted to generate a text dataset of the process description content (a.2).
[0062] (3) Traverse the process description text data set (a.2), apply regular expressions, and replace the specific values with the corresponding numerical codes, for example Replace with Then, duplicate data items are removed to form a process description content template data set (a.3).
[0063] (4) Save the process description content template data set (a.3) to the process description content template data table (a.1) and establish a process description content template database (a.4).
[0064] (5) Based on each data item in the process description content template database (a.4), one or more three-dimensional CAD models related to the process description content template are selected, and the processing area direction corresponding to the process description content template is intercepted to form a processing area image dataset (b.1).
[0065] (6) Apply the image-to-vector machine learning model to vectorize the processing area image dataset (b.1) to form a processing area vector dataset (b.2).
[0066] (7) The processing area vector data set (b.2) is saved to the processing area vector data table (b.3) to form a processing area vector database (b.4), in which the ID field value is consistent with the ID field value of the process description content template database (a.4).
[0067] Serial number Field Name Field Type 1 ID text 2 Region Image Vector text
[0068] (8) Based on the 3D CAD model software tool, a processing technology description content generation module (c.1) is established through secondary development.
[0069] (9) Use 3D CAD model software tools to open the 3D CAD model used to generate processing technology description content.
[0070] (10) For the opened 3D CAD model for generating the processing technology description content, load and start the processing technology description content generation module (c.1), and establish the 3D CAD model view (c.2) (3D CAD model view) of the process step according to the process step name.
[0071] (11) Based on the current three-dimensional work step CAD model view (c.2), the corresponding processing dimension annotations are assigned in sequence according to the consumable dimension annotation allocation method to form a work step dimension annotation view set (c.3).
[0072] (12) Traverse the work step dimension annotation view set (c.3), identify the view annotation area by image recognition, and form a work step area image data set (c.4) by image capture.
[0073] (13) Traverse the work step area image dataset (c.4) and form a work step area image vector dataset (c.5) through image vector conversion based on the machine learning model.
[0074] (14) Traverse the process step area image vector dataset (c.5), query the processing area vector database (b.4) according to the cosine similarity method, obtain the most similar data according to the set threshold, and form the processing area similarity dataset (c.6).
[0075] (15) Traverse the current CAD model step dimension annotation view data set (c.3), identify and extract the dimension expression method ( R, etc.), size values, and convert them into size templates, e.g. Form a size template numerical data set (c.7).
[0076] (16) Apply the size template of the size template numerical data set (c.7) and the ID value of the processing area similarity data set (c.6) to match the process description content template database (a.4) to obtain the best matching process description content template (c.8).
[0077] (17) Apply the dimension values of the dimension type numerical data set (c.7) and the best matching process description content template (c.8), and generate the process description content result by filling the dimension data into the template.
[0078] This embodiment establishes a database of processing technology description content templates and a database of processing area vectors for 3D CAD models to form the data foundation for generating processing technology description content. This embodiment applies a consumable 3D CAD model dimensioning assignment method to simplify the construction of relevant processing area vector data. This embodiment uses vector retrieval and process description content template filling to achieve automatic generation of processing technology description content. Based on the 3D CAD model, this embodiment assigns the required processing and dimensioning requirements according to the process steps to form process and step dimensioning views. Then, based on the views, model information is extracted and images of the view dimensioning-related areas are captured to achieve automatic generation of process and step description content, thereby improving the efficiency of process specification compilation and enhancing the standardization and consistency of process description content.
[0079] Although the present invention has been disclosed above in terms of preferred embodiments, it is not intended to limit the present invention. Any person skilled in the art may make possible changes and modifications to the technical solutions of the present invention by using the methods and technical contents disclosed above without departing from the spirit and scope of the present invention. Therefore, any simple modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solutions of the present invention shall fall within the scope of protection of the technical solutions of the present invention.
Claims
1. A method for generating processing description content based on a 3D CAD model, characterized in that include: Establish a template database for processing technology description content; Establish a 3D CAD model processing area vector database based on the processing technology description content template database; Create 3D CAD model views based on the granularity of processes and steps for the preset 3D CAD model, and assign the dimensional annotation requirements that need to be processed and achieved to the 3D CAD model views based on the processes and steps to form a process and step dimensioning view set; Based on the process step dimensioning view set, the processing technology description content template database and the 3D CAD model processing area vector database, the process step process description content results are generated by extracting model information and capturing images of the associated area of the view dimensioning.
2. The method for generating processing description content based on a three-dimensional CAD model according to claim 1, characterized in that: Establishing a processing technology description content template database includes: Design a template data sheet for processing technology description content; According to the granularity of the processing steps, the process step content of the existing process step is extracted to generate a text dataset of the process description content; Applying regular expressions, the process description content text dataset is processed to obtain the process description content template dataset; Fill the process description content template data set into the process description content template data table to obtain the processing process description content template database.
3. The method for generating processing description content based on a three-dimensional CAD model according to claim 2, characterized in that: The design of the processing technology description content template data table includes: designing the processing technology description content template data table according to the two fields of ID and process description content.
4. The method for generating processing description content based on a three-dimensional CAD model according to claim 3, wherein: The ID field is generated and filled in an auto-incrementing integer.
5. The method for generating processing description content based on a three-dimensional CAD model according to claim 1, wherein: The 3D CAD model processing area vector database is established based on the processing technology description content template database, including: Based on each data item in the processing technology description content template database, one or more three-dimensional models related to the processing technology description content template are selected, and the processing area direction corresponding to the processing technology description content template is intercepted to form a processing area image data set; Vectorizing the processing area image data set to form a processing area vector data set; Establish a processing area vector data table; Fill the processing area vector data set into the processing area vector data table to form a processing area vector database.
6. The method for generating processing description content based on a three-dimensional CAD model according to claim 5, characterized in that: Establishing the processing area vector data table includes designing the processing area vector data table according to two fields: ID and area image vector.
7. The method for generating processing description content based on a three-dimensional CAD model according to claim 5, characterized in that: The ID field value of the processing area vector database is consistent with the ID field value of the process description content template database.
8. The method for generating processing description content based on a three-dimensional CAD model according to claim 1, wherein: Create 3D CAD model views based on the process and step granularity of the preset 3D CAD model, and assign the dimensional annotation requirements that need to be processed and achieved to the 3D CAD model views according to the process and step, forming a process and step dimensioning view set including: Based on 3D model software tools, establish a processing technology description content generation module; For the preset 3D model, load and start the processing technology description content generation module, and create a 3D model view according to the process node and step name; Based on the current 3D work step model view, the processing dimensions are allocated in sequence according to the consumable dimension allocation method to form a work step dimension view set.
9. The method for generating processing description content based on a three-dimensional CAD model according to claim 1, wherein: Based on the process step dimensioning view set, the processing technology description content template database and the 3D model processing area vector database, the process step process description content is generated by extracting model information and capturing the image of the associated area of the view dimensioning. The results include: Traverse the work step dimension annotation view set, identify the view annotation area by image recognition, and form a work step area image dataset by image interception; Traverse the work step area image dataset and form a work step area image vector dataset through image vector conversion based on the machine learning model; Traverse the process step area image vector dataset, query the processing area vector database according to the cosine similarity method, obtain the most similar data according to the set threshold, and form a processing area similarity dataset; Traverse the dimension annotation view set of the current work step, identify and extract the dimension expression method and dimension value, convert them into dimension templates, and form a dimension template value data set; According to the size template of the size template numerical data set and the value of the processing area similar data set, the processing process description content template database is matched to obtain the best matching process description content template; Fill the dimension values of the dimension template numerical data set into the best matching process description content template to generate the process description content result of the process step.
10. The method for generating processing description content based on a three-dimensional CAD model according to claim 5, characterized in that: The image-to-vector machine learning model is applied to vectorize the processing area image dataset to form a processing area vector dataset.
Citation Information
Patent Citations
Data processing method and equipment automatically generated by part milling process and storage medium
CN117583653A
Artificial intelligence-based image description generation method and apparatus, device, and medium
WO2023134073A1