Method for converting CATIA high-version model into low-version model

By using the STP format configuration settings and data storage files in CATIA software, the CATIA high-version model was successfully converted to the lower-version model, solving the problem of information loss and achieving the conversion effect of version compatibility and information integrity.

CN119396455APending Publication Date: 2025-02-07AVIC CHENGFEI COMML AIRCRAFT COMPANY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411436525.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-15
Publication Date
2025-02-07

AI Technical Summary

Technical Problem

The existing technology cannot convert CATIA high-version model to a low-version model without losing important information. Especially after saving it in IGS, STP, and CGR formats, low-version software cannot fully carry the solid model, geometric features and technology. MBD information.

Method used

Through the STP format configuration settings of CATIA software, the solid model, geometric features and process information in the higher version of the model are obtained, feature processing and renaming, and the information is stored as a data storage file. Then, save the model in .stp format, open the lower version of CATIA software, use data storage files to reconstruct the model, and complete the version conversion.

Benefits of technology

The conversion from CATIA's high-version model to a low-version model is realized, and the solid model, geometric features and process MBD information is fully saved, which solves the problems of model failure to open and process information caused by inconsistent software versions, and improves work efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119396455A_ABST
    Figure CN119396455A_ABST
Patent Text Reader

Abstract

The invention relates to the field of CATIA, and provides a method for converting a CATIA high-version model into a low-version model in order to realize version conversion without losing information, the information is transferred into an intermediate file, and a transfer rule is set, so that the conversion from the high-version model to the low-version model in CATIA software can be quickly completed, and the conversion efficiency is improved. And entity models, geometric features, process MBD information and the like are completely stored. In large-scale project work, the problems that due to inconsistent software versions, a model cannot be opened, process information cannot be read, and conversion to analysis software such as strength cannot be achieved can be effectively solved, invalid work is reduced, and efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of CATIA, and in particular to a method for converting a CATIA high-version model into a low-version model. Background Art

[0002] CATIA software is a modeling software widely used in mechanical industries such as automobiles, aviation, and ships. Since its release, CATIA software has been optimized and updated many times. Its versions CATIA V5R18, CATIA V5R21, and CATIA V5-6 R2020 (i.e. V5R30) are widely used in application scenarios such as structural modeling, process simulation, assembly design, and finite element calculation. Among them, CATPart and CATProduct are the main model formats of the software, of which CATProduct is an assembly model and CATPart is a part model. Designers can only model, modify, identify features, and add process information in this format. They can also import this model into other software for subsequent work such as strength calculation, composite material analysis, process analysis, etc. The complete model can include solid models, geometric features, process MBD information, etc., which is convenient for model viewing, use, and analysis. The model files of each version are upward compatible but not downward compatible.

[0003] The existing technology can save the high-version CATIA model file in the format of igs, stp, cgr, etc., so that the low-version CATIA software or other application software can recognize the formats of igs, stp, cgr, etc. However, after saving in igs format, it can only carry the geometric information of the solid model, such as surfaces, etc., without the solid model; after saving in stp format, it can only carry the solid model results and the geometric features displayed in the original model; cgr format cannot be opened directly and can only be inserted as a solid model in other formats using the insert command. The above three formats cannot carry process MBD information, and there is a risk of losing important information when opening in low-version CATIA software or other application software. Summary of the invention

[0004] In order to achieve version conversion without losing information, the present application provides a method for converting a CATIA high-version model to a low-version model.

[0005] The technical solution adopted by the present invention to solve the above problems is:

[0006] The method of converting CATIA high version model to low version includes:

[0007] Step 1. CATIA software saves STP format configuration settings;

[0008] Step 2: Use the higher version of CATIA to open the higher version of CATIA model that needs to be converted and enter the design mode. In the CATIA interface, select the top-level assembly model of the model that needs to be converted.

[0009] Step 3: Get all files under the assembly model. If the file is in CATProduct format, skip it. If the file is in CATPart format, perform feature processing on the model geometry features according to step 4.

[0010] Step 4: Obtain all information in the model, including solid model features, geometric features, and process information; and rename the information of the geometric type according to its path in the structure tree;

[0011] Step 5: Record all the information of the model in CATPart format and store it as a data storage file;

[0012] Step 6. Select the top-level assembly model of the model to be converted in the CATIA interface and save it in .stp format;

[0013] Step 7. Open the lower version of CATIA software, open the .stp format file generated in step 6, obtain all files under the assembly model, if the file is in CATProduct format, skip it; if the file is in CATPart format, find the corresponding data storage file in the stp file directory, and reconstruct the model in sequence according to the information recorded in the data storage file;

[0014] Step 8. Save the model to complete the version conversion.

[0015] Furthermore, the step 3 is specifically as follows: according to the assembly relationship, a loop is established to obtain all files in sequence. If the file is in the CATProduct format, it is skipped; if the file is in the CATPart format, feature processing is performed on the model geometric features according to step 4.

[0016] Furthermore, the step 4 is specifically as follows: according to the hierarchical relationship of the structure tree, a loop is established to sequentially obtain all the information in the model, and the information content at least includes the information name and the information type.

[0017] Furthermore, in step 4, the renaming format is specifically: geometry set 1_geometry set 2_..._geometry set n_geometry feature name, wherein geometry set 1 is the name of the top-level geometry set where the geometric feature is located, geometry set 2 is the name of the next-level geometry set where the geometric feature is located, and geometry set n is the level where the key geometric feature is located.

[0018] Furthermore, the step 5 is specifically as follows: obtaining all information in the model, including solid model features, geometric features, process information and geometric graphics set information; the saved geometric feature content includes the original name, processed name, feature type, geometric graphics set name and display / hide status; the saved process information content includes the name, type, value, notes and the geometric graphics set name; the saved geometric graphics set information content includes the name, type and the geometric graphics set name.

[0019] Furthermore, the data storage file format in step 5 is: text, CSV or spreadsheet.

[0020] Compared with the prior art, the present invention has the following beneficial effects: by transferring information into an intermediate file and setting transfer rules, the conversion of a high-version model to a low-version model in CATIA software can be quickly completed, and the entity model, geometric features, process MBD information, etc. are completely preserved. In large-scale project work, it can effectively solve the problems of being unable to open the model, unable to read process information, and unable to convert to strength analysis software due to inconsistent software versions, reduce ineffective work, and improve efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 A flow chart of the method for converting a CATIA high version model to a low version;

[0022] Figure 2 Store data schematics for spreadsheets. DETAILED DESCRIPTION

[0023] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0024] Definition of terms:

[0025] Solid model: The part of the model that exists as a solid and shows the final shape of the model, usually existing in the model under the name of "part geometry".

[0026] Geometric features: Elements in the model in the form of points, lines, and surfaces that need to be saved to supplement the description of the model or process information.

[0027] Process information: Relevant information in the model related to the production and manufacturing of parts, usually in the form of "parameter + parameter value".

[0028] Geometry set: A collection of geometric features or process information in a model that is used to classify and save them.

[0029] Structure tree: The structure tree of the CAITA model is a tree structure that is used to display all elements and the relationships between them in the product design process. It records the creation and modification process of the product, with clear levels, which is convenient for designers to sort out their ideas and perform operations. It contains various types of information such as solid model features, geometric features, and process information.

[0030] like Figure 1 As shown in the figure, the method of converting a CATIA high version model to a low version includes:

[0031] S1: CATIA software saves STP format configuration settings: In the higher version CATIA configuration page "Tools-Options-General-Compatibility-STEP", check the "Details report", "Group (selection set)", "User defined attributes", "Mesh geometry", "One STEP file" options, and select "242ed1", "214ed3", "203ed2" or "214iso" under Application Protocol (AP).

[0032] S2: High version CATIA opens the high version CATIA model that needs to be converted and enters the design mode. In the CATIA interface, select the top-level assembly model of the model that needs to be converted, that is, the CATProduct format document. In this embodiment, there is 1 assembly and 10 parts.

[0033] S3: Use the CATIDescendants interface command to obtain all documents under the assembly, and establish a loop based on the assembly relationship to read all digital models in sequence. Use the CATIDocId interface to identify the digital model type. If the file is identified as a CATProduct format, skip it; if the file is identified as a CATPart format, press S4 to perform feature processing on the model geometry features.

[0034] S4: Perform feature processing on the geometric features of the model in CATPart format, specifically including the following steps:

[0035] S4.1: Use the CATIDescendants interface command to obtain all information in the model, including solid model features, geometric features, and process information. According to the structure tree hierarchy, establish a loop to read all information in sequence, obtain the information name through the GetAlias ​​method of CATISpecObject; obtain the type of information through the GetType method of CATISpecObject;

[0036] S4.2: For information whose type is geometric type, rename it according to its path in the structure tree. In this embodiment, the surface "Part outer surface, opening and side area" in the geometry set "Paint definition 1" under the geometry set "Paint definition" is renamed to "Paint definition_Paint definition 1_Part outer surface, opening and side area" according to the hierarchical relationship of the structure tree in which it is located; the surface "Fitting surface seal" in the geometry set "Seal definition 1" under the geometry set "Seal definition" is renamed to "Seal definition_Seal definition 1_Fitting surface seal" according to the hierarchical relationship of the structure tree in which it is located.

[0037] S5: Record all the information of the model in CATPart format and store it as a data storage file (in CSV format in this embodiment), which specifically includes the following steps:

[0038] S5.1: Use the CATIDescendants interface command to obtain all information in the model, including solid model features, geometric features and process information. The saved content of geometric features is the original name, processed name, feature type, name of the geometric set and display / hide status; the saved content of process information is the name, type, value, notes and name of the geometric set; the saved content of geometric set information is the name, type and name of the geometric set.

[0039] Get the information name through the GetAlias ​​method of CATISpecObject; get the information type through the GetType method of CATISpecObject; get the information display / hide status through the GetShowAttr method of CATVisPropertiesValues; get the parameter set value through the Content method of CATICkeParm; get the parameter set comments through the GetComment method of CATIAllowUserInfo.

[0040] In this embodiment, the curved surface "part outer surface, opening and side area" is recorded as "part outer surface, opening and side area, paint definition_paint definition 1_part outer surface, opening and side area, GSMSurface, paint definition 1,,, show"; the curved surface "fitting surface seal" is recorded as "fitting surface seal, seal definition_seal definition 1_fitting surface seal, GSMSurface, seal definition 1,,, show".

[0041] S5.2: The information content saved in step S5.1 is stored as a data storage file of the type of text, CSV or spreadsheet. The data storage file is named after the CATPart model drawing number. One CATPart model corresponds to one file. In this embodiment, a total of 10 CSV files are generated.

[0042] S6: In the CATIA interface, select the top-level assembly model of the model to be converted, that is, the CATProduct format document, and save the file in .stp format. After this step, this embodiment has a total of 1 stp format model.

[0043] S7: Open the lower version of CATIA software, open the stp format file generated by S6, use the CATIDescendants interface command to obtain all documents under the assembly, and read all digital models in sequence. Identify the digital model type through the CATIDocId interface. If the file is identified as CATProduct format, skip it. If the file is identified as CATPart format, search for the data storage table file with the same drawing number name in the stp file directory, and reconstruct the model in sequence according to the information recorded in the data storage table file.

[0044] like Figure 2 As shown, the electronic table storage data recorded in this embodiment is taken as an example for description, which specifically includes the following steps:

[0045] S7.1: loop through each row of the data storage table file in turn, and operate the model with the same drawing number name according to the information recorded therein;

[0046] S7.2: Identify the data type recorded in each row of information through the third column in the data storage table file: GSMTool is a geometry set, and the geometry set is created using the CATIGSMFactory command, named as the name recorded in the second column and attached to the parent recorded in the fourth column; String is a string type parameter set, and the parameter set is created using the CATICkeParmFactory command, with the name as the value of the second column, the parameter set value as the value of the fifth column and attached to the parent recorded in the fourth column, and the value of the sixth column is assigned to the parameter set comment using the SetComment method of CATIAllowUserInfo; for all data types other than the above two, search for features with feature names as the values ​​of the second column in the model, rename them according to the values ​​of the first column, and attach them to the parent recorded in the fourth column, and set the display / hide state to the state saved in the seventh column using the SetShowAttr method of CATVisPropertiesValues;

[0047] S7.3: Delete data in the model that does not need to be restored.

[0048] S8: According to the model drawing number, use the CATDocumentServices::SaveAs command to save the parts in sequence, and then save the components.

Claims

1. The method for converting a CATIA high version model to a low version is characterized by: include: Step 1. CATIA software saves STP format configuration settings; Step 2: Use the higher version of CATIA to open the higher version of CATIA model that needs to be converted and enter the design mode. In the CATIA interface, select the top-level assembly model of the model that needs to be converted. Step 3: Get all files under the assembly model. If the file is in CATProduct format, skip it. If the file is in CATPart format, perform feature processing on the model geometry features according to step 4. Step 4: Obtain all information in the model, including solid model features, geometric features, and process information; and rename the information of the geometric type according to its path in the structure tree; Step 5: Record all the information of the model in CATPart format and store it as a data storage file; Step 6. Select the top-level assembly model of the model to be converted in the CATIA interface and save it in .stp format; Step 7. Open the lower version of CATIA software, open the .stp format file generated in step 6, obtain all files under the assembly model, if the file is in CATProduct format, skip it; if the file is in CATPart format, find the corresponding data storage file in the stp file directory, and reconstruct the model in sequence according to the information recorded in the data storage file; Step 8. Save the model to complete the version conversion.

2. The method for converting a CATIA high version model to a low version according to claim 1, characterized in that: The step 3 is specifically as follows: according to the assembly relationship, a loop is established to obtain all files in sequence. If the file is in CATProduct format, it is skipped; if the file is in CATPart format, feature processing is performed on the model geometric features according to step 4.

3. The method for converting a CATIA high version model to a low version according to claim 1, characterized in that: The step 4 is specifically as follows: according to the hierarchical relationship of the structure tree, a loop is established to sequentially obtain all the information in the model, and the information content at least includes the information name and the information type.

4. The method for converting a CATIA high version model to a low version according to claim 3, characterized in that: In step 4, the renaming format is specifically: geometry set 1_geometry set 2_..._geometry set n_geometry feature name, wherein geometry set 1 is the name of the top-level geometry set where the geometric feature is located, geometry set 2 is the name of the next-level geometry set where the geometric feature is located, and geometry set n is the level where the key geometric feature is located.

5. The method for converting a CATIA high version model to a low version according to claim 1, characterized in that: The step 5 is specifically as follows: obtaining all information in the model, including solid model features, geometric features, process information and geometric graphics set information; the geometric feature saved content includes the original name, processed name, feature type, geometric graphics set name and display / hide status; the process information saved content includes the name, type, value, notes and the geometric graphics set name; the geometric graphics set information saved content includes the name, type and the geometric graphics set name.

6. The method for converting a CATIA high version model to a low version according to claim 5, characterized in that: The data storage file format in step 5 is: text, CSV or spreadsheet.