CN115510514A - Batch creation custom labeling method based on CATIA V6 engineering drawing - Google Patents
Batch creation custom labeling method based on CATIA V6 engineering drawing Download PDFInfo
- Publication number
- CN115510514A CN115510514A CN202210852189.1A CN202210852189A CN115510514A CN 115510514 A CN115510514 A CN 115510514A CN 202210852189 A CN202210852189 A CN 202210852189A CN 115510514 A CN115510514 A CN 115510514A
- Authority
- CN
- China
- Prior art keywords
- custom
- labeling
- catia
- label
- method based
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/10—Geometric CAD
- G06F30/12—Geometric CAD characterised by design entry means specially adapted for CAD, e.g. graphical user interfaces [GUI] specially adapted for CAD
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2111/00—Details relating to CAD techniques
- G06F2111/20—Configuration CAD, e.g. designing by assembling or positioning modules selected from libraries of predesigned modules
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Geometry (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Computational Mathematics (AREA)
- Architecture (AREA)
- Mathematical Analysis (AREA)
- Mathematical Optimization (AREA)
- Pure & Applied Mathematics (AREA)
- Computer Hardware Design (AREA)
- Evolutionary Computation (AREA)
- General Engineering & Computer Science (AREA)
- Processing Or Creating Images (AREA)
Abstract
The invention provides a batch creation custom labeling method based on CATIA V6 engineering drawings, which is characterized in that a custom labeling template library is created by using a Lable function of a CATIA V6 engineering drawing module, and then the batch creation of custom labeling is realized by adopting an EKL secondary development program. The invention realizes the batch creation of the custom label of the engineering drawing, has simple, convenient and quick operation and greatly improves the efficiency. Avoid repetitive labor, reduce the waste of human resources. The problems of marking errors, few marks, missing marks, repeated marks and the like caused by manual marking are avoided; the invention realizes the customization and standardization of various types of labels, and the innovative method and the program can quickly cope with the requirement change of enterprises; the invention ensures the accuracy of the marking information and the marking style and saves the time for the user to manually create and fill in the content; the invention realizes the automatic updating of the engineering drawing, reduces the heavy checking and modifying work brought by model change and ensures the quality of the drawing.
Description
Technical Field
The invention relates to an engineering icon annotation method, in particular to a batch creation custom annotation method based on CATIA V6 engineering drawings.
Background
The CATIA V6 is CAD/CAE/CAM integrated software released by Dasuo corporation, and is widely applied in aerospace, automobile manufacturing, ship building, machinery manufacturing, electronic/electric appliances, mechanical design and consumer goods industries. The EKL is native embedded script language of CATIA V6 platform. The use is very flexible and convenient, and the learning cost is relatively low. The user can not only operate through Knowledge engineering tools such as formulas, rules, checks, design tables, knowledge engineering arrays, behaviors and the like which are used conventionally, but also call a large number of Knowledge packets packaged in the Knowledge Package, and the efficiency of design and development can be greatly improved. The CATIA V6 engineering drawing module (Drafting) allows designers to obtain two-dimensional engineering drawings that are fully related to three-dimensional solid models. Native functionality of the CATIA V6 provides simple dimensioning (length, radius, angle, etc.), textbox labeling (which may be custom text content, or may be associated with some attribute), tolerance labeling, and notation labeling.
The labels used in the engineering drawing are a set of reusable geometric figures and labels. In CATIA V6, a 2D part reference (2D Component) or other tag may be used to create a tag template, which is then reused to create the required number of tag instances. After the label instance is created, there is no link between the label instance and the label template. Thus, modifications made to the tag template properties or annotation properties in the tag template are not reflected in the tag instance at the time of creation of the tag instance.
The ship design engineering drawing is taken as an embodiment, and a large number of labels needing to be customized exist in the drawing, as shown in fig. 1. Currently, two methods are commonly used to create such annotations:
the first method comprises the following steps: the label is created in a non-label (label) form, and a text box label, a sketch tool and a combination form are required to be used, so that a great deal of operation time is consumed for designers.
The second method comprises the following steps: the label is created in the form of label (Lable), so that a designer needs to judge the type of a pattern to be labeled firstly, then selects a matched label template from a label (Lable) library and instantiates the label template in an engineering drawing, and finally endows correct labeling content in the instantiated label.
The second method has certain efficiency compared with the first method, but manual operation is still required, and the drawing efficiency is very low due to a large number of repeated operations. It should be noted that the manual labeling method is prone to problems of labeling error, label loss, label missing, and repeated labeling, and thus the design quality is affected. In addition, if the marked content is changed, the marked content cannot be updated in time.
The technical contents disclosed in the prior art patents, such as patent application publication No. CN 111696174A, patent application publication No. CN 114398507A, patent application publication No. CN 114462111A, etc., include: (1) a custom annotation style target that is not in line with the present application; (2) not applicable to ship design engineering drawing examples; (3) failure to implement in CATIA V6.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: (1) The existing engineering drawing marking method needs personnel to judge a custom marking style; (2) The marking information of the existing engineering icon marking method needs to be manually filled; (3) In the existing engineering icon annotation method, manual updating is needed after design change; (4) The native functionality of CATIA V6 does not enable batch custom labeling.
In order to solve the technical problems, the technical scheme of the invention provides a batch creation custom labeling method based on CATIA V6 engineering drawings, which is characterized in that a custom labeling template library is created by using a label (Lable) function of a CATIA V6 engineering drawing module, and then the batch creation of custom labeling is realized by adopting an EKL secondary development program, and the method specifically comprises the following steps:
s1, configuring a complete Lable custom labeling template library;
s2, completing three-dimensional modeling by adopting a CATIA V6 platform;
s3, creating a projection view related to the three-dimensional model;
and S4, creating tag instances in batch by using the tag templates in the Lable custom annotation template library configured in the step S1 through an EKL secondary development program to form custom annotations of the projection view.
Preferably, in the step S1, the lab le custom labeling template library is an engineering drawing total node in the CATIA V6.
Preferably, in step S1, according to all the custom labeling styles, a template of the custom style is created in the engineering drawing master node by using a 2D part reference, and after the creation of the 2D part reference is completed, a label template is created by using a label function.
Preferably, in step S4, after the tag instance is created, there is no link between the tag instance and the tag template, and the modification made to the tag template property or the label property in the tag template is not reflected in the tag instance.
Preferably, step S4 is followed by:
and S5, after the design is changed, running an EKL secondary development program to update the custom label, avoiding repeated labels, creating a new label for a newly added primitive, and updating the content of the text box for the existing label.
Preferably, the implementation of the EKL secondary development program comprises the following steps:
step 401, starting an EKL secondary development program;
step 402, traversing all primitives in a projection view;
step 403, tracing the three-dimensional members in the associated three-dimensional model from the graphic primitives;
step 404, reading standard information to be marked of the three-dimensional component according to the type of the three-dimensional component and by combining with a marking rule;
step 405, if the current primitive has the label information, performing an updating operation, and then entering step 408; otherwise, entering step 406, and newly building a custom label;
step 406, creating a new label;
step 407, filling out the marked content;
and step 408, ending the program.
Preferably, in step 404, the type of the three-dimensional member is obtained through type conversion.
Preferably, in step 405, an ID parameter with a unique ID value and a custom label is embedded in the three-dimensional component, the EKL secondary development program reads the ID parameter value, if the current primitive of the current projection view has the custom label of the ID value, it indicates that the current primitive has been labeled, otherwise, it indicates that the current primitive does not have label information.
Preferably, in step 406, instantiating a corresponding lab-defined labeling template at a specified drawing position according to the three-dimensional component type and the labeling rule, where the lab-defined labeling template is referred to from the lab-defined labeling template library in step S1.
Preferably, in step 407, filling out the labeling content in the corresponding format according to the labeling rule in the text box of the Lable custom labeling template.
Compared with the prior art, the invention has the following beneficial effects:
a) The invention realizes the batch creation of the custom labels of the engineering drawings, has simple, convenient and quick operation and greatly improves the efficiency. Avoid repetitive labor, reduce the waste of human resources. And the problems of marking errors, few marks, missing marks, repeated marks and the like caused by manual marking are avoided.
B) The invention realizes the customization and standardization of various labeling styles based on the label (Lable) function, and the innovative method and the program can rapidly cope with the change of enterprise requirements.
C) The invention automatically reads the three-dimensional component type and information through a program, and incorporates the labeling rule, thereby ensuring the accuracy of the labeling information and the labeling style and saving the time for a user to manually create and fill in the content.
D) The invention realizes the automatic updating of the engineering drawing, reduces the heavy checking and modifying work brought by model change and ensures the quality of the drawing.
Drawings
FIG. 1 illustrates that there are a large number of labels in a ship design engineering drawing that need to be customized;
FIG. 2 is a flow chart of a batch creation custom labeling method based on CATIA V6 engineering drawings;
FIG. 3 is a flowchart of the EKL secondary development procedure;
FIG. 4 illustrates a Lable custom template;
FIG. 5 illustrates a three-dimensional model after three-dimensional modeling is completed using the CATIA V6 platform;
FIG. 6 illustrates a projection view associated with FIG. 5;
FIG. 7 illustrates the labeling results;
Detailed Description
The sizes, proportions and the like shown in the drawings in the specification are only schematic and are used for matching with the contents described in the specification, and are not used for limiting the implementation conditions of the invention and not influencing the efficacy of the invention. The positional relationships such as "upper", "lower", "inner" and "outer" in the present specification are for convenience of description only and are not intended to limit the implementable scope of the present invention, and variations in the relative relationships thereof are considered to be within the implementable scope of the present invention without substantial changes in the technical contents.
The invention discloses a batch creation custom labeling method based on CATIA V6 engineering drawing, which uses Lable function of CATIA V6 engineering drawing module to create custom labeling template base, and then uses EKL secondary development program to realize batch creation of custom labeling. The present embodiment further describes the present invention by taking the customized labeling of the ship design engineering drawings created in batch as an example.
As shown in fig. 2, the method disclosed in this embodiment includes the following steps:
s1, configuring a complete Lable custom labeling template library, and further comprising the following steps of:
step 101, the Lable custom labeling template library is an engineering Drawing master node (Drawing) in the CATIA V6, and according to all custom labeling styles, a template of the custom style is created in the engineering Drawing master node by using a 2D Component reference (2D Component), as shown in FIG. 4, taking a ship T-shaped section labeling template as an example, and the label is composed of two text boxes and a sketch line segment.
Step 102, after the 2D part Reference is created, a label template (label Reference) is created by using a label (label) function, and then provided to the EKL secondary development program for reuse to create a required number of label instances (label Instance). After the tag instance is created, there are no more links to the tag template. Thus, modifications made to the tag template properties or the annotation properties in the tag template are not reflected in the tag instance.
S2, completing three-dimensional modeling by using a CATIA V6 platform, as shown in fig. 5, a three-dimensional model of a certain section of a ship is created in this embodiment, each component of the three-dimensional model needs to include all pieces of labeling information, where the labeling information includes: attribute information, size information, type information, material information, and the like.
And S3, creating a projection view related to the three-dimensional model, as shown in FIG. 6. All the primitives in the engineering drawing are associated with the three-dimensional model, i.e. the corresponding three-dimensional building blocks can be traced back from the two-dimensional primitives.
S4, using the EKL secondary development program provided by the invention to create the custom labels of the engineering drawings in batch, referring to FIG. 3, the specific flow of the EKL secondary development program comprises the following steps:
step 401, starting an EKL secondary development program;
step 402, traversing all primitives in a projection view by using a For statement;
step 403, tracing the three-dimensional member in the associated three-dimensional model from the primitive by using a function "GetFeatureFromGenItem";
step 404, obtaining the type of the three-dimensional component through type conversion, and obtaining information to be labeled of the three-dimensional component by using function or type attribute methods such as 'GetAttributeString', 'GetAttributeLength' and the like in combination with a labeling rule;
step 405, judging whether the current primitive is already marked, wherein the principle is as follows: embedding an ID parameter with a unique ID value and a custom label in a three-dimensional member, reading the ID parameter value by an EKL secondary development program, if the custom label of the ID value exists in a projection view, performing updating operation, and then entering step 408, otherwise, entering step 406, and newly building the custom label;
step 406, new operation:
instantiating a corresponding Lable self-defined labeling template at a specified drawing position according to the three-dimensional component type and the labeling rule, wherein the Lable self-defined labeling template refers to the Lable self-defined labeling template library in the step S1;
step 407, filling out the annotation content:
filling the labeling content in the corresponding format in a text box of the Lable custom labeling template according to a labeling rule;
and step 408, ending the program, wherein the obtained final labeling effect is shown in fig. 7.
And S5, after the design is changed, running an EKL secondary development program to update the custom label, avoiding repeated labels, creating a new label for a newly added primitive, and updating the content of the text box for the existing label.
Claims (10)
1. A batch creation self-defining labeling method based on CATIA V6 engineering drawings is characterized in that a self-defining labeling template library is created by using Lable function of a CATIA V6 engineering drawing module, and then batch creation of self-defining labeling is realized by adopting an EKL secondary development program, and the method specifically comprises the following steps:
s1, configuring a complete Lable custom labeling template library;
s2, completing three-dimensional modeling by adopting a CATIA V6 platform;
s3, creating a projection view related to the three-dimensional model;
and S4, creating label examples in batch by using the label templates in the Lable custom labeling template library configured in the step S1 through an EKL secondary development program to form custom labeling of the projection view.
2. The batch creation custom labeling method based on CATIA V6 engineering drawings as claimed in claim 1, characterized in that in step S1, the Lable custom label template library is the engineering drawings general node in CATIA V6.
3. The batch creation custom labeling method based on CATIA V6 engineering drawings as claimed in claim 2, characterized in that in step S1, according to all custom labeling styles, 2D component references are used in engineering drawing total nodes to create templates of custom styles, and after the creation of the 2D component references is completed, the tag templates are created by using a tag function.
4. The batch creation custom annotation method based on CATIA V6 engineering drawings as claimed in claim 1, wherein in step S4, after the creation of the tag instance, there is no link with the tag template, and the modification made to the tag template property or the annotation property in the tag template is not reflected in the tag instance.
5. The batch creation custom annotation method based on CATIA V6 engineering drawings of claim 1, wherein the step S4 is followed by further comprising:
and S5, after the design is changed, running an EKL secondary development program to update the custom label, avoiding repeated labels, creating a new label for a newly added primitive, and updating the content of the text box for the existing label.
6. The batch creation custom annotation method based on CATIA V6 engineering drawings of claim 5, wherein the implementation of the EKL secondary development procedure comprises the following steps:
step 401, starting an EKL secondary development program;
step 402, traversing all primitives in a projection view;
step 403, tracing three-dimensional components in the three-dimensional model associated with the graphic primitive;
step 404, reading standard information to be marked of the three-dimensional component according to the type of the three-dimensional component and by combining with a marking rule;
step 405, if the current primitive has the label information, performing an updating operation, and then entering step 408; otherwise, entering step 406, and newly building a custom label;
step 406, creating a new label;
step 407, filling out the marked content;
and step 408, ending the program.
7. The batch creation custom annotation method based on CATIA V6 engineering drawings as claimed in claim 6, wherein in step 404, the type of the three-dimensional member is obtained through type conversion.
8. The batch creation self-defined labeling method based on CATIA V6 engineering drawings as claimed in claim 6, wherein in step 405, a self-defined labeled ID parameter with a unique ID value is embedded in the three-dimensional member, the EKL secondary development program reads the ID parameter value, if the current primitive of the current projection view has the self-defined label of the ID value, it indicates that the current primitive has been labeled, otherwise, it indicates that the current primitive does not have labeling information.
9. The batch creation custom labeling method based on CATIA V6 engineering drawings as claimed in claim 6, characterized in that in step 406, a corresponding Lable custom labeling template is instantiated on the specified drawing position according to the three-dimensional component type and the labeling rule, and the Lable custom labeling template is quoted from the Lable custom labeling template library in step S1.
10. The method as claimed in claim 6, wherein in step 407, the corresponding format of the label content is filled in the text box of the Lable custom label template according to the label rule.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210852189.1A CN115510514A (en) | 2022-07-20 | 2022-07-20 | Batch creation custom labeling method based on CATIA V6 engineering drawing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210852189.1A CN115510514A (en) | 2022-07-20 | 2022-07-20 | Batch creation custom labeling method based on CATIA V6 engineering drawing |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115510514A true CN115510514A (en) | 2022-12-23 |
Family
ID=84501706
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210852189.1A Pending CN115510514A (en) | 2022-07-20 | 2022-07-20 | Batch creation custom labeling method based on CATIA V6 engineering drawing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115510514A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116842915A (en) * | 2023-07-04 | 2023-10-03 | 中国电建集团西北勘测设计研究院有限公司 | CATIAV 6-based batch labeling method for hydraulic and hydroelectric engineering drawings |
-
2022
- 2022-07-20 CN CN202210852189.1A patent/CN115510514A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116842915A (en) * | 2023-07-04 | 2023-10-03 | 中国电建集团西北勘测设计研究院有限公司 | CATIAV 6-based batch labeling method for hydraulic and hydroelectric engineering drawings |
CN116842915B (en) * | 2023-07-04 | 2024-05-10 | 中国电建集团西北勘测设计研究院有限公司 | Water conservancy and hydropower engineering drawing batch labeling method based on CATIA V6 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107710149B (en) | Method and system for generating PLC code using connectivity model | |
JP4944019B2 (en) | Sheet metal part model display | |
US5819062A (en) | Method for converting design intent into a neutral-file-format for computer aided design applications | |
US20030149502A1 (en) | Method and system for creating a tooling master model for manufacturing parts | |
CN106844885B (en) | BIM technology-based drawing frame and drawing label design method | |
JP2006107510A (en) | Automatic generation for tolerance scheme | |
CN115510514A (en) | Batch creation custom labeling method based on CATIA V6 engineering drawing | |
CN106250612A (en) | A kind of Vehicular inner decoration member mold CAD design supplementary module | |
Drath et al. | The automationml component description in the context of the asset administration shell | |
CN116842915B (en) | Water conservancy and hydropower engineering drawing batch labeling method based on CATIA V6 | |
Scholz et al. | Functional modelling in production engineering workflows | |
Adolfsson et al. | Design and simulation of component-based manufacturing machine systems | |
CN111709601A (en) | Data processing method and device | |
CN112489199B (en) | MBD-based numerical control machining process model creating and labeling method | |
Thongnuch | An approach to generating high-fidelity models for the virtual commissioning of specialized production machines and cells using MCAD models | |
CN109543311B (en) | Three-dimensional visual definition method and system for technical state of part manufacturing | |
CN115629723A (en) | Engineering drawing batch printing method based on CATIA V6 | |
CN113392468B (en) | Pretreatment method for three-dimensional design of ship plane plate frame structure | |
Stark et al. | Major Technology 1: Computer Aided Design—CAD | |
Mohammed et al. | Using semantic Geometric Dimensioning and Tolerancing (GD &T) information from STEP AP242 neutral exchange files for robotic applications | |
Katzwinkel et al. | MBSE-integrated Parametric Working Surfaces as part of a PLM Design Approach | |
Lin et al. | A 3D process design method based on MBD machining element | |
Spellini et al. | Languages and Formalisms to Enable EDA Techniques in the Context of Industry 4.0 | |
Fischer et al. | Comparison of Two Concepts for Planned Reuse of Variant-rich IEC 61131-3-based Control Software | |
Inventor et al. | Autodesk® |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |