A method, system, terminal device and storage medium for quickly assigning attributes to parts based on CATIA

By automatically assigning part properties in CATIA using macro tools and built-in algorithms, the problem of manual attribute assignment is solved, which is time-consuming and error-prone, and improves the efficiency and accuracy of part attribute assignment.

CN119783184APending Publication Date: 2025-04-08GUANGZHOU RISONG HOKUTO AUTOMOTIVE EQUIP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411966438.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-30
Publication Date
2025-04-08

AI Technical Summary

Technical Problem

CATIA software requires manual input of attribute information in part assignment, which results in time-consuming and prone to errors, affecting the efficiency and quality of product development.

Method used

The preset attribute assignment macro program is called through CATIA's macro tool, and the attribute assignment window interface is generated, the part type is selected and the part color and material attributes are automatically assigned. The part quality is calculated using CATIA's built-in volume calculation algorithm and mass calculation algorithm.

Benefits of technology

It reduces the operation of manually adding part properties, reduces the possibility of errors in manual property assignment operations, improves the efficiency and accuracy of part properties assignment, and solves the time and quality problems caused by manual input.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119783184A_ABST
    Figure CN119783184A_ABST
Patent Text Reader

Abstract

The present invention discloses a method, system, terminal device and storage medium for quickly assigning attributes to parts based on CATIA. The method generates an attribute assignment window interface by calling a preset attribute assignment macro program through a CATIA macro tool, selects a part type and selects a part through the attribute assignment window interface, assigns the color and material attributes corresponding to the part type to the selected part, and obtains a product after the part attributes are assigned, that is, an attribute assignment macro program is set for setting the color and material attributes uniquely corresponding to the part type, and then the color and material attributes are assigned to the selected part to be assigned attributes, thereby reducing the operation of manually adding the color and attributes of the part, reducing the errors in the manual attribute assignment operation, improving the efficiency and accuracy of the part attribute assignment, and solving the problem that the manual attribute assignment of parts is complicated due to the large number of parts, resulting in a high time consumption and easy errors in the manual input of part attribute information, thereby affecting the efficiency and quality of product development.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer application, and in particular to a method, system, terminal equipment and storage medium for quickly assigning attributes to parts based on CATIA. Background Art

[0002] CATIA (Computer-Aided Three-Dimensional Interactive Application) is a comprehensive 3D design and engineering software developed by Dassault Systèmes. With its excellent 3D modeling and design capabilities and a wide range of applications, CATIA has become the engine of digital manufacturing. It provides an integrated design environment that integrates mechanical design, electrical design, and software development, allowing engineers from different disciplines to work together on the same platform, improving the efficiency of teamwork and the overall quality of product development.

[0003] Although CATIA software has made significant progress in the fields of design and engineering, it is still necessary to manually input attribute information for parts when assigning attributes to parts. In actual applications, the manual method of assigning attributes to parts is complicated due to the large number of parts in the design example. This not only makes manual input of part attribute information time-consuming, but also easily leads to errors in manual input, which in turn affects the efficiency and quality of product development. Summary of the invention

[0004] The present invention provides a method, system, terminal device and storage medium for rapid attribute assignment of parts based on CATIA, which can solve the problem that the manual attribute assignment of parts is complicated due to the large number of parts in the design example, which not only leads to a high time consumption in manually inputting part attribute information, but also easily leads to errors in manual input, thereby affecting the efficiency and quality of product development.

[0005] In order to solve the above technical problems, an embodiment of the present invention provides a method for quickly assigning attributes to parts based on CATIA, comprising:

[0006] Obtain the 3D model of the product to be assigned part attributes through CATIA;

[0007] Call the preset attribute macro program through CATIA's macro tool and perform the following operations:

[0008] Generate an attribute assignment window interface; wherein the attribute assignment window interface includes a part selection option and a part type option;

[0009] Respond to the part type selection instruction of the part type option in the attribute assignment window interface to determine the part type;

[0010] In response to the command of selecting part options, the parts are selected from the three-dimensional model of the product to be assigned part attributes on the CATIA interface;

[0011] According to the part type, color and material properties are assigned to one or more selected parts to obtain a three-dimensional product model after the part properties are assigned; wherein the part type option includes several part types; each part type corresponds to a color and material property.

[0012] Furthermore, the attribute assignment window interface further includes: a part number display window;

[0013] The part number display window is used to display the part number of the selected part.

[0014] Furthermore, the attribute assignment window interface further includes: a part attribute display window;

[0015] The part attribute display window is used to display the color and material attributes corresponding to each part type in the part type option.

[0016] Furthermore, when the preset attribute assignment macro program is called, the following operations are also performed:

[0017] According to the color of the parts, call the volume calculation algorithm and mass calculation algorithm built into CATIA;

[0018] The mass of each part in the three-dimensional model of the product after assigning part attributes is calculated based on the volume calculation algorithm and mass calculation algorithm built into CATIA and the material density corresponding to the part color; wherein each part color corresponds to a part type density.

[0019] Based on the above method embodiment, the present invention provides a corresponding system embodiment;

[0020] An embodiment of the present invention provides a CATIA-based parts rapid attribute assignment system, including: a product acquisition module and an attribute assignment module;

[0021] The product acquisition module is used to acquire the three-dimensional model of the product to be assigned part attributes through CATIA;

[0022] The attribute assignment module is used to call the preset attribute assignment macro program through the CATIA macro tool to perform the following operations:

[0023] Generate an attribute assignment window interface; wherein the attribute assignment window interface includes a part selection option and a part type option;

[0024] Respond to the part type selection command of the part type option in the attribute assignment window interface to determine the part type.

[0025] In response to the command to select part options, select parts from the 3D model of the product to be assigned part attributes on the CATIA interface.

[0026] According to the part type, color and material properties are assigned to one or more selected parts to obtain a three-dimensional product model after the part properties are assigned; wherein the part type option includes several part types; each part type corresponds to a color and material property.

[0027] Furthermore, the attribute assignment window interface further includes: a part number display window;

[0028] The part number display window is used to display the part number of the selected part.

[0029] Furthermore, the attribute assignment window interface further includes: a part attribute display window;

[0030] The part attribute display window is used to display the color and material attributes corresponding to each part type in the part type option.

[0031] Furthermore, when the attribute assignment module is used to call a preset attribute assignment macro program through a macro tool of CATIA, the following operations are also performed:

[0032] According to the color of the parts, call the volume calculation algorithm and mass calculation algorithm built into CATIA;

[0033] The mass of each part in the three-dimensional model of the product after assigning part attributes is calculated based on the volume calculation algorithm and mass calculation algorithm built into CATIA and the material density corresponding to the part color; wherein each part color corresponds to a part type density.

[0034] Based on the above-mentioned method embodiment, the present invention provides a corresponding terminal device embodiment, including: a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, a CATIA-based part rapid attribute assignment method as described in the present invention is implemented.

[0035] Based on the above method embodiment, the present invention provides a corresponding computer-readable storage medium embodiment, including: a stored computer program, which controls the device where the computer-readable storage medium is located to execute a CATIA-based part rapid attribute assignment method as described in the present invention when the computer program is running.

[0036] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0037] The present invention calls a preset attribute assignment macro instruction through the macro tool of CATIA to generate an attribute assignment window interface, selects a part type through the attribute assignment window interface, selects a part of a product three-dimensional model to be assigned part attributes, and assigns color and material attributes corresponding to the part type to the selected part to obtain a product three-dimensional model after the part attributes are assigned. That is, the present invention sets an attribute assignment macro instruction for color and material attributes uniquely corresponding to the part type, and uses the attribute assignment macro instruction to automatically assign color and material attributes to the selected part to be assigned attributes, thereby reducing the operation of manually adding the color and attributes of the part, reducing the errors in the manual attribute assignment operation, improving the efficiency and accuracy of the part attribute assignment, and solving the problem that the manual part attribute assignment method is complicated due to the large number of parts in the design example, which not only leads to a high time consumption in manually inputting part attribute information, but also easily leads to errors in the manual input, thereby affecting the efficiency and quality of product development. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 : A flowchart of a method for quickly assigning attributes to parts based on CATIA provided in an embodiment of the present invention;

[0039] Figure 2 : A system structure diagram of a CATIA-based parts rapid attribute assignment system provided in an embodiment of the present invention;

[0040] Figure 3 : An example diagram of an attribute assignment window interface provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0041] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0042] Embodiment 1:

[0043] Reference Figure 1 : A flowchart of a method for quickly assigning attributes to parts based on CATIA provided by an embodiment of the present invention; the method at least comprises the following steps:

[0044] Step S1: Obtain the three-dimensional model of the product to be assigned part attributes through CATIA;

[0045] In this embodiment, after the technician starts to open the CATIA software, the technician clicks the "File" option in the menu bar of the CATIA software, then clicks the "Import" option, and finally selects the product 3D model file to which the part attributes are to be assigned. The CATIA software responds to the file import instruction, obtains and opens the product 3D model file to which the part attributes are to be assigned.

[0046] Step S2: Call the preset attribute macro program through the CATIA macro tool and perform the following operations:

[0047] Generate an attribute assignment window interface; wherein the attribute assignment window interface includes a part selection option and a part type option;

[0048] In this embodiment, after the CATIA software obtains and opens the product 3D model file to which the part attributes are to be assigned, the technician clicks the "Tools" option in the menu bar of the CATIA software, then clicks the macro option and selects the preset attribute assignment macro program, and the CATIA software responds to the call of the preset attribute assignment macro program instruction, imports and runs the preset attribute assignment macro program, and generates an attribute assignment window interface;

[0049] In this embodiment, the attribute assignment window interface also includes: a part number display window and a part attribute display window; wherein the part number display window is used to display the part number of the selected part; and the part attribute display window is used to display the color and material attributes corresponding to each part type in the part type option.

[0050] For illustration, the generated attribute window interface can be referred to Figure 3 , Figure 3 Area 1 is the part type option. Figure 3 Area 2 is the part property display window. Figure 3 Area 3 is for selecting part options. Figure 3 Area 4 is the part number display window.

[0051] Respond to the part type selection instruction of the part type option in the attribute assignment window interface to determine the part type;

[0052] In this embodiment, the technician clicks on the part type option in the attribute assignment window interface and selects the part type. The program responds to the part type selection instruction of the part type option in the attribute assignment window interface and determines and displays the part type.

[0053] Indicatively, the technician clicks Figure 3 The program responds to the part type selection instruction by clicking the downward triangle symbol in area 1. Figure 3 The technician's selected part type is displayed in Area 1 of the Figure 3The color and material properties corresponding to the part type selected by the technician are displayed in area 2; wherein the material property may be a material model.

[0054] In response to the command of selecting part options, the parts are selected from the three-dimensional model of the product to be assigned part attributes on the CATIA interface;

[0055] In this embodiment, after determining the part type, the technician can click on the attribute assignment window interface to select the part option. After the program responds to the instruction to select the part option, the technician can directly click on the part in the three-dimensional model of the product to which the part attributes are to be assigned on the CATIA interface to select the part.

[0056] Indicatively, after the part type is determined and the technician clicks Figure 3 After selecting area 3 (Select Part), the technician can directly click on the part in the 3D model of the product to be assigned part attributes on the CATIA interface to select the part.

[0057] According to the part type, color and material properties are assigned to one or more selected parts to obtain a three-dimensional product model after the part properties are assigned; wherein the part type option includes several part types; each part type corresponds to a color and material property.

[0058] In this embodiment, when the technician determines the part type and clicks the Select Part option and clicks on the part in the product three-dimensional model to which part attributes are to be assigned on the CATIA interface, the macro program responds to the Select Part instruction and assigns color and material attributes to the selected one or more parts according to the selected part type, and displays the part number of the selected part in the attribute assignment window interface.

[0059] Indicatively, when the technician determines the part type and clicks the Select Part option and clicks on the part in the product 3D model to be assigned part attributes on the CATIA interface, the macro program responds to the Select Part instruction and assigns color and material attributes to one or more parts selected on the CATIA software interface according to the selected part type, and displays the part number of the selected part on the CATIA software interface. Figure 3 in zone 4.

[0060] In this embodiment, the part types include but are not limited to gaskets, aluminum parts, MC NYLON, polyurethane, Cu, fiberglass, PVC, support blocks, clamping blocks, limit blocks, CuCr and stainless steel; the material attributes can be material models; the part type, color and material attributes can be set by technicians by modifying the preset attribute assignment macro program according to actual conditions.

[0061] In this embodiment, when the preset attribute assignment macro program is called in step S2, the following operations are also performed:

[0062] According to the color of the parts, call the volume calculation algorithm and mass calculation algorithm built into CATIA;

[0063] The mass of each part in the three-dimensional model of the product after assigning part attributes is calculated based on the volume calculation algorithm and mass calculation algorithm built into CATIA and the material density corresponding to the part color; wherein each part color corresponds to a part type density.

[0064] Embodiment 2:

[0065] Reference Figure 2 : A system structure diagram of a CATIA-based parts rapid attribute assignment system provided in an embodiment of the present invention, the system comprising: a product acquisition module and an attribute assignment module;

[0066] The product acquisition module is used to acquire the three-dimensional model of the product to be assigned part attributes through CATIA;

[0067] The attribute assignment module is used to call the preset attribute assignment macro program through the CATIA macro tool to perform the following operations:

[0068] Generate an attribute assignment window interface; wherein the attribute assignment window interface includes a part selection option and a part type option;

[0069] Respond to the part type selection command of the part type option in the attribute assignment window interface to determine the part type.

[0070] In response to the command to select part options, select parts from the 3D model of the product to be assigned part attributes on the CATIA interface.

[0071] According to the part type, color and material properties are assigned to one or more selected parts to obtain a three-dimensional product model after the part properties are assigned; wherein the part type option includes several part types; each part type corresponds to a color and material property.

[0072] In this embodiment, the attribute assignment window interface further includes: a part number display window;

[0073] The part number display window is used to display the part number of the selected part.

[0074] In this embodiment, the attribute assignment window interface further includes: a part attribute display window;

[0075] The part attribute display window is used to display the color and material attributes corresponding to each part type in the part type option.

[0076] In this embodiment, the part types include but are not limited to gaskets, aluminum parts, MCNYLON, polyurethane, Cu, fiberglass, PVC, support blocks, clamping blocks, limit blocks, CuCr and stainless steel; the material attributes can be material models; the part type, color and material attributes can be set by technicians by modifying the preset attribute assignment macro program according to actual conditions.

[0077] In this embodiment, when the attribute assignment module is used to call a preset attribute assignment macro program through a macro tool of CATIA, the following operations are also performed:

[0078] According to the color of the parts, call the volume calculation algorithm and mass calculation algorithm built into CATIA;

[0079] The mass of each part in the three-dimensional model of the product after assigning part attributes is calculated based on the volume calculation algorithm and mass calculation algorithm built into CATIA and the material density corresponding to the part color; wherein each part color corresponds to a part type density.

[0080] Based on the above method embodiment, another embodiment is provided;

[0081] Another embodiment of the present invention provides a CATIA-based part rapid attribute assignment terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and when the processor executes the computer program, it implements the CATIA-based part rapid attribute assignment method described in any one of the above method embodiments of the present invention.

[0082] Exemplarily, the computer program may be divided into one or more modules / units, which are stored in the memory and executed by the processor to complete the present invention. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program in the CATIA-based part rapid attribute assignment terminal device.

[0083] The terminal device for quickly assigning attributes to parts based on CATIA can be a computing device such as a desktop computer, a notebook, a PDA, and a cloud server. The terminal device for quickly assigning attributes to parts based on CATIA can include, but is not limited to, a processor and a memory. Those skilled in the art can understand that, for example, the terminal device for quickly assigning attributes to parts based on CATIA can also include input and output devices, network access devices, buses, etc.

[0084] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the CATIA-based fast attribute terminal device, and uses various interfaces and lines to connect the various parts of the CATIA-based fast attribute terminal device.

[0085] The memory can be used to store the computer program and / or module, and the processor realizes various functions of the terminal device for rapid attribute assignment of parts based on CATIA by running or executing the computer program and / or module stored in the memory and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0086] Based on the above method embodiment, another embodiment is provided;

[0087] A storage medium provided in another embodiment of the present invention includes a stored computer program, wherein when the computer program is running, the device where the storage medium is located is controlled to execute a CATIA-based method for rapid attribute assignment of parts as described in any one of the above method embodiments of the present invention.

[0088] Wherein, the above-mentioned storage medium is a computer-readable storage medium. The module / unit integrated by the CATIA-based parts rapid attribute system / terminal equipment can be stored in a computer-readable storage medium if it is implemented in the form of a software functional unit and sold or used as an independent product. Based on such an understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned method embodiments can be implemented. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc.

[0089] It should be noted that the above-mentioned terminal device may include, but is not limited to, a processor and a memory. Those skilled in the art will understand that the above-mentioned terminal device is merely an example and does not constitute a limitation on the terminal device. It may include more or fewer components, or a combination of certain components, or different components.

[0090] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for rapid attribute assignment of parts based on CATIA, characterized in that: include: Obtain the 3D model of the product to be assigned part attributes through CATIA; Call the preset attribute macro program through CATIA's macro tool and perform the following operations: Generate an attribute assignment window interface; wherein the attribute assignment window interface includes a part selection option and a part type option; Respond to the part type selection instruction of the part type option in the attribute assignment window interface to determine the part type; In response to the command of selecting part options, the parts are selected from the three-dimensional model of the product to be assigned part attributes on the CATIA interface; According to the part type, color and material properties are assigned to one or more selected parts to obtain a three-dimensional product model after the part properties are assigned; wherein the part type option includes several part types; each part type corresponds to a color and material property.

2. The method for rapid attribute assignment of parts based on CATIA according to claim 1, characterized in that: The attribute assignment window interface also includes: a part number display window; The part number display window is used to display the part number of the selected part.

3. The method for rapid attribute assignment of parts based on CATIA according to claim 2 is characterized in that: The attribute assignment window interface also includes: a part attribute display window; The part attribute display window is used to display the color and material attributes corresponding to each part type in the part type option.

4. The method for rapid attribute assignment of parts based on CATIA according to claim 3 is characterized in that: When the preset attribute assignment macro program is called, the following operations are also performed: According to the color of the parts, call the volume calculation algorithm and mass calculation algorithm built into CATIA; The mass of each part in the three-dimensional model of the product after assigning part attributes is calculated based on the volume calculation algorithm and mass calculation algorithm built into CATIA and the material density corresponding to the part color; wherein each part color corresponds to a part type density.

5. A CATIA-based parts rapid attribute system, characterized in that: include: Product acquisition module and attribute assignment module; The product acquisition module is used to acquire the three-dimensional model of the product to be assigned part attributes through CATIA; The attribute assignment module is used to call the preset attribute assignment macro program through the CATIA macro tool to perform the following operations: Generate an attribute assignment window interface; wherein the attribute assignment window interface includes a part selection option and a part type option; Respond to the part type selection command of the part type option in the attribute assignment window interface to determine the part type. In response to the command to select part options, select parts from the 3D model of the product to be assigned part attributes on the CATIA interface. According to the part type, color and material properties are assigned to one or more selected parts to obtain a three-dimensional product model after the part properties are assigned; wherein the part type option includes several part types; each part type corresponds to a color and material property.

6. A CATIA-based parts rapid attribute assignment system according to claim 5, characterized in that: The attribute assignment window interface also includes: a part number display window; The part number display window is used to display the part number of the selected part.

7. The CATIA-based parts rapid attribute assignment system according to claim 6, characterized in that: The attribute assignment window interface also includes: a part attribute display window; The part attribute display window is used to display the color and material attributes corresponding to each part type in the part type option.

8. The CATIA-based parts rapid attribute assignment system according to claim 7, characterized in that: In the case where the attribute assignment module is used to call a preset attribute assignment macro program through a macro tool of CATIA, the following operations are also performed: According to the color of the parts, call the volume calculation algorithm and mass calculation algorithm built into CATIA; The mass of each part in the three-dimensional model of the product after assigning part attributes is calculated based on the volume calculation algorithm and mass calculation algorithm built into CATIA and the material density corresponding to the part color; wherein each part color corresponds to a part type density.

9. A terminal device for rapid attribute assignment of parts based on CATIA, comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, a method for rapid attribute assignment of parts based on CATIA as described in any one of claims 1 to 4 is implemented.

10. A storage medium, characterized in that: The storage medium includes a stored computer program, wherein when the computer program is running, the device where the storage medium is located is controlled to execute a CATIA-based method for rapid attribute assignment of parts as described in any one of claims 1 to 4.