Drawing file storage method and device, electronic device and storage medium

By automatically converting the drawing file format and storing it in the target system, the inefficiency problem caused by the diversified drawing file format is solved, and rapid downloading, printing and reviewing is achieved, and work efficiency is improved.

CN112765097BActive Publication Date: 2024-12-06GREE ELECTRIC APPLIANCE INC OF ZHUHAI +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110017978.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-07
Publication Date
2024-12-06
Estimated Expiration
2041-01-07

AI Technical Summary

Technical Problem

In the prior art, the diversification of drawing files formats leads to users requiring manual cumbersome format conversion during transmission and review, which is relatively inefficient.

Method used

Provide a drawing file storage method and device. By obtaining the uploaded drawing file, it will automatically convert it from one file format to another, and store the converted file into the target storage system, and the user can directly from this The system downloads, prints or reviews to avoid manual conversion operations.

Benefits of technology

It improves the operation efficiency during the drawing file format conversion process, saves time, reduces dependence on drawing-specific software, and simplifies user transmission and review operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112765097B_ABST
    Figure CN112765097B_ABST
Patent Text Reader

Abstract

The present application provides a storage method and device for drawing files, an electronic device and a storage medium, wherein the method comprises: obtaining a first drawing file uploaded by a first object, wherein the first drawing file is a drawing file to be stored in a target storage system, and the file format of the first drawing file is a first file format; converting the file format of the first drawing file from the first file format to a second file format to obtain a second drawing file, wherein the file format of the second drawing file is a second file format; and storing the second drawing file in the target storage system. The present application does not require manual conversion operations of various graphic formats due to the diversity of drawing file formats, thus saving operation time and improving work efficiency, thereby solving the problem of low manual operation efficiency in the conversion process of multiple drawing file formats in the related art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing, and in particular to a method and device for storing drawing files, an electronic device, and a storage medium. Background Art

[0002] When developing and designing products, a variety of design drawing software will be used to draw drawings. Every time a user checks a drawing file, due to the diversity of drawing file formats, it is necessary to manually solve the conversion between different formats of drawing files. Since the conversion operation is relatively cumbersome, the user's operating efficiency is greatly affected during the process of drawing transmission and review.

[0003] Therefore, in the prior art, there is a problem of low manual operation efficiency during the conversion of various drawing file formats. Summary of the invention

[0004] In order to solve the problem of low manual operation efficiency during the conversion of various drawing file formats, the embodiments of the present application provide a drawing file storage method and device, an electronic device and a storage medium.

[0005] The present application provides a method for storing a drawing file, the method comprising:

[0006] Acquire a first drawing file uploaded by a first object, wherein the first drawing file is a drawing file to be stored in a target storage system, and a file format of the first drawing file is a first file format;

[0007] Converting the file format of the first drawing file from the first file format to a second file format to obtain a second drawing file, wherein the file format of the second drawing file is the second file format;

[0008] The second drawing file is stored in the target storage system.

[0009] Furthermore, converting the file format of the first drawing file from the first file format to a second file format to obtain the second drawing file includes:

[0010] Opening the first drawing file using a target application;

[0011] Controlling to perform a trigger operation on a target control, wherein the target control is used to control conversion of the first file format into the second file format;

[0012] In response to the triggering operation, the first drawing file is converted into the second drawing file.

[0013] Furthermore, before opening the first drawing file using the target application, the method further includes:

[0014] Acquire file suffix information of the first drawing file, wherein the file suffix information is used to indicate the file format of the first drawing file;

[0015] The target application matching the file format is determined according to the file suffix information, wherein the target application is an application that is allowed to open the file format.

[0016] Furthermore, before the control performs a trigger operation on the target control, the method further includes:

[0017] Invoke a handle selection tool to search for target window information of a target layer in the first drawing file, wherein the target window information includes position information of a control located in the target layer, and the target control is a control in the target layer;

[0018] The target position information of the target control is extracted from the target window information.

[0019] Furthermore, the controlling the triggering operation on the target control includes:

[0020] Controlling a cursor in an application interface of the target application to move to a coordinate position indicated by the target position information in the target layer;

[0021] Controlling the trigger operation to be performed on the target control at the coordinate position.

[0022] Furthermore, extracting the target position information of the target control from the window information includes:

[0023] Extracting a target window code corresponding to the target control from the window information, wherein the window code corresponds to the position information of the control one by one;

[0024] The target position information corresponding to the target window code is obtained.

[0025] Furthermore, after storing the second drawing file in the target storage system, the method further includes:

[0026] In the case that there are multiple second drawing files and different second drawing files correspond to different file formats, obtaining a selection operation performed by the second object on the multiple second drawing files, wherein the selection operation is used to select a target drawing file of a target file format from the multiple second drawing files;

[0027] In response to the selection operation, the target drawing file among the plurality of second drawing files is sent to the second object.

[0028] The present application provides a storage device for drawing files, the device comprising:

[0029] A first acquisition module, configured to acquire a first drawing file uploaded by a first object, wherein the first drawing file is a drawing file to be stored in a target storage system, and the file format of the first drawing file is a first file format;

[0030] a conversion module, used for converting the file format of the first drawing file from the first file format to a second file format to obtain a second drawing file, wherein the file format of the second drawing file is the second file format;

[0031] A storage module is used to store the second drawing file in the target storage system.

[0032] Furthermore, the conversion module includes:

[0033] An opening unit, used for opening the first drawing file by using a target application;

[0034] A control unit, configured to control a trigger operation to be performed on a target control, wherein the target control is configured to control conversion of the first file format into the second file format;

[0035] The response unit is used to respond to the trigger operation and convert the first drawing file into the second drawing file.

[0036] Furthermore, the device also includes:

[0037] A second acquisition module, used for acquiring file suffix information of the first drawing file before opening the first drawing file by using the target application, wherein the file suffix information is used to indicate the file format of the first drawing file;

[0038] A determination module is used to determine the target application matching the file format according to the file suffix information, wherein the target application is an application that is allowed to open the file format.

[0039] Furthermore, the device also includes:

[0040] a search module, used for calling a handle selection tool to search for target window information of a target layer in the first drawing file before the control performs a trigger operation on the target control, wherein the target window information includes position information of a control located in the target layer, and the target control is a control in the target layer;

[0041] The extraction module is used to extract the target position information of the target control from the target window information.

[0042] Furthermore, the control unit comprises:

[0043] A first control subunit, used for controlling a cursor in an application interface of the target application to move to a coordinate position indicated by the target position information in the target layer;

[0044] The second control subunit is used to control the trigger operation to be performed on the target control at the coordinate position.

[0045] Furthermore, the extraction module includes:

[0046] An extraction unit, used to extract a target window code corresponding to the target control from the window information, wherein the window code corresponds to the position information of the control in a one-to-one manner;

[0047] An acquiring unit is used to acquire the target position information corresponding to the target window code.

[0048] Furthermore, the device also includes:

[0049] A third acquisition module is used for, after storing the second drawing file in the target storage system, acquiring a selection operation performed by the second object on the plurality of second drawing files when there are a plurality of second drawing files and different second drawing files correspond to different file formats, wherein the selection operation is used to select a target drawing file of a target file format from the plurality of second drawing files;

[0050] A sending module is used to respond to the selection operation and send the target drawing file among the plurality of second drawing files to the second object.

[0051] The embodiment of the present application converts the format of a first drawing file to be converted that is uploaded to a target storage system to generate a second drawing file in a second file format, and stores the second drawing file in the target storage system. In this way, the user can directly obtain the second drawing file from the target storage system, and then quickly download, print, and view the second drawing file. There is no need to manually perform conversion operations on various graphic formats due to the diversity of drawing file formats, which saves operation time, improves work efficiency, and further solves the problem of low manual operation efficiency in the conversion process of multiple drawing file formats in the related art. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0053] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0054] Figure 1 A schematic diagram of an optional method for storing drawing files provided in an embodiment of the present application;

[0055] Figure 2 A block diagram of an optional storage device for drawing files provided in an embodiment of the present application;

[0056] Figure 3 It is a structural block diagram of an optional electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0057] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. The schematic embodiments of the present application and their descriptions are used to explain the present application and do not constitute improper limitations on the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0058] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another similar entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article 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, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0059] Currently, enterprises use a variety of design tools to develop products. However, due to the diversity of drawing formats, they cannot meet the needs of lightweight transmission, printing, and reference for production and inspection. In addition, users need to install the corresponding development software on their local computers to open drawings in the required format, which places high demands on the allocation of office resources within the enterprise and greatly affects the efficiency of user transmission and reference operations. To address this issue, the existing method is to install the corresponding development software on the local computer and manually complete the conversion between different formats of drawing files. However, the manual conversion operation is cumbersome and greatly affects the efficiency of user transmission and reference operations. In order to solve the above problems, an embodiment of the present application provides a method for storing drawing files, such as Figure 1 As shown, the method includes:

[0060] Step S102: acquiring a first drawing file uploaded by a first object, wherein the first drawing file is a drawing file to be stored in a target storage system, and the file format of the first drawing file is a first file format.

[0061] Optionally, an embodiment of the present application sets up a server for drawing file format conversion, and obtains a first drawing file uploaded by a first object through the server interface. The first drawing file is a file to be converted in a format stored in a target storage system. The first drawing file may be a CAD file, a PS file, a Word file, etc.

[0062] In the embodiment of the present application, the server obtains the first drawing file by uploading the first drawing file locally in batches by the first object, or by uploading the first drawing file one by one by the first object. Alternatively, the first object does not actively upload the first drawing file, but the server interface automatically obtains the basic information of the first drawing file, extracts the graphic number field in the basic information, and then retrieves the first drawing file from the gallery.

[0063] Step S104: converting the file format of the first drawing file from the first file format to the second file format to obtain a second drawing file, wherein the file format of the second drawing file is the second file format.

[0064] Optionally, after acquiring the first drawing file, the server of the embodiment of the present application converts the file format of the first drawing file from the first file format to the second file format, and obtains the second drawing file in the second file format. The second file format type here can be one format type or multiple format types, so the relationship between the first file format and the second file format can be one-to-one or one-to-many. For example, the first drawing file in the file format of Word is converted into a second drawing file in the file format of PDF format and / or DXF format, etc. In this way, the conversion of various files in the office and the conversion of various drawing formats in CAD can be realized. It should be noted that the embodiment of the present application does not make specific limitations on the first drawing file format and the second drawing file format. As long as the conversion from the first drawing file format to the second drawing format can be satisfied, it is within the protection scope of the embodiment of the present application.

[0065] Step S106: storing the second drawing file in the target storage system.

[0066] Optionally, all file formats corresponding to the second drawing file are stored in the target storage system, so that the user can select from a variety of file formats.

[0067] The embodiment of the present application converts the format of a first drawing file to be converted that is uploaded to a target storage system to generate a second drawing file in a second file format, and stores the second drawing file in the target storage system. In this way, the user can directly obtain the second drawing file from the target storage system, and can quickly download, print, and view the second drawing file. There is no need to manually perform conversion operations on various graphic formats due to the diversity of drawing file formats, which saves operation time, improves work efficiency, and further solves the problem of low manual operation efficiency in the conversion process of multiple drawing file formats in the related art.

[0068] As an optional embodiment, converting the file format of the first drawing file from the first file format to the second file format to obtain the second drawing file includes:

[0069] Open the first drawing file using the target application;

[0070] Controlling execution of a trigger operation on a target control, wherein the target control is used to control conversion of a first file format into a second file format;

[0071] In response to the triggering operation, the first drawing file is converted into a second drawing file.

[0072] Optionally, the first drawing file is opened according to the selected target application. In the process of opening the first drawing file, the corresponding font file in the target application is automatically called according to the font requirement of the first drawing file to display the text in the first drawing file.

[0073] After the first drawing file is displayed in the target application, a target control for converting the first file format into the second file format is found, and a trigger operation is performed on the target control. At this time, the server responds to the trigger operation and then converts the first drawing file into the second drawing file.

[0074] After the first drawing file is opened by the target application, the embodiment of the present application executes a trigger operation on the target control in the target application to complete the conversion from the first file format to the second file format.

[0075] As an optional embodiment, before opening the first drawing file using the target application, the method further includes:

[0076] Acquire file suffix information of the first drawing file, wherein the file suffix information is used to indicate the file format of the first drawing file;

[0077] A target application matching the file format is determined according to the file suffix information, wherein the target application is an application that is allowed to open the file format.

[0078] Optionally, the file format of the first drawing file is obtained according to the file suffix information of the first drawing file, such as .doc, .pdf, .dwg, etc. For example, the suffix information of .doc is the file format of Word.

[0079] The target application that can open the file format can be determined based on the file suffix information, where the target application is an application that allows the file format to be opened. A file format can correspond to one or more target applications. For example, when the file format is PDF, it can be obtained based on the opening function of the application software that the software that can open the PDF file can be software A or software B. Therefore, the target application in the embodiment of the present application can be software A or software B.

[0080] In addition, the configuration information between the file format and the target application can also be set in advance. The configuration information is used to indicate the correspondence between the file format and the target application that opens the file format. The correspondence can be a one-to-one relationship, for example: one target application opens one file format; it can be a one-to-many relationship, for example: one target application can open multiple file formats; it can be a many-to-one relationship, for example: one file format can be opened by multiple target applications. In this way, when obtaining the file suffix information, the target application that matches the file format can be obtained.

[0081] The embodiment of the present application can quickly obtain a target application that matches a file format based on the file suffix information, thereby accelerating the efficiency of file format conversion.

[0082] As an optional embodiment, before controlling the trigger operation on the target control, the method further includes:

[0083] Calling a handle selection tool to search for target window information of a target layer in the first drawing file, wherein the target window information includes position information of a control located in the target layer, and the target control is a control in the target layer;

[0084] Extract the target position information of the target control from the target window information.

[0085] Optionally, the server may call a handle selection tool to search for target window information of a target layer in the first drawing file, wherein the target layer is one of the layers constituting the first drawing file, the target layer is provided with target window information, and the target window information includes position information of each control (including the target control). The target position information of the target control may be obtained from the target window information.

[0086] For example, the target layer is provided with window information such as "File", "Start", and "Page Layout". The embodiment of the present application can use "File" as the target window information, and the "File" window information includes controls such as "Save As", "Save", and "New". Each control is arranged in a corresponding position according to preset position information. The embodiment of the present application can use "Save As" as the target control, and the position information of "Save As" can be extracted from the target window information.

[0087] As an optional embodiment, controlling the trigger operation to be performed on the target control includes:

[0088] Control the cursor in the application interface of the target application to move to the coordinate position indicated by the target position information in the target layer;

[0089] Controls the execution of trigger operations on the target control at the coordinate position.

[0090] Optionally, after obtaining the target position information of the target control, the embodiment of the present application can transmit the position information to the cursor movement program, wherein the cursor movement program is used to control the cursor movement in the application interface of the target application. After the cursor is controlled by the cursor movement program to move to the coordinate position of the target control, the server controls the cursor to perform a trigger operation on the target control at the coordinate position, and the trigger operation can include but is not limited to a "save as" operation, a "format conversion" operation, etc.

[0091] As an optional embodiment, extracting the target position information of the target control from the window information includes:

[0092] Extract the target window code corresponding to the target control from the window information, wherein the window code corresponds to the position information of the control one by one;

[0093] Get the target position information corresponding to the target window code.

[0094] Optionally, the window information is provided with a window code of each control, and the window code corresponds to the position information of the control one by one. The coordinate position of the control can be directly located according to the window code.

[0095] Therefore, the server can extract the target window code corresponding to the target control and find the coordinate position of the target control according to the target window code.

[0096] In addition, in addition to obtaining the target position information of the target control based on the target window code, the coordinate position of the click of the automation program can also be manually adjusted, and debugged step by step until the correct coordinate position is found, and the correct coordinate position is written into the above-mentioned cursor movement program.

[0097] The embodiment of the present application can conveniently and accurately obtain the target position information of the target control according to the window number.

[0098] As an optional embodiment, after storing the second drawing file in the target storage system, the method further includes:

[0099] In the case where there are multiple second drawing files and different second drawing files correspond to different file formats, obtaining a selection operation performed by the second object on the multiple second drawing files, wherein the selection operation is used to select a target drawing file of a target file format from the multiple second drawing files;

[0100] In response to the selection operation, a target drawing file among the plurality of second drawing files is sent to the second object.

[0101] Optionally, when the obtained second drawing file contains multiple file format types, and the multiple file format types are different from each other, a selection operation may be performed on the second drawing file.

[0102] At this time, the server obtains the selection operation performed by the second object on the second drawing file, wherein the selection operation is used to select a target drawing file in a target file format from multiple second drawing files. The server responds to the selection operation and sends the target drawing file selected by the second object to the client of the second object.

[0103] The embodiment of the present application reduces the time cost and efficiency cost brought about by the drawing file format conversion process by selecting the required target drawing file from the converted multiple types of second drawing files, alleviates the dependence on drawing-specific software, and facilitates users to quickly download, print and view drawing files, as well as analyze data processing and other applications.

[0104] According to another aspect of an embodiment of the present application, a drawing file storage device for implementing the above-mentioned drawing file storage method is also provided. Figure 2 is a schematic diagram of an optional storage device for drawing files according to an embodiment of the present application, such as Figure 2 As shown, the device may include:

[0105] A first acquisition module 202 is used to acquire a first drawing file uploaded by a first object, wherein the first drawing file is a drawing file to be stored in a target storage system, and the file format of the first drawing file is a first file format;

[0106] The conversion module 204 is used to convert the file format of the first drawing file from the first file format to the second file format to obtain the second drawing file, wherein the file format of the second drawing file is the second file format;

[0107] The storage module 206 is used to store the second drawing file in the target storage system.

[0108] It should be noted that the first acquisition module 202 in this embodiment can be used to execute the above step S102, the conversion module 204 in this embodiment can be used to execute the above step S104, and the storage module 206 in this embodiment can be used to execute the above step S106.

[0109] The embodiment of the present application converts the format of a first drawing file to be converted that is uploaded to a target storage system to generate a second drawing file in a second file format, and stores the second drawing file in the target storage system. In this way, the user can directly obtain the second drawing file from the target storage system, and can quickly download, print, and view the second drawing file. There is no need to perform conversion operations on various graphic formats due to the diversity of drawing file formats, which saves operation time, improves work efficiency, and further solves the problem of low manual operation efficiency in the conversion process of multiple drawing file formats in the related art.

[0110] As an optional embodiment, the conversion module includes:

[0111] An opening unit, used for opening the first drawing file using a target application;

[0112] A control unit, used for controlling a trigger operation to be performed on a target control, wherein the target control is used for controlling conversion of a first file format into a second file format;

[0113] The response unit is used to respond to the trigger operation and convert the first drawing file into the second drawing file.

[0114] As an optional embodiment, the device further includes:

[0115] A second acquisition module is used to acquire file suffix information of the first drawing file before opening the first drawing file by using the target application, wherein the file suffix information is used to indicate the file format of the first drawing file;

[0116] The determination module is used to determine a target application matching the file format according to the file suffix information, wherein the target application is an application that is allowed to open the file format.

[0117] As an optional embodiment, the device further includes:

[0118] A search module, used for calling a handle selection tool to search for target window information of a target layer in a first drawing file before the control performs a trigger operation on the target control, wherein the target window information includes position information of a control located in the target layer, and the target control is a control in the target layer;

[0119] The extraction module is used to extract the target position information of the target control from the target window information.

[0120] As an optional embodiment, the control unit includes:

[0121] A first control subunit, used to control a cursor in an application interface of a target application to move to a coordinate position indicated by target position information in a target layer;

[0122] The second control subunit is used to control the trigger operation to be performed on the target control at the coordinate position.

[0123] Furthermore, the extraction module includes:

[0124] An extraction unit, used to extract a target window code corresponding to a target control from the window information, wherein the window code corresponds to the position information of the control one by one;

[0125] The acquisition unit is used to acquire target position information corresponding to the target window code.

[0126] As an optional embodiment, the device further includes:

[0127] A third acquisition module is used for, after storing the second drawing file in the target storage system, acquiring a selection operation performed by the second object on the plurality of second drawing files when there are a plurality of second drawing files and different second drawing files correspond to different file formats, wherein the selection operation is used to select a target drawing file of a target file format from the plurality of second drawing files;

[0128] The sending module is used to respond to the selection operation and send the target drawing file among the multiple second drawing files to the second object.

[0129] It should be noted here that the examples and application scenarios implemented by the above modules and corresponding steps are the same, but are not limited to the contents disclosed in the above embodiments.

[0130] According to another aspect of an embodiment of the present application, an electronic device for implementing the above-mentioned method for storing asset drawing files is also provided. The electronic device may be a server, a client, or a combination thereof.

[0131] Figure 3 is a structural block diagram of an optional electronic device according to an embodiment of the present application, such as Figure 3 As shown, it includes a processor 301, a communication interface 302, a memory 303 and a communication bus 304, wherein the processor 301, the communication interface 302 and the memory 303 communicate with each other through the communication bus 304, wherein,

[0132] Memory 303, used for storing computer programs;

[0133] The processor 301 is used to implement the following steps when executing the computer program stored in the memory 303:

[0134] S1, obtaining a first drawing file uploaded by a first object, wherein the first drawing file is a drawing file to be stored in a target storage system, and the file format of the first drawing file is a first file format;

[0135] S2, converting the file format of the first drawing file from the first file format to the second file format to obtain a second drawing file, wherein the file format of the second drawing file is the second file format;

[0136] S3, storing the second drawing file in the target storage system.

[0137] Optionally, in this embodiment, the communication bus may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0138] The communication interface is used for communication between the above electronic device and other devices.

[0139] The memory may include RAM, or may include non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0140] As an example, Figure 3 As shown, the memory 303 may include but is not limited to the first acquisition module 202, the conversion module 204, and the storage module 206 in the storage device of the drawing file. In addition, it may also include but is not limited to other module units in the storage device of the drawing file, which will not be repeated in this example.

[0141] The above-mentioned processor can be a general-purpose processor, which can include but not be limited to: CPU (Central Processing Unit), NP (Network Processor), etc.; it can also be DSP (Digital Signal Processing), ASIC (Application Specific Integrated Circuit), FPGA (Field-Programmable Gate Array) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0142] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment will not be described in detail here.

[0143] It can be understood by those skilled in the art that Figure 3The structure shown is for illustration only. The device for implementing the above-mentioned drawing file storage method may be a client device, which may be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (Mobile Internet Devices, MID), a PAD, and other client devices. Figure 3 It does not limit the structure of the above electronic device. For example, the client device may also include Figure 3 More or fewer components (such as network interfaces, display devices, etc.) shown in, or having Figure 3 Different configurations shown.

[0144] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the client device through a program, and the program can be stored in a computer-readable storage medium, which can include: a flash drive, ROM, RAM, a magnetic disk or an optical disk, etc.

[0145] According to another aspect of the embodiment of the present application, a storage medium is further provided. Optionally, in this embodiment, the storage medium can be used to execute the program code of the storage method of the drawing file.

[0146] Optionally, in this embodiment, the storage medium may be located on at least one network device among a plurality of network devices in the network shown in the above embodiment.

[0147] Optionally, in this embodiment, the storage medium is configured to store program codes for executing the following steps:

[0148] S1, obtaining a first drawing file uploaded by a first object, wherein the first drawing file is a drawing file to be stored in a target storage system, and the file format of the first drawing file is a first file format;

[0149] S2, converting the file format of the first drawing file from the first file format to the second file format to obtain a second drawing file, wherein the file format of the second drawing file is the second file format;

[0150] S3, storing the second drawing file in the target storage system.

[0151] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, which will not be described in detail in this embodiment.

[0152] Optionally, in this embodiment, the storage medium may include, but is not limited to, various media that can store program codes, such as a USB flash drive, a ROM, a RAM, a mobile hard disk, a magnetic disk, or an optical disk.

[0153] According to another aspect of the embodiments of the present application, a computer program product or a computer program is also provided, which includes computer instructions, and the computer instructions are stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the steps of the drawing file storage method in any of the above embodiments.

[0154] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0155] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above 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, which is stored in a storage medium and includes several instructions for enabling one or more computer devices (which can be personal computers, servers or network devices, etc.) to execute all or part of the steps of the storage method of the drawing files of each embodiment of the present application.

[0156] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0157] In the several embodiments provided in the present application, it should be understood that the disclosed client can be implemented in other ways. Among them, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, for example, 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 units or modules, which can be electrical or other forms.

[0158] The units described 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 provided in this embodiment.

[0159] 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.

[0160] The above are only preferred implementations of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for storing drawing files, characterized in that: The method comprises: Acquire a first drawing file uploaded by a first object, wherein the first drawing file is a drawing file to be stored in a target storage system, and a file format of the first drawing file is a first file format; Converting the file format of the first drawing file from the first file format to a second file format to obtain a second drawing file, wherein the file format of the second drawing file is a second file format, and the second file format type is a plurality of format types; storing the second drawing file in the target storage system; The step of converting the file format of the first drawing file from the first file format to the second file format to obtain the second drawing file includes: using a target application to open the first drawing file; calling a handle selection tool to find target window information of a target layer in the first drawing file, wherein the target window information includes position information of a control located in the target layer; extracting target position information of a target control from the target window information, wherein the target control is a control in the target layer; controlling a trigger operation to be performed on the target control, wherein the target control is used to control the conversion of the first file format to the second file format; and converting the first drawing file to the second drawing file in response to the trigger operation; Among them, the controlling of executing the trigger operation on the target control includes: controlling the cursor in the application interface of the target application to move to the coordinate position indicated by the target position information in the target layer; and controlling the executing of the trigger operation on the target control at the coordinate position.

2. The method according to claim 1, characterized in that Before opening the first drawing file by using the target application, the method further includes: Acquire file suffix information of the first drawing file, wherein the file suffix information is used to indicate the file format of the first drawing file; The target application matching the file format is determined according to the file suffix information, wherein the target application is an application that is allowed to open the file format.

3. The method according to claim 1, characterized in that The extracting the target position information of the target control from the window information comprises: Extracting a target window code corresponding to the target control from the window information, wherein the window code corresponds to the position information of the control one by one; The target position information corresponding to the target window code is obtained.

4. The method according to any one of claims 1 to 3, characterized in that After storing the second drawing file in the target storage system, the method further includes: In the case that there are multiple second drawing files and different second drawing files correspond to different file formats, obtaining a selection operation performed by the second object on the multiple second drawing files, wherein the selection operation is used to select a target drawing file of a target file format from the multiple second drawing files; In response to the selection operation, the target drawing file among the plurality of second drawing files is sent to the second object.

5. A storage device for drawing files, characterized in that: The device comprises: An acquisition module, configured to acquire a first drawing file uploaded by a first object, wherein the first drawing file is a drawing file to be stored in a target storage system, and a file format of the first drawing file is a first file format; a conversion module, used for converting the file format of the first drawing file from the first file format to a second file format to obtain a second drawing file, wherein the file format of the second drawing file is a second file format, and the second file format type is a plurality of format types; A storage module, used for storing the second drawing file in the target storage system; Wherein, the conversion module is used for: Opening the first drawing file using a target application; Invoke a handle selection tool to search for target window information of a target layer in the first drawing file, wherein the target window information includes position information of controls located in the target layer; Extracting target position information of a target control from the target window information, wherein the target control is a control in the target layer; Controlling to perform a trigger operation on a target control, wherein the target control is used to control conversion of the first file format into the second file format; In response to the trigger operation, converting the first drawing file into the second drawing file; The conversion module is specifically used to: control the cursor in the application interface of the target application to move to the coordinate position indicated by the target position information in the target layer; and control the trigger operation to be performed on the target control at the coordinate position.

6. A computer-readable storage medium, characterized in that: The storage medium includes a stored program, wherein the program executes the steps of the drawing file storage method described in any one of claims 1 to 4 when running.

7. An electronic device comprising a processor, a communication interface, a memory and a communication bus, wherein: The processor, the communication interface, and the memory communicate with each other via a communication bus; wherein: Memory, used to store computer programs; A processor, configured to execute the steps of the drawing file storage method according to any one of claims 1 to 4 by running a program stored in a memory.