A method, device, medium and program for automatic annotation of tire engineering drawings based on CATIA
Through the CATIA software design platform and CAA secondary development, automatic labeling of tire engineering drawings is realized, solving the problem of dimensional position changes when the tire engineering drawing series is expanded, improving the labeling efficiency and standardization degree, and reducing the cost of manual drawing.
Patent Information
- Application Number
- CN202210060825.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-19
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2042-01-19
AI Technical Summary
When the prior art is expanded in the series of tire engineering drawings, the relative position of the drawing size and the labeling object will change, resulting in the need for artificial drag or re-marking, which increases the workload and reduces the labeling efficiency, especially in the complex design of pattern drawings. There are many dimension marks in the medium, and the dimension position needs to be adjusted when expanding, and the repeated work increases, resulting in a long marking time.
Create tire profile, pattern and sidewall parameterized templates through the CATIA software design platform, export CATDrawing engineering drawings, and realize automatic labeling of engineering drawings through CAA secondary development, automatically divide layers according to the color of digital and analog elements, extract and save label sizes Location information, automatically read and adjust the label when the model is updated parameterized to reduce manual intervention.
The efficiency of drawings and drawings has been improved, the labeling of drawings for the same pattern series has been standardized, the cost of manual drawing is reduced, and the efficiency and standardization of the labeling is improved.
Smart Images

Figure CN114462111B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of tires, and in particular to a method, device, medium and program for automatically marking tire engineering drawings based on CATIA. Background Art
[0002] The study of automatic labeling has always been a hot topic in the field of mechanical manufacturing industry. Sun Dongguang et al. proposed the overall framework model and key algorithm of intelligent dimensioning system through analysis and comparison of the demand model, framework model and object model of dimensioning subsystem in three-dimensional parametric feature modeling system; KZ Chen et al. studied the automatic labeling of entity models represented by CSG tree structure and B-Rep data structure, and adopted a method combining expert system and taboo area for automatic layout; the annotation objects of engineering drawings in mechanical industry are not as complicated as tire patterns. Tire pattern drawings are designed parametrically, and the annotation of different pitches cannot directly use the above-mentioned mechanical industry-related automatic labeling methods. And it cannot meet the automatic labeling of contour, sidewall and pattern engineering drawings at the same time. The present invention introduces the automatic labeling method and application when the engineering drawing series is expanded after tire parametric design (also applicable to other industries).
[0003] The Chinese invention patent application (publication number CN110148197A, publication date: 20190820) discloses a method for adaptively adjusting dimension annotations in two-dimensional engineering drawings, the steps of which are: 1) determining the dimension annotations that need to be adjusted; 2) determining the size of the dimension annotation adjustment distance; 3) adjusting the position of the dimension annotations that need to be adjusted. This method effectively solves the problem of interference in the position of dimension annotations in two-dimensional engineering drawings that are quickly generated after variant design, and can effectively help two-dimensional engineering drawings to be quickly and automatically generated, replacing the manual adjustment of dimension annotation positions by designers, shortening the product design cycle, improving product design efficiency, and contributing to the standardization of drawings. This method is universal, and the parametric automated rapid design of two-dimensional engineering drawings based on engineering drawing templates can use this method to automatically adjust the position of dimension annotations in the drawing.
[0004] The existing technology has the following deficiencies: Tire engineering drawings mainly include contour drawings, pattern drawings and sidewall drawings. When the same series and design rules are used, the CATIA software's own parametric design automatic annotation will change the relative position of the drawing size and the annotated object after the series is expanded, requiring manual dragging or re-annotation, and the element layer must also be manually selected and confirmed. The number of dimension annotations for the contour drawing and the sidewall drawing is thirty-four; the number of dimension annotations for the pattern drawing reaches hundreds due to the complexity of the design. Most of the dimension positions need to be adjusted during expansion, and there is a lot of repetitive work. When dozens of product specifications are expanded, the workload increases dozens of times. This increases the time required for annotation and reduces the efficiency of annotation. Summary of the invention
[0005] The purpose of the present invention is: to address the above problems, to propose creating tire contour, pattern and sidewall parametric templates through the CATIA software design platform, and exporting CATDrawing engineering drawings; then to achieve automatic engineering drawing annotation by creating engineering drawing template files and CAA secondary development, and to automatically divide engineering drawing elements into layers according to the colors of digital model elements; to improve the engineering drawing annotation efficiency, and at the same time to standardize the annotation of drawings of the same pattern series, to provide a method, device, medium and program for automatic annotation of tire engineering drawings based on CATIA.
[0006] In order to achieve the above-mentioned purpose, the present invention adopts the following technical solutions:
[0007] A method for automatically marking tire engineering drawings based on CATIA, the method comprising the following steps:
[0008] 1) Use CATIA software design platform to parametrically design tire profile / pattern / sidewall model, and output individual elements for the feature objects that need to be annotated;
[0009] 2) Create projection view files associated with the digital model in the CATIA engineering drawing;
[0010] 3) Annotate the engineering drawing model and classify the annotations;
[0011] 4) Rename the annotations according to the above classification requirements and use them as engineering drawing template files;
[0012] 5) Through CAA secondary development, the color information of the digital model corresponding to the engineering drawing template file and the dimension position information of the engineering drawing template file are extracted, and the dimension placement information is output to an XML file for saving;
[0013] 6) When the model parameterization is updated, the XML location information of different types of annotations is automatically read and re-annotated through CAA secondary development;
[0014] 7) The program automatically creates layers, and according to the digital model color read in step 5), the layers are automatically divided according to the corresponding relationship between color and layer, and the line shape and linearity are automatically set according to the layer type;
[0015] 8) The program automatically saves the engineering drawing after automatic annotation.
[0016] Preferably, in step 3), when classifying the markings, DL is used to represent the horizontal marking, DH is used to represent the vertical marking, and DW is used to represent the parallel direction marking.
[0017] Preferably, in step 5), when extracting the dimension position information of the engineering drawing template file, the dimension position information of the dimension template is recorded by the geometric shape BOX with reference to the point lines and geometric shape BOX of the dimension template, including the following steps:
[0018] 1) Calculate the geometric shape Box in the drawing;
[0019] 2) Calculate the distance between the geometric object and the outline Box, and calculate the distance between the dimension line and the Box;
[0020] 3) Use positive and negative to represent the dimension line inside and outside the box;
[0021] 4) Dimension marking: DH records the left and right distance of the box, DL records the top and bottom distance of the box, and DW records the top and bottom distance of the box;
[0022] 5) Angle and radius annotation: record the annotation quadrant, record the distance from the origin to the Box (horizontal H direction), and record the distance from the annotation line to the Box (horizontal H direction).
[0023] Preferably, in step 6), when the design dimension changes and the digital model is updated, resulting in annotation dimension interference, the program automatically adjusts the dimensions according to different types of annotations, so that the annotation dimensions are automatically optimized within a certain range when they interfere; if they cannot be adjusted to non-interference within the range, they are annotated according to the XML position information without adjustment.
[0024] Preferably, the position of the horizontally marked dimension is only adjusted up and down within a certain range.
[0025] Preferably, the engineering drawing sheet is within the drawing frame. When the drawing exceeds the drawing frame, the program automatically adjusts the scaling so that the entire drawing is in the center of the drawing frame.
[0026] Preferably, in step 8), the program automatically saves the automatically annotated engineering drawing to the same directory.
[0027] In addition, the present invention also discloses a computer device, including a memory, a processor and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the automatic annotation method based on CATIA tire engineering drawings.
[0028] In addition, the present invention also discloses a computer-readable storage medium on which a computer program or instruction is stored. When the computer program or instruction is executed by a processor, the steps of the automatic marking method based on CATIA tire engineering drawings are implemented.
[0029] In addition, the present invention also discloses a computer program product, including a computer program or an instruction, which implements the steps of the automatic marking method based on CATIA tire engineering drawings when executed by a processor.
[0030] The advantages of the method, device, medium and program for automatically marking tire engineering drawings based on CATIA using the above technical solution are:
[0031] Through the CATIA software design platform, parametric templates of tire profiles, patterns, and sidewalls are created, and CATDrawing engineering drawings are exported; then, automatic annotation of engineering drawings is achieved by creating engineering drawing template files and CAA secondary development, and the engineering drawing elements are automatically divided into layers according to the color of the digital model elements; this software development can improve the efficiency of engineering drawing annotation, and at the same time, the annotation of drawings of the same pattern series can be standardized. This automatic annotation method can improve the annotation efficiency, improve the degree of standardization, and reduce the cost of manual drawing. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 This is a flow chart of the automatic annotation method for tire engineering drawings based on CATIA.
[0033] Figure 2 Automatically annotate the process of reading XML for the program.
[0034] Figure 3 It is a schematic diagram of the geometric shape BOX. DETAILED DESCRIPTION
[0035] The specific implementation modes of the present invention are described in detail below with reference to the accompanying drawings.
[0036] Example 1
[0037] like Figure 1 The method for automatically marking tire engineering drawings based on CATIA is shown, and the method comprises the following steps:
[0038] 1) Use CATIA software design platform to parametrically design tire profile / pattern / sidewall model, and output individual elements for the feature objects that need to be annotated;
[0039] 2) Create projection view files associated with the digital model in the CATIA engineering drawing;
[0040] 3) Annotate the engineering drawing model and classify the annotations; for example, DL represents horizontal annotation, DH represents vertical annotation, and DW represents parallel annotation;
[0041] 4) Rename the annotations according to the above classification requirements and use them as engineering drawing template files;
[0042] 5) Through CAA secondary development, the color information of the digital model corresponding to the engineering drawing template file and the dimension position information of the engineering drawing template file are extracted, and the dimension placement information is output to an XML file for saving;
[0043] 6) When the model parameterization is updated, the XML location information of different types of annotations is automatically read and re-annotated through CAA secondary development;
[0044] 7) The program automatically creates layers, and according to the digital model color read in step 5), the layers are automatically divided according to the corresponding relationship between color and layer, and the line shape and linearity are automatically set according to the layer type;
[0045] 8) The program automatically saves the engineering drawing after automatic annotation.
[0046] In step 5), when extracting the dimension position information of the engineering drawing template file, the dimension position information is recorded through the geometric shape BOX with the template points and lines and the geometric shape BOX as reference, including the following steps:
[0047] 1) Calculate the geometric shape Box in the drawing;
[0048] 2) Calculate the distance between the geometric object and the outline Box, and calculate the distance between the dimension line and the Box;
[0049] 3) Use positive and negative to represent the dimension line inside and outside the box;
[0050] 4) Dimension marking: DH records the left and right distance of the box, DL records the top and bottom distance of the box, and DW records the top and bottom distance of the box;
[0051] 5) Angle and radius annotation: record the annotation quadrant, record the distance from the origin to the Box (horizontal H direction), and record the distance from the annotation line to the Box (horizontal H direction).
[0052] In step 6), when the design dimension changes and the digital model is updated, resulting in dimension interference, the program automatically adjusts the dimensions according to different types of annotations, so that the dimension interference is automatically optimized within a certain range; if it cannot be adjusted to non-interference within the range, it is marked according to the XML position information without adjustment. For example, the horizontal dimension position is only adjusted up and down within a certain range.
[0053] The engineering drawing is inside the drawing frame. When the drawing exceeds the drawing frame, the program automatically adjusts the scaling so that the entire drawing is in the center of the drawing frame to ensure the standardization of the engineering drawing.
[0054] In step 8), the program automatically saves the automatically annotated engineering drawing to the same directory for easy retrieval.
[0055] In step 5), the program for extracting the color information of the digital model corresponding to the engineering drawing template file is as follows:
[0056] <!--Correspondence between color and layer --> <colorandlayer> <dobject name="Contourline" chsname="轮廓线" color="白色" R="255" G="255" B="255" Layer="Contourline" LineType="1" / > <dobject name="Auxiliary line" chsname="辅助线" color="蓝色" R="0" G="0" B="255" Layer="Auxiliary line" LineType="1" / > <dobject name="The center line" chsname="中心线" color="红色" R="255" G="0" B="0" Layer="The Center line" LineType="7" / > <dobject name="Stomatal" chsname="气孔" color="青色" R="0" G="255" B="255" Layer="Stomatal" LineType="1" / > <dobject name="Lasers" chsname="镭射线" color="洋红色" R="255" G="0" B="255" Layer="Lasers" LineType="1" / > <dobject name="Sheet steel" chsname="钢片" color="绿色" R="0" G="255" B="0" Layer="Sheet steel" LineType="1" / > <dobject name="Dimension" chsname="标注" color="" R="" G="" B="" Layer="Dimension" LineType="1" / > <dobject name="gridline" chsname="网格线" color="褐色" R="128" G="64" B="64" Layer="gridline" LineType="1" / > < / colorandlayer>
[0057] The present invention creates a tire contour, pattern, and sidewall parametric template through the CATIA software design platform, and exports a CATDrawing engineering drawing; then, through the creation of an engineering drawing template file and CAA secondary development, automatic annotation of the engineering drawing is achieved. According to the color of the digital model elements, the elements of the engineering drawing are automatically divided into layers; the development of this software can improve the annotation efficiency of the engineering drawing, and at the same time standardize the annotation of drawings in the same pattern series. Furthermore, this automatic annotation method improves the annotation efficiency, enhances the standardization level, and reduces the manual drawing cost.
Claims
1. A method for automatic annotation of tire engineering drawings based on CATIA, characterized in that: The method comprises the following steps: 1) Use CATIA software design platform to parametrically design tire profile / pattern / sidewall model, and output individual elements for the feature objects that need to be annotated; 2) Create projection view files associated with the digital model in the CATIA engineering drawing; 3) Annotate the engineering drawing model and classify the annotations; 4) Rename the annotations according to the above classification requirements and use them as engineering drawing template files; 5) Through CAA secondary development, the color information of the digital model corresponding to the engineering drawing template file and the dimension position information of the engineering drawing template file are extracted, and the dimension placement information is output to an XML file for saving; 6) When the model parameterization is updated, the XML location information of different types of annotations is automatically read and re-annotated through CAA secondary development; 7) The program automatically creates layers, and according to the digital model color read in step 5), the layers are automatically divided according to the corresponding relationship between color and layer, and the line shape and linearity are automatically set according to the layer type; 8) The program automatically saves the engineering drawing after automatic annotation.
2. The method for automatically labeling tire engineering drawings based on CATIA according to claim 1, characterized in that: In step 3), when classifying the annotations, DL is used to represent horizontal annotations, DH is used to represent vertical annotations, and DW is used to represent parallel annotations.
3. The method for automatically labeling tire engineering drawings based on CATIA according to claim 1, characterized in that: In step 5), when extracting the dimension position information of the engineering drawing template file, the dimension position information is recorded through the geometric shape BOX with the template points and lines and the geometric shape BOX as reference, including the following steps: 1) Calculate the geometric shape Box in the drawing; 2) Calculate the distance between the geometric object and the outline Box, and calculate the distance between the dimension line and the Box; 3) Use positive and negative to represent the dimension line inside and outside the box; 4) Dimension marking: DH records the left and right distance of the box, DL records the top and bottom distance of the box, and DW records the top and bottom distance of the box; 5) Angle and radius annotation: record the annotation quadrant, record the distance from the origin to the Box, and record the distance from the annotation line to the Box.
4. The method for automatically labeling tire engineering drawings based on CATIA according to claim 1, characterized in that: In step 6), when the design dimension changes and the digital model is updated, resulting in dimension interference, the program automatically adjusts the dimensions according to the different types of annotations, so that the dimension interference is automatically optimized within a certain range; if it cannot be adjusted to non-interference within the range, it is annotated according to the XML position information without adjustment.
5. The method for automatically labeling tire engineering drawings based on CATIA according to claim 4, characterized in that: The horizontal dimension position can only be adjusted up and down within a certain range.
6. The method for automatically labeling tire engineering drawings based on CATIA according to claim 1, characterized in that: The engineering drawing sheet is inside the drawing frame. When the drawing exceeds the drawing frame, the program automatically adjusts the scaling so that the entire drawing is in the center of the drawing frame.
7. The method for automatically labeling tire engineering drawings based on CATIA according to claim 1, characterized in that: In step 8), the program automatically saves the automatically annotated engineering drawing to the same directory.
8. A computer device comprising a memory, a processor and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the steps of the method according to any one of claims 1 to 7.
9. A computer-readable storage medium having a computer program or instruction stored thereon, characterized in that: When the computer program or instruction is executed by a processor, the steps of the method described in any one of claims 1 to 7 are implemented.
10. A computer program product comprising a computer program or instructions, characterized in that When the computer program or instruction is executed by a processor, the steps of the method described in any one of claims 1 to 7 are implemented.
Citation Information
Cited By
A data-driven based two-dimensional tire pattern diagram full-automatic generation method and system
CN122693306A
A data-driven based two-dimensional tire pattern diagram full-automatic generation method and system
CN122693306B
A method, system, readable storage medium and program product for automatically extending a tire sidewall pattern
CN123141182A
