A microservice-based CAD file cloud parallel conversion method and system

By decomposing large-scale CAD file conversion tasks into multiple subtasks and using cloud resources for parallel processing, the problem of inefficiency of traditional data conversion methods is solved, and efficient data conversion is achieved.

CN119271416BActive Publication Date: 2025-04-18SHANDONG HUAYUN 3D TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411795108.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-09
Publication Date
2025-04-18
Estimated Expiration
2044-12-09

AI Technical Summary

Technical Problem

When facing large-scale data conversion, traditional data conversion methods are limited by calculation methods and computing resources, and their conversion efficiency is low, and may even lead to conversion failure.

Method used

The cloud-based parallel conversion method based on microservices is adopted to parse the converted CAD files, generate the conversion tasks, and decompose the tasks into multiple subtasks. Each subtask matches the appropriate cloud server for processing, and finally combines the results to form the converted target CAD file.

Benefits of technology

Through parallel processing subtasks, the efficiency of data conversion is significantly improved, conversion time is reduced, and high efficiency and performance optimization is achieved, especially when processing large-scale data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119271416B_ABST
    Figure CN119271416B_ABST
Patent Text Reader

Abstract

The present invention discloses a cloud-based parallel conversion method and system for CAD files based on microservices, which belongs to the field of data conversion technology and is used to solve the technical problem that in traditional data conversion methods, large-scale data conversion is limited by computing methods and computing resources, and the conversion efficiency is low. The method includes: parsing the CAD file to be converted to determine the file components; based on the file components, generating a corresponding conversion task; based on the processing flow of the conversion task, decomposing the conversion task into a plurality of subtasks, and determining the microservice type set required for each subtask; matching a cloud server for each subtask based on the load information of the current cloud server and the microservice type set of each subtask; executing the corresponding subtask through each cloud server, and combining the execution results to obtain a converted target CAD file; the converted CAD file is in a preset format.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data conversion, and in particular to a microservice-based CAD file cloud parallel conversion method and system. Background Art

[0002] In actual application scenarios, a CAD display platform can only open a CAD file in a fixed format. If the CAD file does not match the supported format of the platform, the file cannot be opened normally, affecting user use. Therefore, it is necessary to parse and convert CAD drawings of different formats to match different CAD display platforms. In data conversion, if it is a large-scale data conversion, traditional conversion methods may be limited by computing methods and computing resources, and computing resources are prone to bottlenecks, resulting in low conversion efficiency or even conversion failure. Summary of the invention

[0003] The embodiment of the present invention provides a microservice-based cloud-based parallel conversion method and system for CAD files, which are used to solve the following technical problems: In traditional data conversion methods, large-scale data conversion is limited by computing methods and computing resources, and the conversion efficiency is low.

[0004] The embodiment of the present invention adopts the following technical solution:

[0005] On the one hand, an embodiment of the present invention provides a microservice-based cloud-based parallel conversion method for CAD files, the method comprising: parsing a CAD file to be converted to determine the file components;

[0006] Based on the file components, generating corresponding conversion tasks;

[0007] Based on the processing flow of the conversion task, the conversion task is decomposed into several subtasks, and a set of microservice types required for each subtask is determined;

[0008] Match a cloud server for each subtask based on the current cloud server load information and the microservice type set of each subtask;

[0009] Each cloud server executes the corresponding subtask and combines the execution results to obtain a converted target CAD file; the converted CAD file is in a preset format.

[0010] In a feasible implementation, the CAD file to be converted is parsed to determine the file components, specifically including:

[0011] The received CAD file to be converted is forwarded to a distribution server, and the file is parsed in the distribution server to extract the file components; wherein the file components include at least one or more of the following: hierarchical structure information, geometric topology information and attribute information.

[0012] In a feasible implementation manner, based on the file components, generating corresponding conversion tasks specifically includes:

[0013] Match the corresponding task type for each file component;

[0014] The task types are connected in an execution order to construct the conversion task.

[0015] In a feasible implementation manner, based on the processing flow of the conversion task, the conversion task is decomposed into several subtasks, specifically including:

[0016] Obtaining the processing flow nodes of the conversion task, and analyzing the sequential dependency and parallelism relationship between the processing flow nodes;

[0017] The processing flow nodes with sequential dependency are divided into the same subtask, and the processing flow nodes with parallel relationship are divided into different subtasks, so as to decompose the conversion task into a plurality of subtasks.

[0018] In a feasible implementation, the set of microservice types required for each subtask is determined, specifically including:

[0019] According to the processing flow nodes contained in each subtask, the corresponding microservice type is matched to obtain the set of microservice types required for each subtask.

[0020] In a feasible implementation, based on the load information of the current cloud server and the microservice type set of each subtask, a cloud server is matched for each subtask, specifically including:

[0021] Obtain a microservice type set of the current subtask, and select a target cloud server from all idle cloud servers that has processing capabilities for all microservice types in the microservice type set;

[0022] The target cloud servers are sorted in descending order of idle resources and remaining running memory, and the first target cloud server is used as the execution server of the current subtask.

[0023] In a feasible implementation, each cloud server executes a corresponding subtask and combines the execution results to obtain a converted target CAD file, which specifically includes:

[0024] The cloud server executes the microservices of the corresponding subtasks; the microservices communicate with each other through a lightweight API;

[0025] After all microservices are executed, the output results are sent back to the distribution server, which summarizes the output results of all subtasks and combines them to form the converted target CAD file.

[0026] In a feasible implementation manner, after each cloud server executes the corresponding subtask and combines the execution results to obtain the converted target CAD file, the method further includes:

[0027] Perform data verification on the converted target CAD file; wherein the verification items include at least one or more of the following: hierarchical structure comparison, topological non-manifold detection, and entity interference check;

[0028] The verified target CAD file is stored in the database, and the distribution server notifies the interface server that the conversion task has been completed;

[0029] The interface server updates the conversion status of the CAD file to be converted to conversion completed, and notifies the user that the file is available.

[0030] In a feasible implementation manner, after storing the converted target CAD file in the database, the method further includes:

[0031] The converted target CAD file is input into the rendering server for model rendering to obtain a rendered CAD model;

[0032] The CAD model is displayed in the display interface of the browser for users to view.

[0033] On the other hand, an embodiment of the present invention further provides a microservice-based CAD file cloud parallel conversion system, the system comprising:

[0034] The distribution server is used to parse the CAD file to be converted and determine the file components; based on the file components, generate a corresponding conversion task; based on the processing flow of the conversion task, decompose the conversion task into a plurality of subtasks, and determine the set of microservice types required for each subtask; based on the load information of the current cloud server and the set of microservice types of each subtask, match a cloud server for each subtask;

[0035] The cloud server is used to execute corresponding subtasks and combine the execution results to obtain a converted target CAD file; the converted CAD file is in a preset format.

[0036] Compared with the prior art, the microservice-based CAD file cloud parallel conversion method and system provided by the embodiment of the present invention has the following beneficial effects:

[0037] The present invention provides a cloud-based parallel data conversion technology based on a microservice architecture, which can decompose complex data conversion tasks into multiple independent microservices. By processing each subtask in parallel, it can improve the conversion efficiency as much as possible and reduce the conversion time while ensuring the correctness of the conversion result, thereby achieving the goals of high efficiency and performance optimization. Especially when facing large-scale data, the conversion can be completed more quickly.

[0038] Compared with traditional data conversion methods, the cloud-based parallel conversion method based on microservice architecture has elastic scalability and can dynamically adjust computing resources according to task load to ensure that data conversion tasks can still be efficiently processed during peak demand.

[0039] The present invention also deeply and seamlessly integrates the data conversion system with the cloud-based CAD system, realizes the sharing and collaboration of cross-platform CAD data, and significantly improves the efficiency and consistency of the design workflow. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0041] Figure 1 A flow chart of a microservice-based CAD file cloud parallel conversion method provided in an embodiment of the present invention;

[0042] Figure 2 A schematic diagram of a data conversion execution process of a microservice-based CAD file cloud parallel conversion method provided in an embodiment of the present invention;

[0043] Figure 3 A schematic diagram of the structure of a microservice-based cloud-based parallel conversion system for CAD files provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0044] In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0045] The embodiment of the present invention provides a microservice-based CAD file cloud parallel conversion method, such as Figure 1 As shown, the microservice-based CAD file cloud parallel conversion method specifically includes steps S101-S105:

[0046] S101, parsing the CAD file to be converted to determine the file components.

[0047] Specifically, first, the user clicks the "Import" button on the browser to upload the CAD file that needs data conversion. After the interface server receives the CAD file to be converted, it forwards it to the distribution server.

[0048] The distribution server first parses the received CAD file to be converted and extracts the file components, wherein the file components include at least one or more of the following: hierarchical structure information, geometric topology information and attribute information.

[0049] S102: Generate corresponding conversion tasks based on the file components.

[0050] Specifically, the distribution server matches the corresponding task type for each file component, and then connects the task types in the execution order to construct the conversion task.

[0051] In a CAD file, the task type corresponding to the conversion of each file component is different. To generate an overall conversion task, it is necessary to match and integrate the task type of each file component to obtain a complete task processing flow.

[0052] In one embodiment, the task types required for the conversion of hierarchical structure information include: information format extraction tasks and information format conversion tasks, and the task types required for the conversion of geometric topology information include: topology structure acquisition tasks, topology relationship extraction tasks, and information format conversion tasks. Then the task types are connected in order of execution, and the topology structure acquisition task and the topology relationship extraction task are first connected in sequence as a task branch. Since the information format extraction task in the hierarchical structure information and the topology structure acquisition task in the geometric topology information are tasks that can be processed in parallel, the information format extraction task is used as another task branch, and finally the two task branches are connected to the information format conversion task to form a complete task processing flow.

[0053] S103. Based on the processing flow of the conversion task, decompose the conversion task into several subtasks, and determine a set of microservice types required for each subtask.

[0054] Specifically, the distribution server obtains the processing flow nodes of the conversion task, and analyzes the sequential dependency and parallelism relationship between the processing flow nodes.

[0055] As a feasible implementation method, the processing flow of the conversion task has been obtained in the above steps, and each task in the flow can also be decomposed into multiple processing flow nodes. The distribution server analyzes the sequential dependency and parallelism relationship between each processing flow node according to the attributes of each processing flow node.

[0056] Furthermore, the processing flow nodes with sequential dependency are divided into the same subtask, and the processing flow nodes with parallel relationship are divided into different subtasks, so as to decompose the conversion task into several subtasks.

[0057] Furthermore, according to the processing flow nodes contained in each subtask, the corresponding microservice type is matched to obtain the microservice type set required for each subtask. This application improves conversion efficiency by decomposing complex data conversion tasks into multiple independent microservices to process each subtask in parallel.

[0058] S104: Match a cloud server for each subtask based on the load information of the current cloud server and the microservice type set of each subtask.

[0059] Specifically, a microservice type set of the current subtask is obtained, and a target cloud server having processing capabilities of all microservice types in the microservice type set is screened from all idle cloud servers.

[0060] Furthermore, the target cloud servers are sorted in descending order of idle resources and remaining running memory, and the first target cloud server is used as the execution server of the current subtask.

[0061] The present invention uses a load balancing mechanism, combines the current server load and microservice type, identifies the optimal cloud server to allocate subtasks according to the idle resources and remaining running memory of the virtualized computing core, and ensures the efficiency of task execution and resource utilization.

[0062] S105. Execute the corresponding subtasks through each cloud server, and combine the execution results to obtain a converted target CAD file; the converted CAD file is in a preset format.

[0063] Specifically, the microservices of the corresponding subtasks are executed through the cloud server; the microservices communicate with each other through lightweight APIs, following the principles of the microservice architecture.

[0064] Furthermore, after all microservices are executed, each cloud server sends the output results back to the distribution server, and the distribution server summarizes the output results of all subtasks and combines them to form the converted target CAD file.

[0065] Furthermore, data verification is performed on the converted target CAD file; wherein the verification items include at least one or more of the following: hierarchical structure comparison, topological non-manifold detection, and entity interference check.

[0066] The verified target CAD file is then stored in the database, and the distribution server notifies the interface server that the conversion task has been completed. The interface server updates the conversion status of the CAD file to be converted to conversion completed, and notifies the user that the file is available.

[0067] Finally, the converted target CAD file is input into the rendering server to obtain the rendered CAD model, and the CAD model is displayed in the display interface of the browser for users to view.

[0068] As a feasible implementation method, Figure 2 A schematic diagram of the data conversion execution process of a microservice-based CAD file cloud parallel conversion method provided in an embodiment of the present invention is shown in FIG. Figure 2 As shown, the specific implementation of the entire data conversion method is as follows:

[0069] a. The user clicks the "Import" button on the browser to upload the CAD file that needs data conversion.

[0070] b. After receiving the CAD file, the interface server forwards it to the distribution server.

[0071] c. The distribution server first parses the CAD file to determine its components, such as hierarchical structure information, geometric topology information, attribute information, etc.; then, based on the sequential dependencies and parallelism between the conversion tasks, the tasks are decomposed into smaller, manageable subtasks, and the microservices required for each subtask are determined; then, through the load balancing mechanism, combined with the current server load and microservice type, the optimal cloud server is identified to allocate subtasks based on the idle resources and remaining running memory of the virtualized computing core, to ensure the efficiency of task execution and resource utilization.

[0072] d. After receiving the distributed subtasks, the cloud server executes specific microservices through parallel computing to complete the assigned subtasks. Microservices communicate with each other through lightweight APIs, following the principles of microservice architecture.

[0073] e. After completing the microservice execution, the cloud server sends the output results back to the distribution server. The distribution server summarizes the output results of all subtasks, combines them into the final converted CAD file, and verifies various data of the converted file, such as hierarchical structure comparison, topological non-manifold detection, entity interference check, etc., to ensure that it meets the specified conversion standards and user needs.

[0074] f. The distribution server stores the converted CAD files in the database.

[0075] g. The distribution server notifies the interface server that the conversion task has been completed.

[0076] h. The interface server updates the conversion status to "Conversion Completed" through the browser interface and notifies the user that the file is available.

[0077] i. Users can view the CAD model rendered by the rendering server in the browser.

[0078] In addition, the embodiment of the present invention also provides a microservice-based CAD file cloud parallel conversion system, such as Figure 3 As shown, the microservice-based CAD file cloud parallel conversion system 300 specifically includes:

[0079] The distribution server 330 is used to parse the CAD file to be converted and determine the file components; based on the file components, generate a corresponding conversion task; based on the processing flow of the conversion task, decompose the conversion task into a plurality of subtasks, and determine the set of microservice types required for each subtask; based on the load information of the current cloud server and the set of microservice types of each subtask, match a cloud server for each subtask;

[0080] The cloud server 340 is used to execute the corresponding subtasks and combine the execution results to obtain a converted target CAD file; the converted CAD file is in a preset format.

[0081] As a feasible implementation, the system further includes a browser 310, which is used to provide an operation interface and a display interface for the user, and to display the rendered CAD model. An interface server 320 is used to receive a user's data conversion request and an uploaded CAD file. A database 350 is used to store the converted CAD file. A rendering server 370 is used to render the converted CAD server model and display it in the browser 310.

[0082] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0083] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0084] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0085] This specification may 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 specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0086] Each embodiment of the present invention is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, equipment, and non-volatile computer storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0087] The above describes specific embodiments of the present invention. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or sequential order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0088] The above description is only an embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the embodiments of the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the embodiments of the present invention should be included in the protection scope of the present invention.

Claims

1. A microservice-based CAD file cloud parallel conversion method, characterized in that: The method comprises: Analyze the CAD file to be converted and determine the file components; Based on the file components, generating corresponding conversion tasks; Based on the processing flow of the conversion task, the conversion task is decomposed into several subtasks, specifically including: Obtaining the processing flow nodes of the conversion task, and analyzing the sequential dependency and parallelism relationship between the processing flow nodes; Dividing the processing flow nodes with sequential dependency into the same subtask, and dividing the processing flow nodes with parallel relationship into different subtasks, so as to decompose the conversion task into a plurality of subtasks; Determine the set of microservice types required for each subtask; Based on the current cloud server load information and the microservice type set of each subtask, a cloud server is matched for each subtask, including: Obtain a microservice type set of the current subtask, and select a target cloud server from all idle cloud servers that has processing capabilities for all microservice types in the microservice type set; Sort the target cloud servers in descending order of idle resources and remaining running memory, and use the first target cloud server as the execution server of the current subtask; Each cloud server executes the corresponding subtask and combines the execution results to obtain a converted target CAD file; the converted CAD file is in a preset format.

2. According to the microservice-based CAD file cloud parallel conversion method of claim 1, it is characterized in that: Parse the CAD file to be converted and determine the file components, including: The received CAD file to be converted is forwarded to a distribution server, and the file is parsed in the distribution server to extract the file components; wherein the file components include at least one or more of the following: hierarchical structure information, geometric topology information and attribute information.

3. The microservice-based CAD file cloud parallel conversion method according to claim 1 is characterized in that: Based on the file components, corresponding conversion tasks are generated, including: Match the corresponding task type for each file component; The task types are connected in an execution order to construct the conversion task.

4. The microservice-based CAD file cloud parallel conversion method according to claim 1, characterized in that: Determine the set of microservice types required for each subtask, including: According to the processing flow nodes contained in each subtask, the corresponding microservice type is matched to obtain the set of microservice types required for each subtask.

5. The microservice-based CAD file cloud parallel conversion method according to claim 1, characterized in that: Each cloud server executes the corresponding subtasks and combines the execution results to obtain the converted target CAD file, including: The cloud server executes the microservices of the corresponding subtasks; the microservices communicate with each other through a lightweight API; After all microservices are executed, the output results are sent back to the distribution server, which summarizes the output results of all subtasks and combines them to form the converted target CAD file.

6. The microservice-based CAD file cloud parallel conversion method according to claim 1, characterized in that: After executing the corresponding subtasks through each cloud server and combining the execution results to obtain the converted target CAD file, the method further includes: Perform data verification on the converted target CAD file; wherein the verification items include at least one or more of the following: hierarchical structure comparison, topological non-manifold detection, and entity interference check; The verified target CAD file is stored in the database, and the distribution server notifies the interface server that the conversion task has been completed; The interface server updates the conversion status of the CAD file to be converted to conversion completed, and notifies the user that the file is available.

7. The microservice-based CAD file cloud parallel conversion method according to claim 6 is characterized in that: After storing the converted target CAD file in the database, the method further includes: The converted target CAD file is input into the rendering server for model rendering to obtain a rendered CAD model; The CAD model is displayed in the display interface of the browser for users to view.

8. A microservice-based CAD file cloud parallel conversion system, characterized in that: The system comprises: The distribution server is used to parse the CAD file to be converted and determine the file components; based on the file components, generate a corresponding conversion task; based on the processing flow of the conversion task, decompose the conversion task into several subtasks, specifically including: obtaining the processing flow nodes of the conversion task, and analyzing the sequential dependency and parallel relationship between each processing flow node; dividing the processing flow nodes with sequential dependency into the same subtask, and dividing the processing flow nodes with parallel relationship into different subtasks, so as to decompose the conversion task into several subtasks; determining the set of microservice types required for each subtask; matching a cloud server for each subtask based on the load information of the current cloud server and the microservice type set of each subtask, specifically including: obtaining the microservice type set of the current subtask, and screening a target cloud server that has the processing capabilities of all microservice types in the microservice type set from all idle cloud servers; sorting the target cloud servers in order of idle resources and remaining running memory from large to small, and using the first target cloud server as the execution server of the current subtask; The cloud server is used to execute corresponding subtasks and combine the execution results to obtain a converted target CAD file; the converted CAD file is in a preset format.

Citation Information

Patent Citations

  • Method for layered display of large-data-volume CAD file at Web front end

    CN112100123A

  • Cloud CAD processing method and system, computer equipment and storage medium

    CN115665120A