Cad-based model file conversion method and device, electronic equipment and storage medium
By receiving model files input by users, determining their corresponding CAD software, and generating parameter mapping tables, the problem of model data conversion and sharing between different CAD software is solved, improving conversion accuracy and efficiency, and promoting component selection and reuse.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- 粤港澳大湾区(广东)国创中心
- Filing Date
- 2025-02-07
- Publication Date
- 2026-07-07
AI Technical Summary
The conversion and sharing of model data between different CAD software suffers from accuracy and efficiency issues, resulting in low efficiency in component selection and reuse.
By receiving the model file input by the user, determining its corresponding CAD software, extracting features and generating a parameter mapping table, and using deformation requests to convert the model file between different CAD software.
It improves the accuracy and efficiency of model file conversion, and promotes the efficiency of component selection and reuse.
Smart Images

Figure CN120011310B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data conversion technology, and in particular to CAD-based model file conversion methods and apparatus, electronic devices and storage media. Background Technology
[0002] With the rapid development of technology, CAD software has become increasingly diversified and is booming. Manufacturers, based on different needs and preferences, are adopting various CAD tools. Even within the same manufacturer, at different stages of development, CAD software may be changed in response to technological innovations or project requirements. However, the basic models created by these CAD software programs are often in proprietary formats and cannot be used with other CAD software. If a non-native CAD software is used to open the model, key parameter information may be lost. This necessitates that designers use CAD software compatible with the model to access and edit it, ensuring the generation of a model that meets the required specifications.
[0003] Currently, in the process of component selection, manufacturers tend to reuse existing, outdated components within the company or directly adopt standardized parts provided by component suppliers to improve efficiency, reduce costs, and promote resource recycling. This practice not only helps shorten product development cycles but also enhances product reliability and maintainability, while promoting collaboration between upstream and downstream partners in the supply chain. Therefore, how to convert and share model data between different CAD software, improve the accuracy and efficiency of model file conversion, and thus improve the efficiency of component selection and reuse, has become a crucial issue that urgently needs to be addressed in the field of industrial manufacturing design. Summary of the Invention
[0004] The main objective of this application is to propose a CAD-based model file conversion method, apparatus, electronic device, and storage medium, which aims to convert and share model data between different CAD software, improve the accuracy and efficiency of model file conversion, and thereby improve the efficiency of component selection and reuse.
[0005] To achieve the above objectives, a first aspect of this application proposes a CAD-based model file conversion method, the method comprising:
[0006] Receive the first model file input by the user and determine the first CAD software corresponding to the first model file;
[0007] Determine the deformation parameters corresponding to the first model file, and generate a corresponding parameter mapping table based on the deformation parameters;
[0008] A deformation request is generated based on the first model file, the first CAD software, and the parameter mapping table, and a second model file corresponding to the second CAD software is output based on the deformation request.
[0009] In some embodiments, determining the first CAD software corresponding to the first model file includes:
[0010] Feature extraction is performed on the file format corresponding to the first model file to obtain the feature extraction result;
[0011] Based on the preset list of CAD software formats and the feature extraction results, the first CAD software corresponding to the first model file is determined.
[0012] In some embodiments, determining the first CAD software corresponding to the first model file based on a preset list of CAD software formats and the feature extraction results includes:
[0013] The feature extraction results are compared with the contents of the CAD software format list to determine the first CAD software corresponding to the first model file.
[0014] In some embodiments, determining the deformation parameters corresponding to the first model file includes:
[0015] The first model file is input into the analysis model to obtain the deformation parameters corresponding to the first model file. The analysis model is pre-trained based on third model files corresponding to several CAD software programs.
[0016] In some embodiments, generating a corresponding parameter mapping table based on the deformation parameters includes:
[0017] Determine the mapping relationship between the deformation parameters and the 3D model variables, and based on the deformation parameters and the mapping relationship, obtain the parameter mapping table corresponding to the deformation parameters.
[0018] In some embodiments, generating a deformation request based on the first model file, the first CAD software, and the parameter mapping table includes:
[0019] Based on the first model file, the first CAD software, and the parameter mapping table, determine whether the first model file can be deformed.
[0020] If deformation is possible, a deformation request is generated based on the CAD interface corresponding to the second CAD software.
[0021] In some embodiments, the step of outputting a second model file corresponding to the second CAD software based on the deformation request specifically includes:
[0022] The deformation request is obtained, and based on the deformation request, a corresponding second model file is generated using the second CAD software.
[0023] To achieve the above objectives, a second aspect of this application provides a model file conversion apparatus, the apparatus comprising: a receiving module, a processing module, and a deformation module;
[0024] The receiving module is used to receive the first model file input by the user and determine the first CAD software corresponding to the first model file;
[0025] The processing module is used to determine the deformation parameters corresponding to the first model file, and generate a corresponding parameter mapping table based on the deformation parameters;
[0026] The deformation module is used to generate a deformation request based on the first model file, the first CAD software, and the parameter mapping table, and output a second model file corresponding to the second CAD software based on the deformation request.
[0027] To achieve the above objectives, a third aspect of this application provides an electronic device, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the CAD-based model file conversion method described in the first aspect.
[0028] To achieve the above objectives, a fourth aspect of the present application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the CAD-based model file conversion method described in the first aspect.
[0029] The CAD-based model file conversion method, apparatus, electronic device, and storage medium proposed in this application receive a first model file input by a user and determine the first CAD software corresponding to the first model file. This allows for accurate determination of the first CAD software based on the model file format, facilitating subsequent judgment on whether the model file corresponding to the CAD software can be converted. By determining the deformation parameters corresponding to the first model file and generating a corresponding parameter mapping table based on the deformation parameters, the deformation parameters corresponding to the first model file can be accurately determined, facilitating the generation of the corresponding parameter mapping table based on the deformation parameters, and thus facilitating subsequent conversion of the model file corresponding to the CAD software. By determining whether the model file corresponding to the CAD software can be converted, a deformation request is generated, and a second model file corresponding to the second CAD software is output based on the deformation request. This enables model data conversion and sharing between different CAD software, improving the accuracy and efficiency of model file conversion, and thus improving the efficiency of component selection and reuse. Attached Figure Description
[0030] Figure 1 This is a flowchart of a CAD-based model file conversion method provided in an embodiment of this application;
[0031] Figure 2 yes Figure 1 The flowchart of step S101 in the text;
[0032] Figure 3 yes Figure 1 The flowchart of step S102 in the document;
[0033] Figure 4 yes Figure 1 The flowchart of step S103 in the process;
[0034] Figure 5 yes Figure 4 The flowchart of step S401 in the process;
[0035] Figure 6 This is a schematic diagram of the structure of the model file conversion device provided in the embodiments of this application;
[0036] Figure 7 This is a schematic diagram of the hardware structure of the electronic device provided in the embodiments of this application. Detailed Implementation
[0037] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0038] It should be noted that although functional modules are divided in the device schematic diagram and a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first," "second," etc., in the specification, claims, and the aforementioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
[0039] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.
[0040] First, let's analyze some of the terms used in this application:
[0041] Information extraction is a text processing technique that extracts factual information such as entities, relationships, and events from natural language text and outputs it as structured data. Information extraction is a technique for extracting specific information from text data. Text data is composed of specific units, such as sentences, paragraphs, and chapters. Text information is composed of smaller, specific units, such as characters, words, phrases, sentences, paragraphs, or combinations of these units. Extracting noun phrases, names of people, and place names from text data is an example of text information extraction. Of course, text information extraction techniques can extract information of various types.
[0042] Computer-Aided Design (CAD) software is a type of software that uses computers and their graphics devices to assist designers in their work. It is widely used in various design fields, including but not limited to architectural engineering, mechanical design, electrical design, and industrial design. CAD software not only allows for the design of two-dimensional (2D) graphics, such as curves and shapes, but more importantly, it can also create and edit 3D models. By providing rich drawing tools and precise design functions, CAD software can greatly improve design efficiency and accuracy, enabling designers to complete design tasks more quickly and accurately.
[0043] Based on this, embodiments of this application provide a CAD-based model file conversion method and apparatus, electronic device and storage medium, which aim to convert and share model data between different CAD software, improve the accuracy and efficiency of model file conversion, and thus improve the efficiency of component selection and reuse.
[0044] The CAD-based model file conversion method, apparatus, electronic device, and storage medium provided in this application are specifically described through the following embodiments. First, the CAD-based model file conversion method in this application is described.
[0045] The embodiments of this application can acquire and process relevant data based on artificial intelligence technology. Artificial intelligence (AI) refers to the theories, methods, technologies, and application systems that use digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use that knowledge to obtain optimal results.
[0046] Foundational technologies for artificial intelligence generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing, operating / interactive systems, and mechatronics. AI software technologies mainly encompass computer vision, robotics, biometrics, speech processing, natural language processing, and machine learning / deep learning.
[0047] The CAD-based model file conversion method provided in this application relates to the field of data conversion technology. This CAD-based model file conversion method can be applied to a terminal, a server, or software running on either a terminal or a server. In some embodiments, the terminal can be a smartphone, tablet, laptop, desktop computer, etc.; the server can be configured as an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms; the software can implement the application of the CAD-based model file conversion method, but is not limited to the above forms.
[0048] This application can be used in a wide variety of general-purpose or special-purpose computer system environments or configurations. Examples include: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, and distributed computing environments including any of the above systems or devices. This application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform specific tasks or implement specific abstract data types. This application can also be practiced in distributed computing environments where tasks are performed by remote processing devices connected via a communication network. In distributed computing environments, program modules can reside in local and remote computer storage media, including storage devices.
[0049] It should be noted that in all specific embodiments of this application, when processing data related to user identity or characteristics, such as user information, user behavior data, user historical data, and user location information, user permission or consent will be obtained first. Furthermore, the collection, use, and processing of this data will comply with relevant laws, regulations, and standards. In addition, when embodiments of this application require access to sensitive personal information of users, separate permission or consent from the user will be obtained through pop-ups or redirects to confirmation pages. Only after obtaining the user's separate permission or consent will the necessary user-related data for the normal operation of the embodiments of this application be obtained.
[0050] Figure 1 This is an optional flowchart of the CAD-based model file conversion method provided in the embodiments of this application. Figure 1 The method may include, but is not limited to, steps S101 to S103.
[0051] Step S101: Receive the first model file input by the user and determine the first CAD software corresponding to the first model file;
[0052] Step S102: Determine the deformation parameters corresponding to the first model file, and generate a corresponding parameter mapping table based on the deformation parameters;
[0053] Step S103: Generate a deformation request based on the first model file, the first CAD software, and the parameter mapping table, and output the second model file corresponding to the second CAD software based on the deformation request.
[0054] Steps S101 to S103 as illustrated in this embodiment of the application, by receiving the first model file input by the user and determining the first CAD software corresponding to the first model file, the first CAD software to be created can be accurately determined based on the model file format, which facilitates subsequent judgment on whether the model file corresponding to the CAD software can be converted; by determining the deformation parameters corresponding to the first model file, the deformation parameters corresponding to the first model file can be accurately determined, which facilitates the generation of the corresponding parameter mapping table based on the deformation parameters, thereby facilitating subsequent conversion of the model file corresponding to the CAD software; by determining whether the model file corresponding to the CAD software can be converted, a deformation request is generated, and a second model file corresponding to the second CAD software is output based on the deformation request, enabling model data conversion and sharing between different CAD software, improving the accuracy and efficiency of model file conversion, and thus improving the efficiency of component selection and reuse.
[0055] Please see Figure 2In some embodiments, step S101 may include, but is not limited to, steps S201 to S202:
[0056] Step S201: Extract features from the file format corresponding to the first model file to obtain the feature extraction results;
[0057] Step S202: Based on the preset list of CAD software formats and the feature extraction results, determine the first CAD software corresponding to the first model file.
[0058] In step S201 of some embodiments, after receiving the first model file input by the user, feature extraction can be performed on the file format corresponding to the first model file. Specifically, by using "." in the file name as a separator, the suffix (also known as the file extension) of the first model file is extracted to obtain the feature extraction result. Of course, this step can be implemented by, but is not limited to, writing a programming language.
[0059] It should be noted that each model file has its own unique file extension, which is the part after the last dot (.) in the file name. It is usually used to indicate the file type or format. For example, in the file name example.dwg, the file extension is .dwg.
[0060] In step S202 of some embodiments, it is necessary to first create a list of CAD software formats containing CAD software and its corresponding file extensions (i.e., feature extraction results). This list of CAD software formats can be hard-coded in the program or read from an external configuration file or database. After the list of CAD software formats is created, the feature extraction results can be compared with the contents of the list of CAD software formats. That is, the list can be traversed by means of, but not limited to, writing a programming language to check whether the file extension (i.e., feature extraction result) exists in the file extension list of a certain CAD software. If it exists, the first CAD software corresponding to the first model file can be directly determined.
[0061] Step S101, as shown in the embodiment of this application, extracts the file format features corresponding to the first model file and compares them with a preset list of CAD software formats. This can automatically, quickly, and accurately identify which CAD software created the model file or which CAD software should open it, making it easier to determine whether the model file corresponding to the CAD software can be converted.
[0062] Please see Figure 3 In some embodiments, step S102 may include, but is not limited to, steps S301 to S302:
[0063] Step S301: Determine the deformation parameters corresponding to the first model file;
[0064] Step S302: Generate a corresponding parameter mapping table based on the deformation parameters.
[0065] In step S301 of some embodiments, it is necessary to collect third model files corresponding to several CAD software in advance, confirm the model attributes, and determine the type, requirements and objectives of deformation. Based on the model attributes, the type, requirements and objectives of deformation, a corresponding analysis model is trained to analyze the deformation parameters corresponding to the first model file. After the analysis model is trained, the deformation parameters corresponding to the first model file can be directly obtained by inputting the first model file into the analysis model.
[0066] In step S302 of some embodiments, after the deformation parameters are determined, they need to be used as query conditions. This can be done, but is not limited to, by writing query statements to search for the corresponding 3D model variables in a data structure table containing deformation parameters and 3D model variables. If a match is found, the identifier corresponding to the 3D model variable is obtained, resulting in several query results. These results reflect the mapping relationship between the deformation parameters and the 3D model variables. The query results are then converted into a table format to obtain several parameter mapping tables corresponding to the deformation parameters. If no match is found in the data structure table containing deformation parameters and 3D model variables, an error may need to be reported or other recovery measures may need to be taken.
[0067] It should be noted that the data structure table is a set of key-value pairs defined based on the results of pre-organizing official documents, tutorials, professional books or online resources. The key is the name of the deformation parameter, and the value is the identifier of the 3D model variable associated with that parameter (such as variable name, path or index).
[0068] Step S102, as shown in the embodiment of this application, can accurately determine the deformation parameters corresponding to the first model file by determining the deformation parameters corresponding to the first model file, which facilitates the generation of the corresponding parameter mapping table based on the deformation parameters, and thus facilitates the subsequent conversion of the model file corresponding to the CAD software.
[0069] Please see Figure 4 In some embodiments, step S103 may include, but is not limited to, steps S401 to S402:
[0070] Step S401: Generate a deformation request based on the first model file, the first CAD software, and the parameter mapping table;
[0071] Step S402: Output the second model file corresponding to the second CAD software based on the deformation request.
[0072] In some embodiments, step S401 may include, but is not limited to, determining whether the first model file can be deformed based on the first model file, the first CAD software, and the parameter mapping table; if deformation is possible, generating a deformation request based on the CAD interface corresponding to the second CAD software. Details are as follows.
[0073] In step S402 of some embodiments, after obtaining the deformation request, it is necessary to first determine the specific content of the deformation request, including the type of deformation, the degree of deformation, and specific parameters that may be involved. Then, start the second CAD software for generating the second model file and import the first model file. Next, find the deformation-related tools or commands in the toolbar or menu of the second CAD software, and select the appropriate deformation tool and set the deformation parameters according to the specific requirements of the deformation request. Finally, according to the deformation request, set the parameters required for deformation, such as the direction, distance, and angle of deformation, and apply the set deformation parameters to perform the deformation operation. After the deformation operation is completed, output the second model file corresponding to the second CAD software.
[0074] Step S103, as shown in the embodiment of this application, determines whether the model file corresponding to the CAD software can be converted, generates a deformation request, and outputs the second model file corresponding to the second CAD software based on the deformation request. This enables model data conversion and sharing between different CAD software, improves the accuracy and efficiency of model file conversion, and thus improves the efficiency of component selection and reuse.
[0075] Please see Figure 5 In some embodiments, step S401 may include, but is not limited to, steps S501 to S502:
[0076] Step S501: Based on the first model file, the first CAD software, and the parameter mapping table, determine whether the first model file can be deformed;
[0077] Step S502: If deformation is possible, a deformation request is generated based on the CAD interface corresponding to the second CAD software.
[0078] In step S501 of some embodiments, after obtaining the first model file, the first CAD software, and the parameter mapping table, it is necessary to first confirm whether the first model file is compatible with the second CAD software. This usually involves a file format compatibility check. If the file formats are incompatible, format conversion may be required first. If the file formats are compatible, the parameter mapping table needs to be further analyzed to confirm whether the parameters contained therein are sufficient to support the required deformation operation on the first model file, and then determine whether the first model file can be deformed. If the model file is compatible and the parameter mapping table is complete, it is determined that the first model file can be deformed. If the first model file cannot be deformed, an error is reported and the user is reminded.
[0079] In step S502 of some embodiments, after determining that the first model file can be deformed, it is necessary to determine the required deformation parameters and their target values according to the parameter mapping table, and then generate a deformation request through the CAD interface (i.e., programming interface) corresponding to the second CAD software by writing a deformation script or command. The script or command should include references to the model file, specification of deformation parameters, and instructions to perform deformation operations.
[0080] Step S401, as shown in the embodiment of this application, determines whether the second CAD software can deform the first model file and generates a deformation request based on the CAD interface corresponding to the second CAD software. This facilitates subsequent model data conversion and sharing between different CAD software, improves the accuracy and efficiency of model file conversion, and thus improves the efficiency of component selection and reuse.
[0081] Please see Figure 6 This application embodiment also provides a model file conversion device that can implement the above-mentioned CAD-based model file conversion method. The device includes: a receiving module 100, a processing module 200, and a deformation module 300.
[0082] The receiving module 100 is used to receive the first model file input by the user and determine the first CAD software corresponding to the first model file;
[0083] The processing module 200 is used to determine the deformation parameters corresponding to the first model file and generate a corresponding parameter mapping table based on the deformation parameters.
[0084] The deformation module 300 is used to generate a deformation request based on the first model file, the first CAD software and the parameter mapping table, and output a second model file corresponding to the second CAD software based on the deformation request.
[0085] The specific implementation of this model file conversion device is basically the same as the specific implementation of the CAD-based model file conversion method described above, and will not be repeated here.
[0086] This application also provides an electronic device, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the above-described CAD-based model file conversion method. This electronic device can be any smart terminal, including tablet computers, in-vehicle computers, etc.
[0087] Please see Figure 7 , Figure 7 The hardware structure of an electronic device according to another embodiment is illustrated. The electronic device includes:
[0088] The processor 701 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this application.
[0089] The memory 702 can be implemented as a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 702 can store the operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented through software or firmware, the relevant program code is stored in the memory 702 and is called and executed by the processor 701 to implement the CAD-based model file conversion method of the embodiments of this application.
[0090] The input / output interface 703 is used to implement information input and output;
[0091] The communication interface 704 is used to enable communication and interaction between this device and other devices. Communication can be achieved through wired means (such as USB, Ethernet cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.).
[0092] Bus 705 transmits information between various components of the device (e.g., processor 701, memory 702, input / output interface 703, and communication interface 704);
[0093] The processor 701, memory 702, input / output interface 703, and communication interface 704 are connected to each other within the device via bus 705.
[0094] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described CAD-based model file conversion method.
[0095] Memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer-executable programs. Furthermore, memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory may optionally include memory remotely located relative to the processor, and these remote memories can be connected to the processor via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0096] The CAD-based model file conversion method, apparatus, electronic device, and storage medium provided in this application receive a first model file input by a user and determine the first CAD software corresponding to the first model file. This allows for accurate determination of the first CAD software based on the model file format, facilitating subsequent judgment on whether the model file corresponding to the CAD software can be converted. By determining the deformation parameters corresponding to the first model file, the deformation parameters can be accurately determined, facilitating the generation of a corresponding parameter mapping table based on the deformation parameters, thereby facilitating subsequent conversion of the model file corresponding to the CAD software. By determining whether the model file corresponding to the CAD software can be converted, a deformation request is generated, and a second model file corresponding to the second CAD software is output based on the deformation request. This enables model data conversion and sharing between different CAD software, improving the accuracy and efficiency of model file conversion, and thus improving the efficiency of component selection and reuse.
[0097] The embodiments described in this application are for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided by the embodiments of this application. As those skilled in the art will know, with the evolution of technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of this application are also applicable to similar technical problems.
[0098] Those skilled in the art will understand that the technical solutions shown in the figures do not constitute a limitation on the embodiments of this application, and may include more or fewer steps than shown, or combine certain steps, or different steps.
[0099] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0100] Those skilled in the art will understand that all or some of the steps in the methods disclosed above, as well as the functional modules / units in the systems and devices, can be implemented as software, firmware, hardware, or suitable combinations thereof.
[0101] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms “comprising” and “having,” and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0102] It should be understood that in this application, "at least one (item)" means one or more, and "more than" means two or more. "And / or" is used to describe the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: only A exists, only B exists, and both A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (item) of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.
[0103] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of the units described above is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[0104] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0105] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0106] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes multiple instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing programs, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0107] The preferred embodiments of the present application have been described above with reference to the accompanying drawings, but this does not limit the scope of the claims of the present application. Any modifications, equivalent substitutions, and improvements made by those skilled in the art without departing from the scope and substance of the embodiments of the present application shall be within the scope of the claims of the present application.
Claims
1. A method for converting CAD model files, characterized in that, The method includes: Receive the first model file input by the user and determine the first CAD software corresponding to the first model file; The first model file is input into an analysis model that has been pre-trained based on third model files corresponding to several CAD software programs to obtain the deformation parameters corresponding to the first model file. Determine the mapping relationship between the deformation parameters and the 3D model variables, and generate a corresponding parameter mapping table based on the deformation parameters and the mapping relationship; Based on the first model file, the first CAD software, and the parameter mapping table, determine whether the first model file can be deformed. If deformation is possible, a deformation request is generated based on the CAD interface corresponding to the second CAD software, and a corresponding second model file is generated through the second CAD software based on the deformation request.
2. The method according to claim 1, characterized in that, The step of determining the first CAD software corresponding to the first model file includes: Feature extraction is performed on the file format corresponding to the first model file to obtain the feature extraction result; Based on the preset list of CAD software formats and the feature extraction results, the first CAD software corresponding to the first model file is determined.
3. The method according to claim 2, characterized in that, The step of determining the first CAD software corresponding to the first model file based on a preset list of CAD software formats and the feature extraction results includes: The feature extraction results are compared with the contents of the CAD software format list to determine the first CAD software corresponding to the first model file.
4. The method according to claim 1, characterized in that, The first model file is input into an analysis model pre-trained based on third model files corresponding to several CAD software programs to obtain the deformation parameters corresponding to the first model file. The analysis model mentioned above is an intelligent parameter extraction model trained based on multi-source CAD model data.
5. The method according to claim 1, characterized in that, The step of generating a corresponding parameter mapping table based on the deformation parameters includes: Determine the mapping relationship between the deformation parameters and the 3D model variables, and based on the deformation parameters and the mapping relationship, obtain the parameter mapping table corresponding to the deformation parameters; Establish an adaptation mapping relationship between deformation parameters and 3D model variables of different CAD software, and generate a cross-platform universal parameter mapping table based on this mapping relationship.
6. The method according to claim 1, characterized in that, The step of generating a deformation request based on the first model file, the first CAD software, and the parameter mapping table includes: Based on the compatibility between the first and second CAD software and the completeness of the parameter mapping table, determine whether the first model file meets the deformation conversion conditions.
7. The method according to claim 1, characterized in that, The step of outputting the second model file corresponding to the second CAD software based on the deformation request specifically includes: The second CAD software receives the deformation request, loads the corresponding deformation parameters according to the parameter mapping table, performs parametric deformation on the first model file, and generates a second model file adapted to the second CAD software.
8. A model file conversion device, characterized in that, The device includes: a receiving module, a processing module, and a deformation module; The receiving module is used to receive the first model file input by the user and determine the first CAD software corresponding to the first model file; The processing module is used to input the first model file into an analysis model that has been trained in advance based on third model files corresponding to several CAD software, to obtain deformation parameters corresponding to the first model file, to determine the mapping relationship between the deformation parameters and 3D model variables, and to generate a corresponding parameter mapping table based on the deformation parameters and the mapping relationship. The deformation module is used to determine whether the first model file can be deformed based on the first model file, the first CAD software, and the parameter mapping table; if deformation is possible, a deformation request is generated based on the CAD interface corresponding to the second CAD software, and a corresponding second model file is generated through the second CAD software based on the deformation request.
9. An electronic device, characterized in that, The electronic device includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the CAD-based model file conversion method according to any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the CAD-based model file conversion method according to any one of claims 1 to 7.