Model file conversion method and device based on CAD, electronic equipment and storage medium
By receiving the model files input by the user, determining its corresponding CAD software, extracting deformation parameters and generating parameter mapping tables, generating deformation requests to output the converted model files, solving the problem of low conversion efficiency of model files between different CAD software, achieving efficient and accurate model data sharing, and improving the efficiency of component selection and reuse.
Patent Information
- Application Number
- CN202510135756.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-07
- Publication Date
- 2025-05-16
- Estimated Expiration
- 2045-02-07
AI Technical Summary
The prior art is difficult to efficiently and accurately convert and share model files between different CAD software, resulting in inefficient selection and reuse of parts.
By receiving the model file input by the user, determining its corresponding CAD software, extracting deformation parameters and generating parameter mapping tables, generating deformation requests to output the converted model file, and realizing model data conversion and sharing between different CAD software.
It improves the accuracy and efficiency of model file conversion, promotes the efficiency of component selection and reuse, and meets the manufacturer's needs for model data sharing among different CAD software.
Smart Images

Figure CN120011310A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of data conversion, and in particular to a CAD-based model file conversion method and device, electronic equipment, and storage medium. Background Art
[0002] With the rapid development of science and technology, CAD software has shown a trend of diversification and booming development. Major manufacturers have adopted various CAD tools based on different needs and preferences. Even the same manufacturer may change CAD software in response to technological innovation or project needs at different stages of its growth. However, the basic models created by these CAD software are often in proprietary formats and cannot be applied to other CAD software. If you try to open them with non-native CAD software, key parameter information in the model may be lost. This requires designers to use CAD software that matches the model to access and edit it to ensure that the model meets the required specifications.
[0003] At present, in the process of parts selection, in order to improve efficiency, reduce costs and promote resource recycling, manufacturers tend to reuse old parts already in the company, or directly adopt standardized parts provided by parts suppliers. This practice not only helps to shorten the product development cycle, but also enhances the reliability and maintainability of the product, while promoting collaboration between upstream and downstream of 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 then improve the efficiency of parts selection and reuse has become an important issue that needs to be solved in the current industrial manufacturing design field. Summary of the invention
[0004] The main purpose of the embodiments of the present application is to propose a CAD-based model file conversion method and device, electronic device and storage medium, aiming 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-mentioned purpose, a first aspect of an embodiment of the present application proposes a CAD-based model file conversion method, the method comprising:
[0006] Receiving a first model file input by a user, and determining a first CAD software corresponding to the first model file;
[0007] Determining deformation parameters corresponding to the first model file, and generating 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] Performing feature extraction on the file format corresponding to the first model file to obtain a feature extraction result;
[0011] Based on a preset CAD software format list and the feature extraction result, a 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 CAD software format list and the feature extraction result includes:
[0013] The feature extraction result is compared with the content in 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 deformation parameters corresponding to the first model file, wherein the analysis model is pre-trained based on third model files corresponding to several CAD software.
[0016] In some embodiments, generating a corresponding parameter mapping table based on the deformation parameters includes:
[0017] A mapping relationship between the deformation parameters and the 3D model variables is determined, and based on the deformation parameters and the mapping relationship, a parameter mapping table corresponding to the deformation parameters is obtained.
[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, determining whether the first model file can be deformed;
[0020] If deformation is possible, a deformation request is generated based on a CAD interface corresponding to the second CAD software.
[0021] In some embodiments, 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 by the second CAD software.
[0023] To achieve the above-mentioned purpose, a second aspect of the embodiment of the present application provides a model file conversion device, the device comprising: a receiving module, a processing module and a deformation module;
[0024] The receiving module is used to receive a first model file input by a user and determine a 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-mentioned purpose, the third aspect of an embodiment of the present application proposes an electronic device, which includes a memory and a processor, the memory stores a computer program, and the processor implements the CAD-based model file conversion method described in the first aspect when executing the computer program.
[0028] To achieve the above objectives, the fourth aspect of an embodiment of the present application proposes a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the CAD-based model file conversion method described in the first aspect above.
[0029] The CAD-based model file conversion method and device, electronic device and storage medium proposed in the present application can accurately determine the created first CAD software based on the model file format by receiving a first model file input by a user and determining the first CAD software corresponding to the first model file, so as to facilitate the 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, so as to facilitate the generation of the corresponding parameter mapping table based on the deformation parameters, and further facilitate the subsequent conversion of the model file corresponding to the CAD software; by judging whether the model file corresponding to the CAD software can be converted, generating a deformation request, and outputting a second model file corresponding to the second CAD software based on the deformation request, model data can be converted and shared between different CAD software, thereby improving the accuracy and efficiency of model file conversion, and further improving the efficiency of component selection and reuse. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 is a flow chart of a CAD-based model file conversion method provided in an embodiment of the present application;
[0031] Figure 2 yes Figure 1 Flow chart of step S101 in FIG.
[0032] Figure 3 yes Figure 1 Flow chart of step S102 in FIG.
[0033] Figure 4 yes Figure 1 Flow chart of step S103 in FIG.
[0034] Figure 5 yes Figure 4 Flow chart of step S401 in FIG.
[0035] Figure 6 is a structural schematic diagram of a model file conversion device provided in an embodiment of the present application;
[0036] Figure 7 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION
[0037] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0038] It should be noted that, although the functional modules are divided in the device schematic diagram and the 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 above 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 those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0040] First, some nouns involved in this application are analyzed:
[0041] Information Extraction: A text processing technology that extracts specified types of entity, relationship, event and other factual information from natural language text and forms structured data output. Information extraction is a technology that extracts specific information from text data. Text data is composed of some specific units, such as sentences, paragraphs, and chapters. Text information is composed of some small specific units, such as characters, words, phrases, sentences, paragraphs, or a combination of these specific units. Extracting noun phrases, names, place names, etc. from text data are all text information extraction. Of course, the information extracted by text information extraction technology can be various types of information.
[0042] CAD software (Computer-Aided Design) is a software that uses computers and their graphics equipment to help designers perform design work. It is widely used in various design fields, including but not limited to architectural engineering, mechanical design, electrical design, industrial design, etc. In CAD software, not only can two-dimensional (2D) graphics be designed, such as curves and graphics, but more importantly, it can also create and edit 3D models. CAD software can greatly improve design efficiency and accuracy by providing rich drawing tools and precise design functions, allowing designers to complete design tasks more quickly and accurately.
[0043] Based on this, the embodiments of the present application provide a CAD-based model file conversion method and device, 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 thereby improve the efficiency of component selection and reuse.
[0044] The CAD-based model file conversion method and device, electronic device and storage medium provided in the embodiments of the present application are specifically illustrated through the following embodiments. First, the CAD-based model file conversion method in the embodiments of the present application is described.
[0045] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0046] AI basic technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. AI software technologies mainly include computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning / deep learning.
[0047] The CAD-based model file conversion method provided in the embodiment of the present application relates to the field of data conversion technology. The CAD-based model file conversion method provided in the embodiment of the present application can be applied to a terminal, can also be applied to a server side, and can also be software running in a terminal or a server side. In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, etc.; the server side can be configured as an independent physical server, or can be configured as a server cluster or a distributed system composed of multiple physical servers, and can also be configured as a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms; the software can realize the application of the CAD-based model file conversion method, etc., but is not limited to the above forms.
[0048] The present application can be used in many general or special computer system environments or configurations. For example: 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, distributed computing environments including any of the above systems or devices, etc. The present 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. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
[0049] It should be noted that in each specific implementation of the present application, when it is necessary to perform relevant processing based on data related to user identity or characteristics such as user information, user behavior data, user historical data, and user location information, the user's permission or consent will be obtained first, and the collection, use, and processing of these data will comply with relevant laws, regulations, and standards. In addition, when the embodiment of the present application needs to obtain the user's sensitive personal information, the user's separate permission or consent will be obtained through a pop-up window or by jumping to a confirmation page. After clearly obtaining the user's separate permission or consent, the necessary user-related data for the normal operation of the embodiment of the present application will be obtained.
[0050] Figure 1 is an optional flow chart of the CAD-based model file conversion method provided in an embodiment of the present application, Figure 1 The method may include but is not limited to steps S101 to S103.
[0051] Step S101, receiving a first model file input by a user, and determining a first CAD software corresponding to the first model file;
[0052] Step S102, determining deformation parameters corresponding to the first model file, and generating a corresponding parameter mapping table based on the deformation parameters;
[0053] Step S103: generating a deformation request based on the first model file, the first CAD software and the parameter mapping table, and outputting a second model file corresponding to the second CAD software based on the deformation request.
[0054] Steps S101 to S103 shown in the embodiment of the present application, by receiving a first model file input by a user and determining the first CAD software corresponding to the first model file, can accurately determine the created first CAD software based on the model file format, so as to facilitate the subsequent judgment 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, so as to facilitate the generation of a corresponding parameter mapping table based on the deformation parameters, and further facilitate the subsequent conversion of the model file corresponding to the CAD software; by judging whether the model file corresponding to the CAD software can be converted, a deformation request is generated, and based on the deformation request, a second model file corresponding to the second CAD software is output, model data can be converted and shared between different CAD software, thereby improving the accuracy and efficiency of model file conversion, and further improving the efficiency of component selection and reuse.
[0055] See also Figure 2In some embodiments, step S101 may include but is not limited to steps S201 to S202:
[0056] Step S201, performing feature extraction on the file format corresponding to the first model file to obtain a feature extraction result;
[0057] Step S202: determining the first CAD software corresponding to the first model file based on a preset CAD software format list and the feature extraction result.
[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 the "." in the file name as a separator, the suffix (also called 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 special file suffix, which is the part of the file name after the last dot (.). It is usually used to indicate the type or format of the file. For example, in the file name example.dwg, the file suffix is .dwg.
[0060] In step S202 of some embodiments, it is necessary to first create a CAD software format list including CAD software and its corresponding file extension (i.e., feature extraction results), and this CAD software format list can be hard-coded in the program or read from an external configuration file or database; after the CAD software format list is created, the feature extraction result can be compared with the content in the CAD software format list, that is, it is possible but not limited to traversing the list by 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 so, the first CAD software corresponding to the first model file can be directly determined.
[0061] Step S101 shown in the embodiment of the present application can automatically, quickly and accurately identify which CAD software created the model file or which CAD software should open it by, by extracting the file format features corresponding to the first model file and comparing it with the preset CAD software format list, so as to facilitate the subsequent judgment of whether the model file corresponding to the CAD software can be converted.
[0062] See also Figure 3 In some embodiments, step S102 may include but is not limited to steps S301 to S302:
[0063] Step S301, determining 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 several third model files corresponding to CAD software in advance, confirm the model attributes, and determine the type, requirements and goals of deformation, and train the corresponding analysis model based on the model attributes, type, requirements and goals of deformation 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, the deformation parameters need to be used as query conditions, and the corresponding 3D model variables can be searched in the data structure table containing the deformation parameters and the 3D model variables by, but not limited to, writing query statements, etc. If a match is found, the identifier corresponding to the 3D model variable is obtained to obtain a number of query results, wherein the query result reflects the mapping relationship between the deformation parameters and the 3D model variables, and the several query results are converted into a table form to obtain a number of parameter mapping tables corresponding to the deformation parameters. If no match is found in the data structure table containing the deformation parameters and the 3D model variables, it may be necessary to report an error or take other recovery measures.
[0067] It should be noted that the data structure table is a set of key-value pairs defined based on the pre-organized official documents, tutorials, professional books or online resources, where the key is the name of the deformation parameter and the value is the identifier of the 3D model variable associated with the parameter (such as a variable name, path or index).
[0068] Step S102 shown in the embodiment of the present application can accurately determine the deformation parameters corresponding to the first model file by determining the deformation parameters corresponding to the first model file, thereby facilitating the generation of a corresponding parameter mapping table based on the deformation parameters, and further facilitating the subsequent conversion of the model file corresponding to the CAD software.
[0069] See also Figure 4 In some embodiments, step S103 may include but is not limited to steps S401 to S402:
[0070] Step S401, generating a deformation request based on the first model file, the first CAD software and the parameter mapping table;
[0071] Step S402: outputting a second model file corresponding to the second CAD software based on the deformation request.
[0072] In step S401 of 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 the first model file can be deformed, generating a deformation request based on a CAD interface corresponding to the second CAD software. The specific content is 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 the specific parameters that may be involved, start the second CAD software for generating the second model file, and import the first model file; then, 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 the deformation, such as the deformation direction, distance, angle, etc., 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 shown in the embodiment of the present application generates a deformation request by determining whether the model file corresponding to the CAD software can be converted, and outputs a 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, thereby improving the accuracy and efficiency of model file conversion, and further improving the efficiency of component selection and reuse.
[0075] See also Figure 5 In some embodiments, step S401 may include but is not limited to steps S501 to S502:
[0076] Step S501, judging whether the first model file can be deformed based on the first model file, the first CAD software and the parameter mapping table;
[0077] Step S502: If the 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, which usually involves a compatibility check of the file format. If the file format is incompatible, it may be necessary to convert the format first. If the file format is compatible, it is necessary to further analyze the parameter mapping table 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 files are 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 based on the parameter mapping table, and then generate a deformation request through the CAD interface corresponding to the second CAD software, that is, the programming interface (such as API) by writing a deformation script or command, wherein the script or command should include a reference to the model file, the specification of the deformation parameters, and instructions for performing the deformation operation.
[0080] Step S401 shown in the embodiment of the present 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, so as to facilitate subsequent model data conversion and sharing between different CAD software, improve the accuracy and efficiency of model file conversion, and further improve the efficiency of component selection and reuse.
[0081] See also Figure 6 , the embodiment of the present application also provides a model file conversion device, which can implement the above-mentioned CAD-based model file conversion method, and 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 a first model file input by a user and determine a 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 the model file conversion device is basically the same as the specific implementation of the above-mentioned CAD-based model file conversion method, and will not be repeated here.
[0086] The embodiment of the present application also provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the above-mentioned CAD-based model file conversion method when executing the computer program. The electronic device can be any intelligent terminal including a tablet computer, a car computer, etc.
[0087] See also Figure 7 , Figure 7 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes:
[0088] The processor 701 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an 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 the present application;
[0089] The memory 702 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 702 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 702, and the processor 701 calls and executes the CAD-based model file conversion method of the embodiment of this application;
[0090] Input / output interface 703, used to implement information input and output;
[0091] Communication interface 704, used to realize communication interaction between the device and other devices, which can be realized through wired mode (such as USB, network cable, etc.) or wireless mode (such as mobile network, WIFI, Bluetooth, etc.);
[0092] A bus 705 that transmits information between the various components of the device (e.g., the processor 701, the memory 702, the input / output interface 703, and the communication interface 704);
[0093] The processor 701 , the memory 702 , the input / output interface 703 and the communication interface 704 are connected to each other in communication within the device via a bus 705 .
[0094] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned CAD-based model file conversion method is implemented.
[0095] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0096] The CAD-based model file conversion method and device, electronic device and storage medium provided in the embodiments of the present application can accurately determine the created first CAD software based on the model file format by receiving a first model file input by a user and determining the first CAD software corresponding to the first model file, so as to facilitate the 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, so as to facilitate the generation of the corresponding parameter mapping table based on the deformation parameters, and further facilitate the subsequent conversion of the model file corresponding to the CAD software; by judging 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, so as to perform model data conversion and sharing between different CAD software, thereby improving the accuracy and efficiency of model file conversion, and further improving the efficiency of component selection and reuse.
[0097] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0098] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.
[0099] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0100] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.
[0101] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0102] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0103] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0104] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0105] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0106] If the integrated unit is implemented in the form of 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 the present application, 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, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.
[0107] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.
Claims
1. A CAD-based model file conversion method, characterized in that: The method comprises: Receiving a first model file input by a user, and determining a first CAD software corresponding to the first model file; Determining deformation parameters corresponding to the first model file, and generating a corresponding parameter mapping table based on the deformation parameters; 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.
2. The method according to claim 1, characterized in that The determining the first CAD software corresponding to the first model file includes: Performing feature extraction on the file format corresponding to the first model file to obtain a feature extraction result; Based on a preset CAD software format list and the feature extraction result, a first CAD software corresponding to the first model file is determined.
3. The method according to claim 2, characterized in that The determining, based on a preset CAD software format list and the feature extraction result, the first CAD software corresponding to the first model file comprises: The feature extraction result is compared with the content in 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 determining of the deformation parameters corresponding to the first model file includes: The first model file is input into the analysis model to obtain deformation parameters corresponding to the first model file, wherein the analysis model is pre-trained based on third model files corresponding to several CAD software.
5. The method according to claim 1, characterized in that The generating a corresponding parameter mapping table based on the deformation parameters comprises: A mapping relationship between the deformation parameters and the 3D model variables is determined, and based on the deformation parameters and the mapping relationship, a parameter mapping table corresponding to the deformation parameters is obtained.
6. The method according to claim 1, characterized in that The generating a deformation request based on the first model file, the first CAD software and the parameter mapping table includes: Based on the first model file, the first CAD software and the parameter mapping table, determining whether the first model file can be deformed; If deformation is possible, a deformation request is generated based on a CAD interface corresponding to the second CAD software.
7. The method according to claim 1, characterized in that The step of outputting a second model file corresponding to the second CAD software based on the deformation request specifically includes: The deformation request is obtained, and based on the deformation request, a corresponding second model file is generated by the second CAD software.
8. A model file conversion device, characterized in that: The device comprises: a receiving module, a processing module and a deformation module; The receiving module is used to receive a first model file input by a user and determine a first CAD software corresponding to the first model file; 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; 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.
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 implements the CAD-based model file conversion method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the CAD-based model file conversion method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Excel data import method and system
CN106919618A
Three-dimensional CAD model data processing system and method
CN114662173A
Model conversion method, computer program product, storage medium and electronic equipment
CN116266117A
Information conversion method of data modeling file, electronic equipment and storage medium
CN117312422A
Model conversion method and device, equipment and storage medium
CN117669763A
Cited By
File reconstruction method and equipment between CAD (Computer Aided Design) systems
CN120850386A