Drawing format conversion method and device, equipment and storage medium

By automatically converting drawing formats in the product data management system and automatically dealing with the target workspace when the target workspace is damaged, the problems of low efficiency and poor sustainability of three-dimensional drawing conversion are solved, and efficient and stable drawing format conversion is achieved.

CN119848121APending Publication Date: 2025-04-18GREE ELECTRIC APPLIANCE INC OF ZHUHAI +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411927044.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-25
Publication Date
2025-04-18

AI Technical Summary

Technical Problem

In the prior art, the format conversion efficiency of three-dimensional drawings is low and the sustainability is poor, resulting in cumbersome manual conversion and error-prone, which affects the efficiency of drawing management.

Method used

By obtaining the drawings to be converted and determining the target application, the format conversion is automated in the product data management system using preset simulation instructions. When the target workspace is damaged, the target application is automatically closed, the damaged workspace is cleaned or deleted, and the conversion continues in the new workspace.

Benefits of technology

It realizes automatic lossless conversion, improves the efficiency of drawing format conversion, ensures the continuity and stability of the conversion process, and facilitates continuous conversion of multiple drawings in batches.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119848121A_ABST
    Figure CN119848121A_ABST
Patent Text Reader

Abstract

The embodiment of the invention relates to the field of drawing processing, and discloses a drawing format conversion method and device, equipment and a storage medium, and the method comprises the steps: obtaining a to-be-converted drawing, and determining a target application based on the format of the to-be-converted drawing; selecting a target working area, and executing the following format conversion process in the target working area: opening the to-be-converted drawing through the target application in the target working area to perform format conversion processing; when the target working area is damaged, the target application is controlled to be closed, the current damaged target working area is cleaned or deleted from the product data management system, and a new target working area is obtained to execute the format conversion process. According to the drawing format conversion method disclosed by the invention, the problems that the drawing format conversion efficiency is low and the conversion continuity is poor are solved, and at least automatic lossless conversion can be achieved, the drawing format conversion efficiency is improved, the continuity and stability of the conversion process are ensured, and continuous conversion of multiple drawings in batches is facilitated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the technical field of drawing processing, and in particular to a drawing format conversion method, device, equipment and storage medium. Background Art

[0002] In the related technology, many enterprises need to use PLM or PDM system to manage the designed CAD drawings, and will manage the CAD drawings by approval and other management, and carry out related processes. However, with the rapid development of three-dimensional design, enterprises have begun to change from two-dimensional design to three-dimensional design, and three-dimensional drawings cannot be managed directly in the system. They need to be converted into DXF format drawings before they can be managed in the PLM or PDM system. In the prior art, for three-dimensional drawings, staff usually manually download the drawing data issued by the customer from the PDM system, and then manually open the drawing format conversion software. After opening the three-dimensional drawings with the drawing format conversion software, save them as DXF format for format conversion, and then manually upload the format-converted drawings to the PDM system for management. However, when a large number of three-dimensional drawings are converted, it is troublesome to convert them manually one by one, which is not only inefficient, but also easy to cause conversion errors, seriously affecting the efficiency of drawing management; in addition, the conversion failure may occur during the conversion of multiple drawings, and the drawing format conversion software can only be manually closed and reopened, and the batch conversion has poor continuity, affecting work efficiency. Summary of the invention

[0003] The purpose of the present invention is to at least provide a drawing format conversion method, device, system, equipment and storage medium, which can at least solve the problems of low drawing format conversion efficiency and poor conversion continuity, at least achieve automated lossless conversion, improve drawing format conversion efficiency, ensure the continuity and stability of the conversion process, and facilitate continuous conversion of multiple drawings in batches.

[0004] In order to solve the above technical problems, at least one embodiment of the present application provides a drawing format conversion method, comprising:

[0005] Acquire a drawing to be converted, and determine a target application for converting the drawing format into a format that can be directly displayed and parsed based on the format of the drawing to be converted;

[0006] A target workspace is selected from the product data management system, and the following format conversion process is performed in the target workspace:

[0007] Using a preset first simulation instruction to control the target application to open the drawing to be converted for format conversion processing;

[0008] When the target workspace is damaged, the target application is controlled to be closed, and the currently damaged target workspace is found from the product data management system according to the preset second simulation instruction to be cleaned or deleted, a new target workspace is obtained, and the format conversion process is executed for the new target workspace.

[0009] At least one embodiment of the present application further provides a drawing format conversion device, comprising: an acquisition unit, configured to acquire a drawing to be converted, and determine a target application for converting the drawing format based on the format of the drawing to be converted;

[0010] The conversion execution unit is used to select a target workspace from the product data management system and execute the following format conversion process in the target workspace:

[0011] Using a preset first simulation instruction to control the target application to open the drawing to be converted for format conversion processing;

[0012] When the target workspace is damaged, the target application is controlled to be closed, and the currently damaged target workspace is found from the product data management system according to the preset second simulation instruction to be cleaned or deleted, a new target workspace is obtained, and the format conversion process is executed for the new target workspace.

[0013] At least one embodiment of the present application also provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the above-mentioned drawing format conversion method.

[0014] At least one embodiment of the present application further provides a computer-readable storage medium storing a computer program, wherein the computer program implements the above-mentioned drawing format conversion method when executed by a processor.

[0015] The drawing format conversion method, device, equipment and storage medium provided in the embodiments of the present application perform format conversion on the drawings to be converted through a target application, so that the format of the drawings to be converted is converted into a format that can be directly displayed and parsed, thereby realizing automatic lossless conversion, improving the efficiency of drawing format conversion, facilitating management by the product data management system, and when the target workspace is damaged, it can automatically log in to the product data management system through a third-party platform to clean up or delete the damaged target workspace to form a new target workspace for use, thereby ensuring the continuity and stability of the conversion process and facilitating continuous conversion of multiple drawings in batches.

[0016] In some optional embodiments, the step of finding the currently damaged target workspace from the product data management system according to the preset second simulation instruction and cleaning or deleting it includes:

[0017] Logging into the product data management system through a third-party platform according to a preset third simulation instruction;

[0018] According to the preset second simulation instruction, the currently damaged target workspace is found from the currently logged-in product data management system for cleaning or deletion.

[0019] In some optional embodiments, the method further includes:

[0020] Obtain each prompt pop-up window that appears after the target application is loaded;

[0021] Performing handle recognition on each of the prompt pop-up windows to obtain prompt content;

[0022] Matching corresponding simulation instructions from a pre-built simulation instruction library according to the identified prompt content and executing the simulation instructions;

[0023] Wherein, when the identified prompt content is that the target workspace is damaged, the corresponding matching simulation instructions include the second simulation instruction and the third simulation instruction.

[0024] In some optional embodiments, when the identified prompt content is that the product data management system is offline, the corresponding matching simulation instructions include a fourth simulation instruction and a fifth simulation instruction;

[0025] The method further comprises:

[0026] According to the preset fourth simulation instruction, the target application is controlled to record the file path of the current drawing to be converted, and the cached data of the target application is deleted after recording the file path. Then, according to the preset fifth simulation instruction, the product data management system is re-logged in, and the format conversion process is re-executed in the target workspace based on the recorded file path of the drawing to be converted.

[0027] In some optional embodiments, when the identified prompt content is a normal pop-up window of the target application opening the drawing to be converted, the corresponding matching simulation instruction is the sixth simulation instruction;

[0028] The method further comprises:

[0029] According to the sixth simulation instruction, the normal pop-up window is eliminated to continue opening the drawing to be converted.

[0030] In some optional embodiments, the method further includes:

[0031] The product data management system receives the drawings to be converted and stores them in a local conversion queue in the form of messages; the step of obtaining the drawings to be converted in the product data management system includes:

[0032] A message is obtained from the conversion queue, and the drawing to be converted is extracted from the message.

[0033] In some optional embodiments, the method further includes:

[0034] When the format of the drawing to be converted is successfully converted, the converted drawing is stored in a preset storage path according to a preset storage instruction, and after storage, the current execution window of the target application is closed to restore the target application to an initial blank state.

[0035] In some optional embodiments, the drawings to be converted include drawings in DRW format; the target application includes a Creo application corresponding to the drawings in DRW format; and the target application is used to convert the drawings to be converted in DRW format into DXF format.

[0036] In some optional embodiments, the first simulation instruction is further used to: hide the reference display information in the drawing to be converted opened in the target application. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] One or more embodiments are exemplarily described by the pictures in the corresponding drawings, and these exemplary descriptions do not constitute limitations on the embodiments.

[0038] Figure 1 This is a process of a drawing format conversion method provided by an embodiment of the present application Figure 1 ;

[0039] Figure 2 This is a process of a drawing format conversion method provided by an embodiment of the present application Figure 2 ;

[0040] Figure 3 This is a process of a drawing format conversion method provided by an embodiment of the present application Figure 2 ;

[0041] Figure 4 This is a specific example of the process of the drawing format conversion method provided by another embodiment of the present application. Figure 1 ;

[0042] Figure 5 is a schematic diagram of a drawing format conversion device provided by another embodiment of the present application;

[0043] Figure 6is a structural schematic diagram of an electronic device provided by another embodiment of the present application;

[0044] Figure 7 It is a schematic diagram of the structure of a computer-readable storage medium provided by another embodiment of the present application. DETAILED DESCRIPTION

[0045] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the embodiments of the present application will be described in detail below in conjunction with the accompanying drawings. However, it will be appreciated by those skilled in the art that in the present application, many technical details are proposed in order to enable the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical scheme claimed in the present application can also be implemented. The division of the following embodiments is for the convenience of description, and the specific implementation of the present application should not be construed as any limitation, and the various embodiments can be combined and referenced with each other under the premise of no contradiction.

[0046] In order to facilitate understanding of the embodiments of the present application, relevant content about drawing management is first introduced here.

[0047] In the related technology, many enterprises need to use PLM or PDM system to manage the designed CAD drawings, and will manage the CAD drawings by approval and other management, and carry out related processes. However, with the rapid development of three-dimensional design, enterprises have begun to shift from two-dimensional design to three-dimensional design, and three-dimensional drawings cannot be managed directly in the system. They need to be converted into DXF format drawings before they can be managed in the PLM or PDM system. In the prior art, for three-dimensional drawings, staff usually manually open the three-dimensional drawing software corresponding to the three-dimensional drawings, use the three-dimensional drawing software to open the three-dimensional drawings, save them in DXF format for format conversion, and then manually upload the format-converted drawings to the PDM system for management. However, when a large number of three-dimensional drawings are converted, it is troublesome to convert them manually one by one, which is not only inefficient, but also easy to cause conversion errors, which seriously affects the efficiency of drawing management; in addition, during the conversion of multiple drawings, conversion errors or inability to convert may occur, and the drawing format conversion software can only be manually closed and reopened, and the batch conversion is continuous, which affects the conversion efficiency.

[0048] In order to solve the above-mentioned technical problems of low efficiency and poor conversion continuity of drawing format conversion, the present invention proposes a drawing format conversion method. The implementation details of the drawing format conversion method of this embodiment are specifically described below. The following content is only the implementation details provided for easy understanding and is not necessary for implementing this solution.

[0049] Embodiment 1:

[0050] The drawing format conversion method of this embodiment can be applied to electronic devices with communication, computing and data storage capabilities. The specific process can be as follows: Figure 1 As shown, steps 101-104 are included, specifically including:

[0051] Step 101, obtaining a drawing to be converted, and determining a target application for converting the drawing format into a format that can be directly displayed and parsed based on the format of the drawing to be converted;

[0052] Specifically, the drawings to be converted are obtained from the product data management system. The product data management system (PDM system for short) is a software system used to manage product data, which can help enterprises organize and manage various data and documents generated during the design, manufacturing and maintenance of products. The PDM system can track the entire life cycle of the product, including various information such as product specifications, parts lists, engineering drawings, quality records, etc. Through the PDM system, enterprises can better coordinate the work between various departments, improve the efficiency of product design and manufacturing, and ensure the accuracy and consistency of product data. Furthermore, the above data can be a CAD bill of materials or a customized drawing in other file formats.

[0053] In some examples, the format of the drawings to be converted is a DRW format drawing. In this solution, the DRW file of the drawings to be converted is two-dimensional in itself, but contains views and information generated from three-dimensional models (PRT and ASM). PRT and ASM files are three-dimensional and are used to create and manage three-dimensional models of parts and assemblies. The DRW file format is a two-dimensional engineering drawing of the software Pro / Engineer, which can open the combined three-dimensional drawing .DRW in the Creo software. Based on this, after obtaining the drawings to be converted, the Creo software is determined as the target application for converting the drawing format into a format that can be directly displayed and parsed, so as to facilitate batch automated lossless conversion of drawings, and the drawings converted into DXF format are parsed to extract text, technical requirements, dimensioning and other drawing related information, which is convenient for management and parsing in the product data management system.

[0054] Among them, the DXF format is a file format used for CAD software. It is a two-dimensional and three-dimensional graphic data exchange format developed by AutoDesk. DXF is the abbreviation of Drawing Exchange Format, which is used to exchange graphic data between different CAD software. This format is usually used to store and share CAD graphics, and can contain information about lines, polygons, text, and other graphic elements. Converting the PDF format can enable drawings of different formats to be displayed and viewed on the WEB side, solving the problem that drawings of different formats can only be opened and viewed with specific design software. Converting the DXF format can complete the parsing of drawings of various formats.

[0055] In some embodiments, a distributed file system (referred to as ceph system) is attached to the product data management system. After the product data management system receives the drawings issued by the customer, it obtains multiple drawings to be converted recorded in the product data management system through an interface, and sends the multiple drawings to be converted to the conversion queue in the form of a message queue through the ceph system. Based on this, in this method, the product data management system receives the drawings to be converted and stores them in the local conversion queue in the form of a message; step 101 includes: obtaining a message from the conversion queue, and extracting the drawings to be converted from the message.

[0056] Each conversion message is sent sequentially through the message queue, so that each drawing to be converted can be converted sequentially using the drawing conversion management method provided by this embodiment, thereby realizing batch automatic lossless conversion.

[0057] Step 102, selecting a target workspace from the product data management system, and performing the following format conversion process in the target workspace:

[0058] Step 103: Use a preset first simulation instruction to control the target application to open the drawing to be converted for format conversion;

[0059] Step 104: When the target workspace is damaged, the target application is controlled to be closed, and the currently damaged target workspace is found from the product data management system according to the preset second simulation instruction to be cleaned or deleted, a new target workspace is obtained, and the format conversion process is performed on the new target workspace.

[0060] Specifically, the target application is attached to the product data management system. After obtaining the drawings to be converted, the drawings to be converted are added to the target workspace, so that the target application is clicked to open the drawings to be converted in a way of simulating mouse and keyboard clicks according to the preset first simulation instruction. After opening, the save copy button is simulated to convert the drawings into DXF format according to the window handle of the saved copy, and the converted drawings are saved to the specified path for later retrieval and analysis.

[0061] In some examples, step 103 includes loading a target application in the target workspace, and after the loading is successful, triggering a preset first simulation instruction to control the target application to open the drawing to be converted for format conversion processing.

[0062] By loading the target application in the target workspace, the drawing to be converted is opened by clicking the target application in a manner of simulating mouse and keyboard clicks according to the preset first simulation instruction, thereby facilitating online conversion of drawing formats.

[0063] In some examples, the first simulation instruction includes a drawing opening simulation instruction and a drawing format conversion simulation instruction. The drawing opening simulation instruction is used to control the target application to open the drawing to be converted. The drawing format conversion simulation instruction is used to control the target application to save the converted drawing to the target format, such as DXF format, after the target application successfully opens the drawing to be converted, and save the converted drawing to a specified path for later retrieval and parsing, thereby realizing batch automated lossless conversion of drawings. The converted DXF format drawings can be parsed to extract text, technical requirements, dimensioning and other drawing-related information.

[0064] In some embodiments, in order to facilitate parsing after format conversion, the first simulation instruction is also used to: hide the reference display information in the drawing to be converted opened in the target application. The reference display information includes axis display, point display, coordinate system display and plane display. By automatically singing the reference display information, it can be ensured that the converted drawing will not have redundant lines and annotations, optimize the visual effect of the drawing design, and highlight key details.

[0065] After step 103 is executed, the method further determines whether the opening and / or conversion of the drawing is successful;

[0066] If it fails, it is further identified whether the target working area is damaged, so that step 104 is executed when the target working area is damaged.

[0067] Specifically, during the continuous use of the target workspace, the problem of being unable to be retrieved may occur from time to time. This problem is that the workspace is damaged. According to the identification of the damage of the target workspace, step 104 is automatically executed to obtain a new target workspace to perform the format conversion process, which can ensure the continuity and stability of the drawing conversion process. For multiple drawings to be converted stored in the product data management system, the format conversion can also be continuously performed in sequence, realizing batch automatic lossless conversion of drawings, and ensuring continuity and stability.

[0068] In some examples, in step 104, according to the preset second simulation instruction, the currently damaged target workspace is found from the product data management system for cleaning or deletion, such as Figure 2 As shown, including:

[0069] Step 1041: Log in to the product data management system through a third-party platform according to a preset third simulation instruction;

[0070] Step 1042: according to the preset second simulation instruction, find out the currently damaged target workspace from the currently logged in product data management system and clean it up or delete it.

[0071] The third simulation instruction can be used to log in to the product data management system on the third-party platform, so that the second simulation instruction can be used on the third-party platform to find the currently damaged target workspace from the product data management system for cleaning or deletion, thereby maintaining the stability of the system.

[0072] In some embodiments, after the drawing to be converted completes the format conversion by executing the format conversion process, it needs to be stored before performing the conversion operation of the next drawing. Based on this, the method also includes: when the format conversion of the drawing to be converted is successful, the converted drawing is stored according to a preset storage path according to a preset storage instruction, and the current execution window of the target application is closed after storage to restore the target application to its initial blank state, so as to facilitate the format conversion processing of the next drawing to be converted.

[0073] After executing the storage instruction, the converted drawings can be saved to the storage path, and only the window of the target application is closed, so that the software is in the state of just starting up, and the format conversion process can be performed again on the next drawing to be converted, avoiding the time waste caused by repeatedly opening the target application, thereby reducing the conversion efficiency. Among them, the storage path can directly include the product data management system, so that the format-converted drawings can be directly stored in the product data management system for analysis and management.

[0074] In some embodiments, there may be some prompt pop-up windows that need to be processed during the format conversion process. Figure 3 As shown, the method also includes:

[0075] Step 201, obtaining each prompt pop-up window that appears after the target application is loaded;

[0076] Step 202: Perform handle recognition on each of the prompt pop-up windows to obtain prompt content;

[0077] Step 203: matching corresponding simulation instructions from a pre-built simulation instruction library according to the identified prompt content and executing the simulation instructions;

[0078] When the identified prompt content is that the target workspace is damaged, the corresponding matching simulation instructions include the second simulation instruction and the third simulation instruction. Specifically, when the identification result is that the target workspace is damaged, step 103 is executed.

[0079] Furthermore, different prompt pop-up windows can also be used in normal pop-up windows to prompt the product data management system to be offline and the target application to open the drawings to be converted.

[0080] When the identified prompt content is that the product data management system is offline, the corresponding matching simulation instructions include a fourth simulation instruction and a fifth simulation instruction,

[0081] The method also includes: controlling the target application to record the file path of the current drawing to be converted according to the preset fourth simulation instruction, and deleting the cached data of the target application after recording the file path, and then re-logging into the product data management system according to the preset fifth simulation instruction, and re-executing the format conversion process in the target workspace based on the recorded file path of the drawing to be converted.

[0082] By identifying when the product data management system is offline, the system is automatically re-logged in, and the format conversion process can be directly and quickly executed based on the recorded file path of the drawing to be converted, without the need to re-acquire the relevant drawings to be converted, thereby ensuring the efficiency of drawing conversion and the stable and continuous operation of the entire process.

[0083] In some examples, when the identified prompt content is a normal pop-up window of the target application opening the drawing to be converted, the corresponding matching simulation instruction is the sixth simulation instruction;

[0084] The method also includes: eliminating the normal pop-up window according to the sixth simulation instruction to continue opening the drawing to be converted.

[0085] In this embodiment, when opening a DRW format drawing through the Creo application, some normal pop-up windows may appear and require confirmation. The preset sixth simulation instruction is used to automatically eliminate the normal pop-up windows, thereby achieving the effect of automatically opening the DRW format drawing.

[0086] The drawing format conversion method provided in the present embodiment can load the target application in the target workspace to perform format conversion on the drawing to be converted through a preset first simulation instruction, so that the format of the drawing to be converted is converted into a format that can be directly displayed and parsed, thereby realizing automatic lossless conversion, improving the efficiency of drawing format conversion, and facilitating management by the product data management system. In addition, when the target workspace is damaged, the method can automatically log in to the product data management system through a third-party platform to clean up or delete the damaged target workspace to form a new target workspace for use, thereby ensuring the continuity and stability of the conversion process and facilitating continuous conversion of multiple drawings in batches.

[0087] Embodiment 2:

[0088] The specific embodiment of the drawing format conversion method of this embodiment takes DRW format drawings and Creo6.0 software as an example to perform the distance, and its specific process can be as follows: Figure 4 As shown, including:

[0089] 101: The designer's designed drawings are sent to the company's PDM system, and the required conversion and parsing DRW format drawings are obtained through the interface. The ceph conversion control system sends the drawings to the conversion queue in the form of a message queue. After the conversion program receives the message, it will open the Creo 6.0 software by identifying the file name suffix of the conversion message.

[0090] 102: After opening Creo 6.0 software, automatically simulate clicking files and managing sessions in Creo 6.0 software, enter the URL of the PDM server after server management, select a workspace in the PDM system to load Creo 6.0 software, and click the open button by simulating mouse and keyboard clicks. After the file opening window pops up, automatically enter the DRW file name in the text box, and the DRW, PRT (3D part model) and ASM (3D assembly model) are combined into a 3D drawing. If some special pop-up boxes are encountered during the opening process, the program will close all special pop-up boxes according to the handle of the pop-up window to ensure the normal opening of the drawing. Then hide all the base display filters, including axis display, point display, coordinate system display, and plane display. Ensure that there will be no redundant lines and annotations in the converted DXF drawings, optimize the visual effects of the drawing design drawings, and highlight key details.

[0091] 103: Click the Save Copy button on the drawing page, and according to the window handle of the saved copy, simulate the mouse and keyboard operations to convert the drawing into DXF format, and save the converted drawing to the specified path for later retrieval and analysis.

[0092] 104: During the conversion process, the conversion may fail. It may be that the current workspace is damaged or there is a problem with the drawing itself. At this time, by capturing the window where the DRW drawing fails to open, determine whether the current workspace is damaged or there is a problem with the drawing itself. If it is determined that the workspace is damaged, the damaged workspace will no longer be able to open drawings. At this time, you need to close the Creo 6.0 software and call the python program to enter the browser and enter the URL to log in to the PDM system. Delete the current workspace. The deleted workspace is equivalent to a new workspace and will not affect the opening of the next drawing. Then receive the message of the next drawing conversion and reopen the Creo 6.0 software to batch convert the drawings.

[0093] 105: For the currently converted drawing, close the window directly to keep the object in the session, reducing the time spent on opening Creo software and improving conversion efficiency. Click the Open button, enter the file name in the file open window to directly start the conversion of the next drawing, ensuring the continuity and stability of the entire process.

[0094] Embodiment three:

[0095] Another embodiment of the present application relates to a drawing format conversion device. The implementation details of the drawing format conversion device of this embodiment are specifically described below. The following content is only for the convenience of understanding the implementation details, and is not necessary for implementing this solution. The schematic diagram of the drawing format conversion device of this embodiment can be as follows Figure 5 As shown, it includes an acquisition unit 801 and a conversion execution unit 802.

[0096] The acquisition unit 801 is used to acquire the drawing to be converted, and determine the target application for converting the drawing format based on the format of the drawing to be converted;

[0097] The conversion execution unit 802 is used to select a target workspace from the product data management system and execute the following format conversion process in the target workspace:

[0098] Using a preset first simulation instruction to control the target application to open the drawing to be converted for format conversion processing;

[0099] When the target workspace is damaged, the target application is controlled to be closed, and the currently damaged target workspace is found from the product data management system according to the preset second simulation instruction to be cleaned or deleted, a new target workspace is obtained, and the format conversion process is executed for the new target workspace.

[0100] It is worth mentioning that all units involved in this embodiment are logical units. In practical applications, a logical unit can be a physical unit, a part of a physical unit, or a combination of multiple physical units. In addition, in order to highlight the innovative part of this application, this embodiment does not introduce units that are not closely related to solving the technical problems proposed by this application, but this does not mean that there are no other units in this embodiment.

[0101] Embodiment 4:

[0102] Another embodiment of the present application relates to an electronic device, such as Figure 6 As shown, it includes: at least one processor 901; and a memory 902 that is communicatively connected to the at least one processor 901; wherein the memory 902 stores instructions that can be executed by the at least one processor 901, and the instructions are executed by the at least one processor 901 so that the at least one processor 901 can execute the drawing format conversion method in the above-mentioned embodiments.

[0103] Among them, the memory and the processor are connected in a bus manner, and the bus may include any number of interconnected buses and bridges, and the bus connects various circuits of one or more processors and memories together. The bus can also connect various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface between the bus and the transceiver. The transceiver can be one element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices on a transmission medium. The data processed by the processor is transmitted on a wireless medium via an antenna, and further, the antenna also receives data and transmits the data to the processor.

[0104] The processor is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management, and other control functions. Memory can be used to store data used by the processor when performing operations.

[0105] Embodiment five:

[0106] Another embodiment of the present application relates to a computer-readable storage medium, such as Figure 7 As shown, a computer program 31 is stored. When the computer program 31 is executed by a processor, the above method embodiment is implemented.

[0107] That is, those skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a program, and the program is stored in a storage medium, including a number of instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor to execute all or part of the steps of the method described in each embodiment 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 program codes.

[0108] Those skilled in the art will appreciate that the above embodiments are specific embodiments for implementing the present application, and in actual applications, various changes may be made thereto in form and detail without departing from the spirit and scope of the present application.

Claims

1. A drawing format conversion method, characterized in that: include: Acquire a drawing to be converted, and determine a target application for converting the drawing format into a format that can be directly displayed and parsed based on the format of the drawing to be converted; A target workspace is selected from the product data management system, and the following format conversion process is performed in the target workspace: Using a preset first simulation instruction to control the target application to open the drawing to be converted for format conversion processing; When the target workspace is damaged, the target application is controlled to be closed, and the currently damaged target workspace is found from the product data management system according to the preset second simulation instruction to be cleaned or deleted, a new target workspace is obtained, and the format conversion process is executed for the new target workspace.

2. A drawing format conversion method according to claim 1, characterized in that: The step of finding the currently damaged target workspace from the product data management system according to the preset second simulation instruction and cleaning or deleting it includes: Logging into the product data management system through a third-party platform according to a preset third simulation instruction; According to the preset second simulation instruction, the currently damaged target workspace is found from the currently logged-in product data management system for cleaning or deletion.

3. A drawing format conversion method according to claim 1, characterized in that: The method further comprises: Obtain each prompt pop-up window that appears after the target application is loaded; Performing handle recognition on each of the prompt pop-up windows to obtain prompt content; Matching corresponding simulation instructions from a pre-built simulation instruction library according to the identified prompt content and executing the simulation instructions; Wherein, when the identified prompt content is that the target workspace is damaged, the corresponding matching simulation instructions include the second simulation instruction and the third simulation instruction.

4. A drawing format conversion method according to claim 2, characterized in that: When the identified prompt content is that the product data management system is offline, the corresponding matching simulation instructions include a fourth simulation instruction and a fifth simulation instruction; The method further comprises: According to the preset fourth simulation instruction, the target application is controlled to record the file path of the current drawing to be converted, and the cached data of the target application is deleted after recording the file path. Then, according to the preset fifth simulation instruction, the product data management system is re-logged in, and the format conversion process is re-executed in the target workspace based on the recorded file path of the drawing to be converted.

5. A drawing format conversion method according to claim 2, characterized in that: When the identified prompt content is a normal pop-up window of the target application opening the drawing to be converted, the corresponding matching simulation instruction is the sixth simulation instruction; The method further comprises: According to the sixth simulation instruction, the normal pop-up window is eliminated to continue opening the drawing to be converted.

6. A drawing format conversion method according to claim 1, characterized in that: The method further comprises: The product data management system receives the drawings to be converted and stores them in a local conversion queue in the form of messages; the step of obtaining the drawings to be converted in the product data management system includes: A message is obtained from the conversion queue, and the drawing to be converted is extracted from the message.

7. A drawing format conversion method according to claim 1, characterized in that: The method further comprises: When the format of the drawing to be converted is successfully converted, the converted drawing is stored in a preset storage path according to a preset storage instruction, and after storage, the current execution window of the target application is closed to restore the target application to an initial blank state.

8. A drawing format conversion method according to claim 1, characterized in that: The drawings to be converted include drawings in DRW format; the target application includes a Creo application corresponding to the drawings in DRW format; and the target application is used to convert the drawings to be converted in DRW format into DXF format.

9. A drawing format conversion method according to claim 7, characterized in that: The first simulation instruction is also used to: hide the reference display information in the drawing to be converted opened in the target application.

10. A drawing format conversion device, characterized in that: include An acquisition unit, used for acquiring a drawing to be converted, and determining a target application for converting the drawing format based on the format of the drawing to be converted; The conversion execution unit is used to select a target workspace from the product data management system and execute the following format conversion process in the target workspace: Using a preset first simulation instruction to control the target application to open the drawing to be converted for format conversion processing; When the target workspace is damaged, the target application is controlled to be closed, and the currently damaged target workspace is found from the product data management system according to the preset second simulation instruction to be cleaned or deleted, a new target workspace is obtained, and the format conversion process is executed for the new target workspace.

11. An electronic device, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the drawing format conversion method according to any one of claims 1 to 9.

12. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the drawing format conversion method according to any one of claims 1 to 9 is implemented.