Rapid modeling method and device based on CATIA and storage medium

By generating and calling parameterized mating fixed structures in CATIA software, the problem of time-consuming repetitive construction of fixed mating structures in existing technologies is solved, achieving fast and efficient 3D modeling.

CN120874372APending Publication Date: 2025-10-31TAILG SCIENCE AND TECHNOLOGY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511003140.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-21
Publication Date
2025-10-31

AI Technical Summary

Technical Problem

When using CATIA software for 3D data modeling, commonly used fixed-fit structures need to be repeatedly constructed, which is time-consuming, labor-intensive, and inefficient.

Method used

In CATIA software, draw a mating fixed structure with dimensional parameters and define a coordinate system. Store it in a fixed directory, call it when needed using preset macro code, move it to the specified position, and synthesize it into the parts through Boolean operations on the 3D data to complete rapid modeling.

Benefits of technology

By pre-generating and calling parameterized fixed structures, the time spent on repeated construction is reduced, 3D modeling efficiency is improved, and the modeling time for the whole vehicle product is shortened by at least one-third.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120874372A_ABST
    Figure CN120874372A_ABST
Patent Text Reader

Abstract

The invention relates to a rapid modeling method and device based on CATIA and a storage medium, and is applied to the technical field of image generation, and the method comprises the steps: drawing a CATPart file with a size parameter and a matched fixed structure in CATIA software, and generating a definition coordinate system; the generated CATPart file matched with the fixed structure is stored in a fixed directory; when the 3D model needs to be generated, obtaining a position where a fixed structure needs to be matched; creating the same coordinate system at the position; calling a generated CATPart file matched with the fixed structure under the fixed directory through a preset macro code in the CATIA software; according to the coordinate system coincidence principle, the matched fixing structure is moved to the position of the matched fixing structure; the size parameters of the matched fixing structure are modified, so that the matched fixing structure is completely matched with other parts of the CATProduct product data; according to the 3D modeling method and device, all common matched fixing structures are generated in advance and can be directly called when needing to be used, repeated generation is not needed, and the 3D modeling efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of image generation technology, and more specifically to a method, apparatus, and storage medium for rapid modeling based on CATIA. Background Technology

[0002] CATIA (Computer-Aided Three-Dimensional Interactive Application) is a comprehensive 3D design and engineering software developed by Dassault Systèmes. CATIA, with its superior 3D modeling and design capabilities and wide range of applications, has become the engine of digital manufacturing. It provides an integrated design environment that integrates mechanical design, electrical design, and software development, enabling engineers from different disciplines to collaborate on the same platform, improving teamwork efficiency and the overall quality of product development. Although CATIA software has made significant progress in design and engineering, when creating 3D data models for a complete vehicle, it is necessary to draw the assembly structure step by step from surface, line, and volume elements using CATIA's built-in commands. Each version of the complete vehicle structure data takes an average of 20 days to complete, which is quite time-consuming. When drawing structural data, some commonly used structures, such as screw-pillar fixing structures, clip fixing structures, breathable fabric breathable structures, and mounting foot fixing structures, are frequently used. Although these structures differ in specific usage environments, their similarity is about 85%. Therefore, commonly used structures are repetitive, labor-intensive, and time-consuming, which is not conducive to improving efficiency. Summary of the Invention

[0003] In view of this, the purpose of the present invention is to provide a method, apparatus and storage medium for rapid modeling based on CATIA, so as to solve the problem in the prior art that when using CATIA software for 3D data modeling, commonly used fixed mating structures need to be repeatedly constructed, which is time-consuming, labor-intensive and inefficient.

[0004] According to a first aspect of the present invention, a method for rapid modeling based on CATIA is provided, the method comprising:

[0005] In CATIA software, draw a CATPart file containing dimensional parameters of the mating and fixed structure, and define a coordinate system in the mating and fixed structure containing dimensional parameters;

[0006] Store the CATPart file containing the coordinate system and dimensional parameters of the mating fixed structure in a fixed directory;

[0007] In CATIA software, open the CATProduct product data of a new project and obtain the positions of the CATPart data of the product components that need to be fitted and fixed.

[0008] In the CATProduct product data, it is necessary to create the same coordinate system for the location of the fixed structure.

[0009] In CATIA software, preset macro codes are used to call CATPart files containing coordinate systems and dimensional parameters of a fixed structure located in a fixed directory;

[0010] Based on the principle of coordinate system coincidence, the mating and fixing structure containing coordinate system and size parameters is moved to the position of the mating and fixing structure in the CATProduct product data;

[0011] Modify the dimensional parameters of the mating and fixing structure to ensure that the mating and fixing structure fully matches the other parts in the CATProduct product data;

[0012] The modified dimensional parameters of the mating and fixing structures are integrated into the corresponding parts, and then synthesized into the 3D data of the parts through Boolean operations on the 3D data, thus completing the rapid modeling of CATProduct product data.

[0013] Preferably,

[0014] Defining a coordinate system in the mating and fixing structure with dimensional parameters includes:

[0015] The coordinate system is defined using the right-hand coordinate system method, with the center of the mating and fixing structure with dimensional parameters as the origin, the demolding direction as the +X axis, and the core pulling direction as the -Z axis.

[0016] Preferably,

[0017] The creation of the same coordinate system for the positions of the fixed structures required in the CATProduct product data includes:

[0018] The working coordinate system is defined using the center of the location where the fixed structure needs to be made as the origin of the working coordinate system, the demolding direction of the part as the working coordinate +X axis, and the direction of the part for the core-pulling structure as the working coordinate -Z axis. The working coordinate system is defined using the right-hand coordinate system method.

[0019] Preferably,

[0020] The preset macro codes include:

[0021] Create a macro file and define its filename;

[0022] Write the macro script entry function code in the macro file;

[0023] Write code that references CATIA objects within the entry function code;

[0024] Define a path name as a string attribute, write the code that includes the coordinate system and size parameters to save the path, and assign the path name to the path name;

[0025] Write code to reference the OPEN method of the Documents object under the CATIA object, and add the path name to the OPEN method;

[0026] Write the closing code in the macro file.

[0027] Preferably,

[0028] The process of moving the mating and fixing structure, which includes the coordinate system and dimensional parameters, to the required position in the CATProduct product data based on the principle of coordinate system coincidence includes:

[0029] Align the origin of the coordinate system of the mating fixed structure with the origin of the coordinate system of the working coordinate system within the component, and adjust the +X and -Z axes of the mating fixed structure to coincide with the +X and -Z axes of the working coordinate system within the component. This will move the mating fixed structure, which includes the coordinate system and dimensional parameters, to the position in the CATProduct product data where the mating fixed structure is required.

[0030] Preferably, it further includes:

[0031] In the CATIA software, a button icon is assigned to the preset macro code, with one button icon corresponding to each mating fixed structure; when the corresponding button icon is clicked, the macro code automatically calls the CATPart file containing the coordinate system and dimension parameters of the corresponding mating fixed structure.

[0032] According to a second aspect of the present invention, an apparatus for rapid modeling based on CATIA is provided, the apparatus comprising:

[0033] The CATIA software is used to draw CATPart files of mate fixed structures with dimensional parameters in CATIA software and to define a coordinate system in the mate fixed structure with dimensional parameters.

[0034] Storage module: Used to store CATPart files containing coordinate systems and dimensional parameters of mating fixed structures in a fixed directory;

[0035] Insertion Position Acquisition Module: Used to open the CATProduct product data of a new project in CATIA software and acquire the positions of the CATPart data of the product that need to be fitted and fixed.

[0036] Working coordinate acquisition module: used to create the same coordinate system at the location in the CATProduct product data where a fixed structure needs to be matched;

[0037] Calling module: Used in CATIA software to call CATPart files containing coordinate systems and dimensional parameters of a fixed structure in a fixed directory through preset macro codes;

[0038] Insert module: Used to move the mating and fixing structure containing coordinate system and size parameters to the position in the CATProduct product data that requires the mating and fixing structure, based on the principle of coordinate system coincidence;

[0039] Parameter modification module: Used to modify the dimensional parameters of the mating and fixing structure so that the mating and fixing structure can fully match the other parts in the CATProduct product data;

[0040] Model generation module: This module integrates the modified dimensional parameters of the mating and fixing structures into the corresponding parts, and synthesizes them into the 3D data of the parts through Boolean operations on the 3D data, thus completing the rapid modeling of CATProduct product data.

[0041] According to a third aspect of the present invention, a storage medium is provided, the storage medium storing a computer program, which, when executed by a host controller, implements the steps of the above-described method.

[0042] The technical solutions provided by the embodiments of the present invention may include the following beneficial effects:

[0043] This application involves drawing CATPart files with dimensional parameters of the mating and fixing structure in CATIA software and generating a defined coordinate system. The generated CATPart files are stored in a fixed directory. When a 3D model needs to be generated, the location of the mating and fixing structure is determined, and a matching coordinate system is created at that location. In CATIA software, a pre-defined macro code calls the generated CATPart file of the mating and fixing structure in the fixed directory. Based on the principle of coordinate system coincidence, the mating and fixing structure is moved to its designated location. The dimensional parameters of the mating and fixing structure are modified to ensure complete mating with the other components of the CATProduct product data. The modified mating and fixing structure is then integrated into the corresponding components, and Boolean operations on the 3D data are used to synthesize it into the 3D data of the components, thus completing the rapid modeling of the CATProduct product data. This application improves the efficiency of 3D modeling by pre-generating commonly used mating and fixing structures, which can be directly called when needed without repeated generation.

[0044] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit the invention. Attached Figure Description

[0045] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0046] Figure 1 This is a flowchart illustrating a method for rapid modeling based on CATIA according to an exemplary embodiment;

[0047] Figure 2 This is a schematic diagram illustrating the coordinate system definition of a screw-fitting fixing structure according to another exemplary embodiment;

[0048] Figure 3 This is a system schematic diagram of an apparatus for rapid modeling based on CATIA, according to another exemplary embodiment;

[0049] In the attached diagram, 1-fixed structure generation module, 2-storage module, 3-insertion position acquisition module, 4-working coordinate acquisition module, 5-calling module, 6-insertion module, 7-parameter modification module, and 8-model generation module. Detailed Implementation

[0050] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatuses and methods consistent with some aspects of the invention as detailed in the appended claims.

[0051] Example 1

[0052] Figure 1 This is a flowchart illustrating a method for rapid modeling based on CATIA, according to an exemplary embodiment. Figure 1 As shown, the method includes:

[0053] S1. Draw a CATPart file with dimensional parameters for the mating and fixed structure in CATIA software, and define a coordinate system in the mating and fixed structure with dimensional parameters;

[0054] S2, store the CATPart file containing the coordinate system and dimensional parameters of the mating fixed structure in a fixed directory;

[0055] S3, Open the CATProduct product data of the new project in the CATIA software, and obtain the positions of the CATPart data of the product components that need to be fitted and fixed in the CATProduct product data;

[0056] S4, In the CATProduct product data, it is necessary to create the same coordinate system for the position of the fixed structure;

[0057] S5, in CATIA software, uses preset macro code to call CATPart files in a fixed directory that contain coordinate systems and dimensional parameters of a fixed structure;

[0058] S6, based on the principle of coordinate system coincidence, move the mating and fixing structure containing coordinate system and size parameters to the position of the mating and fixing structure required in the CATProduct product data;

[0059] S7, modify the dimensional parameters of the mating and fixing structure so that the mating and fixing structure can fully match the other parts in the CATProduct product data;

[0060] S8 integrates the modified dimensional parameters of the mating and fixing structure into the corresponding parts, and synthesizes them into the 3D data of the parts through Boolean operations on the 3D data, thus completing the rapid modeling of CATProduct product data;

[0061] It is understood that this embodiment generates a parameterized common mating structure with its own coordinate system using the 3D modeling software CATIA, sets a specific icon button, and then integrates all the icon buttons into the CATIA toolbar. When CATIA is used for 3D product modeling, it is necessary to draw common structures such as screw-pillar fixing structures, snap-fit ​​fixing structures, and breathable fabric ventilation structures. Simply create a new coordinate system at the location where the mating structure is placed, then click the corresponding common structure icon in the toolbar to automatically generate the corresponding common mating structure data. Then, in the Product assembly, the intelligent move function is used to move the common mating structure to the required assembly position by aligning the two coordinate systems. Based on the characteristics of each product, the parameters of the common structures are adjusted to meet the requirements of product mold development and product quality. The standard structures are then collected into the product's CATPart file, and finally, Boolean operations are used to integrate the common mating structures into their respective products. Because the common mating structures are parameterized, they are not only generated quickly, but the parameters can also be changed as needed to automatically generate the desired mating structure data, completing the process in only about half a minute. Manually drawing common mating structures, on average, takes about 10 minutes each. Since there are a large number of common mating structures in 3D modeling, parameterized common mating fixing structures have been developed. By adjusting the parameters and modifying the data as needed, the 3D modeling time for the entire vehicle product can be reduced by at least one-third, greatly improving the efficiency of product 3D modeling.

[0062] As attached Figure 2 As shown, for ease of understanding, this embodiment takes the common screw-fit fixing structure in the common mating fixing structure as an example. The CATPart file of the standard screw-fit fixing structure with parameters is drawn in CATIA. For different specifications and dimensions such as the outer diameter, inner diameter, height of the screw post and the limiting sleeve that mates with the screw post, this application adopts a parameterized design. This makes it convenient to change the parameter data to obtain relevant product data according to the actual size requirements of the product. The center of the standard screw-fit fixing structure is taken as the origin of the coordinate system. The demolding direction of the standard screw-fit fixing structure is the +X axis, and the core pulling direction of the standard screw-fit fixing structure is the -Z axis. The opposite direction of the -Z axis is the +Z axis. After the X and Z axes are generated, since the X, Y and Z axes are perpendicular to each other, the Y axis is automatically generated. The coordinate system is defined using the right-hand coordinate system method.

[0063] The standard screw fitting and fixing structure with parameters and coordinate system are stored in a fixed directory on the computer.

[0064] Through secondary development of CATIA, write macro code to call a standard screw mating and fixing structure with parameters. The macro script code includes:

[0065] Create a macro file and define its filename;

[0066] Write the macro script entry function code in the macro file;

[0067] Write code that references CATIA objects within the entry function code;

[0068] Define a path name as a string attribute, write the code that includes the coordinate system and size parameters to save the path, and assign the path name to the path name;

[0069] Write code to reference the OPEN method of the Documents object under the CATIA object, and add the path name to the OPEN method;

[0070] Write the closing code in the macro file.

[0071] The specific code and its meaning are as follows:

[0072] 'a) Macro script entry point

[0073] Sub CATMain()

[0074] b.1) Obtain the CATIA application object

[0075] Dim CATIA

[0076] Set CATIA=GetObject(,"CATIA.Application")

[0077] b.2) Define the general structure data storage path

[0078] Dim FilePath

[0079] FilePath = "D:\Data\CATIA\Standard Parts\Screws\Part12.CATPart"

[0080] 'b.3) Open the general structure data

[0081] Dim Document

[0082] Set Document=CATIA.Documents.Open(FilePath)

[0083] 'c) End of macro script

[0084] End Sub

[0085] In CATIA, assign a button icon to the macro code. When this button icon is clicked, the macro code automatically displays the CATPart file containing the parameterized standard screw mating and fixing structure. It is important to note that each mating and fixing structure has a corresponding button icon.

[0086] Open the CATProduct product data of the new project, analyze the positions where screw mating structures are required between the CATPart data of the product parts, and determine if there is enough space at these positions to perform screw mating structures. Define the new working coordinate origin at the center of these positions. Analyze the demolding direction of the parts and define the new working coordinate +X axis based on the demolding direction of the parts. Analyze the direction in which the parts can be made into core-pulling structures and determine if there is enough space in this direction to perform core-pulling structures. Define the -Z axis of the new working coordinate system based on this core-pulling direction. Define the new working coordinate system using the right-hand coordinate system method.

[0087] In CATIA software, clicking the button icon for standard screw mating and fixing structures with parameters and coordinate system will automatically call the CATPart file of the standard screw mating and fixing structure stored in a fixed directory.

[0088] Assemble the CATPart file data of the standard screw mating and fixing structure into the CATProduct product data of the new project. Specifically, since the CATPart data of the standard screw mating and fixing structure contains a coordinate system, and the parts of the new project's CATProduct product also define a new working coordinate system where the screw mating structure needs to be designed, the CATPart data of the standard screw mating and fixing structure can be moved to the part where the screw mating structure needs to be designed by using the coordinate movement and coincidence method in the assembly. That is, by moving the coordinate origin, +X axis, and -Z axis of the standard screw mating and fixing structure to coincide with the coordinate origin, +X axis, and -Z axis of the new working coordinate system in the part, the standard screw mating and fixing structure can be accurately moved to the position where the assembly structure needs to be made.

[0089] After the standard screw-fit fixing structure is moved to the position where the component needs to be assembled, the space for the screw-fit fixing structure is re-analyzed based on the latest data. This includes whether the space for the component to have a screw-fit fixing structure is sufficient, whether the component can have a mold core-pulling structure, and how the standard screw-fit fixing structure can be integrated into the component. Based on the analysis results, the outer diameter, inner diameter, height of the standard screw post, and the limiting sleeve that mates with the screw post are adjusted to modify the dimensions of the standard screw-fit fixing structure so that it can be fully integrated into the component.

[0090] The standard screw-fit fixing structure is integrated into the corresponding parts, and then synthesized into the 3D data of the parts through Boolean operations on the 3D data, thus completing the rapid modeling of the screw-fit fixing structure.

[0091] Example 2

[0092] Figure 3 This is a system schematic diagram illustrating a CATIA-based rapid modeling apparatus according to another exemplary embodiment, the apparatus comprising:

[0093] Module 1 for generating mating fixed structures: used to draw CATPart files of mating fixed structures with dimensional parameters in CATIA software, and to define a coordinate system in the mating fixed structures with dimensional parameters;

[0094] Storage module 2: Used to store CATPart files containing coordinate systems and dimensional parameters of mating fixed structures in a fixed directory;

[0095] Insertion Position Acquisition Module 3: Used to open the CATProduct product data of a new project in CATIA software, and acquire the positions of the CATPart data of the product components that need to be fitted and fixed in the CATProduct product data;

[0096] Working coordinate acquisition module 4: Used to create the same coordinate system at the location in the CATProduct product data where a fixed structure needs to be made;

[0097] Calling Module 5: Used in CATIA software to call CATPart files containing coordinate systems and dimensional parameters of a fixed structure in a fixed directory through preset macro codes;

[0098] Insertion Module 6: Used to move the mating and fixing structure containing coordinate system and size parameters to the position of the mating and fixing structure in the CATProduct product data based on the principle of coordinate system coincidence;

[0099] Parameter Modification Module 7: Used to modify the dimensional parameters of the mating and fixing structure so that the mating and fixing structure can fully match the other parts in the CATProduct product data;

[0100] Model generation module 8: It is used to integrate the mating and fixing structures with modified dimensional parameters into the corresponding parts, and synthesize them into the 3D data of the parts through Boolean operations on the 3D data, so as to complete the rapid modeling of CATProduct product data.

[0101] Example 3:

[0102] This embodiment provides a storage medium storing a computer program, which, when executed by a host controller, implements the various steps in the above method.

[0103] It is understood that the storage medium mentioned above can be a read-only memory, a hard disk, or an optical disk, etc.

[0104] It is understood that the same or similar parts in the above embodiments can be referred to each other, and the contents not described in detail in some embodiments can be referred to the same or similar contents in other embodiments.

[0105] It should be noted that in the description of this invention, the terms "first," "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance. Furthermore, in the description of this invention, unless otherwise stated, "a plurality of" means at least two.

[0106] Any process or method description in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing a particular logical function or process, and the scope of the preferred embodiments of the invention includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as will be understood by those skilled in the art to which embodiments of the invention pertain.

[0107] It should be understood that various parts of the present invention can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.

[0108] Those skilled in the art will understand that all or part of the steps of the methods in the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.

[0109] Furthermore, the functional units in the various embodiments of the present invention can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.

[0110] The storage media mentioned above can be read-only memory, disk, or optical disk, etc.

[0111] In the description of this specification, references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.

[0112] Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of the present invention.

Claims

1. A method for rapid modeling based on CATIA, characterized in that, The method includes: In CATIA software, draw a CATPart file containing dimensional parameters of the mating and fixed structure, and define a coordinate system in the mating and fixed structure containing dimensional parameters; Store the CATPart file containing the coordinate system and dimensional parameters of the mating fixed structure in a fixed directory; In CATIA software, open the CATProduct product data of a new project and obtain the positions of the CATPart data of the product components that need to be fitted and fixed. In the CATProduct product data, it is necessary to create the same coordinate system for the location of the fixed structure. In CATIA software, preset macro codes are used to call CATPart files containing coordinate systems and dimensional parameters of a fixed structure located in a fixed directory; Based on the principle of coordinate system coincidence, the mating and fixing structure containing coordinate system and size parameters is moved to the position of the mating and fixing structure in the CATProduct product data; Modify the dimensional parameters of the mating and fixing structure to ensure that the mating and fixing structure fully matches the other parts in the CATProduct product data; The modified dimensional parameters of the mating and fixing structures are integrated into the corresponding parts, and then synthesized into the 3D data of the parts through Boolean operations on the 3D data, thus completing the rapid modeling of CATProduct product data.

2. The method according to claim 1, characterized in that, Defining a coordinate system in the mating and fixing structure with dimensional parameters includes: The coordinate system is defined using the right-hand coordinate system method, with the center of the mating and fixing structure with dimensional parameters as the origin, the demolding direction as the +X axis, and the core pulling direction as the -Z axis.

3. The method according to claim 2, characterized in that, The creation of the same coordinate system for the positions of the fixed structures required in the CATProduct product data includes: The working coordinate system is defined using the center of the location where the fixed structure needs to be made as the origin of the working coordinate system, the demolding direction of the part as the working coordinate +X axis, and the direction of the part for the core-pulling structure as the working coordinate -Z axis. The working coordinate system is defined using the right-hand coordinate system method.

4. The method according to claim 3, characterized in that, The preset macro codes include: Create a macro file and define its filename; Write the macro script entry function code in the macro file; Write code that references CATIA objects within the entry function code; Define a path name as a string attribute, write the code that includes the coordinate system and size parameters to save the path, and assign the path name to the path name; Write code to reference the OPEN method of the Documents object under the CATIA object, and add the path name to the OPEN method; Write the closing code in the macro file.

5. The method according to claim 1, characterized in that, The process of moving the mating and fixing structure, which includes the coordinate system and dimensional parameters, to the required position in the CATProduct product data based on the principle of coordinate system coincidence includes: Align the origin of the coordinate system of the mating fixed structure with the origin of the coordinate system of the working coordinate system within the component, and adjust the +X and -Z axes of the mating fixed structure to coincide with the +X and -Z axes of the working coordinate system within the component. This will move the mating fixed structure, which includes the coordinate system and dimensional parameters, to the position in the CATProduct product data where the mating fixed structure is required.

6. The method according to claim 5, characterized in that, Also includes: In the CATIA software, a button icon is assigned to each preset macro code, with each macro code corresponding to a fixed structure. When the corresponding button icon is clicked, the macro code automatically calls the CATPart file containing the coordinate system and dimensional parameters of the corresponding mating fixed structure.

7. A device for rapid modeling based on CATIA, characterized in that, The device includes: The CATIA software is used to draw CATPart files of mate fixed structures with dimensional parameters in CATIA software and to define a coordinate system in the mate fixed structure with dimensional parameters. Storage module: Used to store CATPart files containing coordinate systems and dimensional parameters of mating fixed structures in a fixed directory; Insertion Position Acquisition Module: Used to open the CATProduct product data of a new project in CATIA software and acquire the positions of the CATPart data of the product that need to be fitted and fixed. Working coordinate acquisition module: used to create the same coordinate system at the location in the CATProduct product data where a fixed structure needs to be matched; Calling module: Used in CATIA software to call CATPart files containing coordinate systems and dimensional parameters of a fixed structure in a fixed directory through preset macro codes; Insert module: Used to move the mating and fixing structure containing coordinate system and size parameters to the position in the CATProduct product data that requires the mating and fixing structure, based on the principle of coordinate system coincidence; Parameter modification module: Used to modify the dimensional parameters of the mating and fixing structure so that the mating and fixing structure can fully match the other parts in the CATProduct product data; Model generation module: This module integrates the modified dimensional parameters of the mating and fixing structures into the corresponding parts, and synthesizes them into the 3D data of the parts through Boolean operations on the 3D data, thus completing the rapid modeling of CATProduct product data.

8. A storage medium, characterized in that, The storage medium stores a computer program, which, when executed by the main controller, implements the various steps of the method for rapid modeling based on CATIA as described in any one of claims 1-6.