CN112765097A - Drawing file storage method and device, electronic equipment and storage medium - Google Patents
Drawing file storage method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN112765097A CN112765097A CN202110017978.9A CN202110017978A CN112765097A CN 112765097 A CN112765097 A CN 112765097A CN 202110017978 A CN202110017978 A CN 202110017978A CN 112765097 A CN112765097 A CN 112765097A
- Authority
- CN
- China
- Prior art keywords
- file
- target
- drawing file
- file format
- format
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 53
- 238000006243 chemical reaction Methods 0.000 claims abstract description 25
- 238000004891 communication Methods 0.000 claims description 14
- 238000012545 processing Methods 0.000 claims description 6
- 238000004590 computer program Methods 0.000 claims description 5
- 230000008569 process Effects 0.000 abstract description 11
- 238000005516 engineering process Methods 0.000 abstract description 4
- 238000013461 design Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 5
- 238000000605 extraction Methods 0.000 description 5
- 230000005540 biological transmission Effects 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000012356 Product development Methods 0.000 description 2
- 239000000284 extract Substances 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000007639 printing Methods 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/11—File system administration, e.g. details of archiving or snapshots
- G06F16/113—Details of archiving
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/11—File system administration, e.g. details of archiving or snapshots
- G06F16/116—Details of conversion of file system types or formats
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The application provides a drawing file storage method and device, electronic equipment and a storage medium, wherein the method comprises the following steps: 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; converting the file format of the first drawing file from the first file format into a second file format to obtain a second drawing file, wherein the file format of the second drawing file is the second file format; and storing the second drawing file into the target storage system. According to the method and the device, the conversion operation of various image-text formats is not required to be manually carried out due to the diversification among the drawing file formats, the operation time is saved, the working efficiency is improved, and the problem that the manual operation efficiency is lower in the conversion process of various drawing file formats in the related technology is solved.
Description
Technical Field
The present application relates to the field of data processing, and in particular, to a method and an apparatus for storing a drawing file, an electronic device, and a storage medium.
Background
When carrying out product development design, can use diversified design drawing software to carry out the drawing and draw, when the user consulted the drawing file at every turn, because of the diversified problem of drawing file format, need the artifical different format conversion who solves between the drawing file, because the conversion operation is comparatively loaded down with trivial details, lead to the user carrying out the drawing transmission and look up the in-process, its operating efficiency receives great influence.
Therefore, the problem that manual operation efficiency is low in the process of converting the formats of various drawing files exists in the prior art.
Disclosure of Invention
In order to solve the problem of low manual operation efficiency in the process of converting multiple drawing file formats, the embodiment of the application provides a drawing file storage method and device, an electronic device and a storage medium.
The embodiment of the application provides a storage method of a drawing file, which comprises the following steps:
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;
converting the file format of the first drawing file from the first file format into a second file format to obtain a second drawing file, wherein the file format of the second drawing file is the second file format;
and storing the second drawing file into the target storage system.
Further, 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 includes:
opening the first drawing file by using a target application;
controlling to execute a trigger operation on a target control, wherein the target control is used for controlling to convert the first file format into the second file format;
and responding to the trigger operation, and converting the first drawing file into the second drawing file.
Further, before the opening the first drawing file with the target application, the method further includes:
acquiring file suffix information of the first drawing file, wherein the file suffix information is used for representing a file format of the first drawing file;
and determining the target application matched with the file format according to the file suffix information, wherein the target application is an application allowing the file format to be opened.
Further, before the controlling performs the triggering operation on the target control, the method further includes:
calling a handle selection tool to search target window information of a target layer in the first drawing file, wherein the target window information comprises position information of a control located in the target layer, and the target control is one control in the target layer;
and extracting the target position information of the target control from the target window information.
Further, the controlling the trigger operation performed on the target control includes:
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;
and controlling the target control on the coordinate position to execute the triggering operation.
Further, the extracting the target position information of the target control from the window information includes:
extracting a target window code corresponding to the target control from the window information, wherein the window codes correspond to the position information of the control one by one;
and acquiring the target position information corresponding to the target window code.
Further, after storing the second drawing file in the target storage system, the method further comprises:
under the condition that the second drawing files are multiple and different second drawing files correspond to different file formats, obtaining selection operation of a second object on the multiple second drawing files, wherein the selection operation is used for selecting a target drawing file in a target file format from the multiple second drawing files;
and responding to the selection operation, and sending the target drawing file in the second drawing files to the second object.
The embodiment of the application provides a storage device of drawing file, and the device includes:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a first drawing file uploaded by a first object, 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;
the conversion module is used for converting the file format of the first drawing file from the first file format into a second file format to obtain a second drawing file, wherein the file format of the second drawing file is the second file format;
and the storage module is used for storing the second drawing file into the target storage system.
Further, the conversion module includes:
an opening unit configured to open the first drawing file using a target application;
the control unit is used for controlling a target control to execute trigger operation, wherein the target control is used for controlling the first file format to be converted into the second file format;
and the response unit is used for responding to the trigger operation and converting the first drawing file into the second drawing file.
Further, the apparatus further comprises:
a second obtaining module, configured to obtain file suffix information of the first drawing file before the first drawing file is opened by using a target application, where the file suffix information is used to indicate a file format of the first drawing file;
and the determining module is used for determining the target application matched with the file format according to the file suffix information, wherein the target application is an application allowing the file format to be opened.
Further, the apparatus further comprises:
the searching module is used for calling a handle selecting tool to search target window information of a target layer in the first drawing file before the control executes a trigger operation on a target control, wherein the target window information comprises position information of a control in the target layer, and the target control is one control in the target layer;
and the extraction module is used for extracting the target position information of the target control from the target window information.
Further, the control unit includes:
the first control subunit is configured 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 the second control subunit is used for controlling the target control at the coordinate position to execute the trigger operation.
Further, the extraction module comprises:
the extracting unit is used for 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;
an obtaining unit configured to obtain the target position information corresponding to the target window code.
Further, the apparatus further comprises:
a third obtaining module, configured to, after the second drawing files are stored in the target storage system, obtain, by a second object, a selection operation performed on a plurality of second drawing files when the second drawing files are multiple and different second drawing files correspond to different file formats, where the selection operation is used to select, from the plurality of second drawing files, a target drawing file in a target file format;
and the sending module is used for responding to the selection operation and sending the target drawing file in the second drawing files to the second object.
According to the embodiment of the application, the format of the first drawing file which is uploaded to the target storage system and is to be converted is converted, the second drawing file of the second file format is generated, the second drawing file is stored in the target storage system, therefore, a user can directly acquire the second drawing file from the target storage system, the second drawing file is rapidly downloaded, printed and consulted, the operation time is saved, the working efficiency is improved, and the problem that in the process of converting various drawing file formats in the related technology, the manual operation efficiency is low is solved.
Drawings
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 application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
Fig. 1 is a schematic flowchart of an alternative drawing file storage method according to an embodiment of the present application;
fig. 2 is a block diagram of an alternative drawing file storage device according to an embodiment of the present disclosure;
fig. 3 is a block diagram of an alternative electronic device according to an embodiment of the present application.
Detailed Description
In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments, and the illustrative embodiments and descriptions thereof of the present application are used for explaining the present application and do not constitute a limitation to the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another similar entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
When product development and design are carried out in an enterprise at present, various design tools are used for design and development, and the problems that lightweight transmission, printing and look-up use such as production, inspection and the like cannot be met due to diversified drawing formats exist; and the user can open the drawing with the required format only by installing corresponding development software in a local computer, the requirement on the configuration of office resources in an enterprise is high, and the transmission and lookup operation efficiency of the user is greatly influenced. Aiming at the problem, in the existing mode, the different format conversion between the drawing files can be manually completed by installing corresponding development software in a local computer, but the operation of manual conversion is complex, and the transmission and searching operation efficiency of a user can be greatly influenced. In order to solve the above problem, an embodiment of the present application provides a method for storing a drawing file, as shown in fig. 1, the method includes:
step S102, a first drawing file uploaded by a first object is obtained, 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.
Optionally, a server for converting the format of the drawing file is provided in the embodiment of the application, and a first drawing file uploaded by a first object is acquired through the server interface, where the first drawing file is a file to be converted and stored in a target storage system, and the first drawing file may be a CAD file, a PS file, a Word file, or the like.
The uploading mode of the server for acquiring the first drawing files in the embodiment of the application can be a mode that the first object uploads the first drawing files locally in batches, or a mode that the first object uploads the first drawing files one by one; or the first object does not actively upload, but the server interface automatically acquires the basic information of the first drawing file, extracts the figure and text number field in the basic information, and then takes the first drawing file from the gallery.
And step S104, converting the file format of the first drawing file from the first file format into a second file format to obtain a second drawing file, wherein the file format of the second drawing file is the second file format.
Optionally, after the server acquires the first drawing file, the file format of the first drawing file is converted from the first file format to a second file format, so that a second drawing file in the second file format is acquired. The second file format type may be one format type or a plurality of format types, and therefore, the relationship between the first file format and the second file format may be one-to-one or one-to-many. For example, the first drawing file is in a Word file format, and is converted into a second drawing file in a PDF format and/or a DXF format, so that the conversion of various files in office and the conversion of various drawing formats in CAD can be realized. It should be noted that, in the embodiment of the present application, the first drawing file format and the second drawing file format are not specifically limited, and as long as the conversion from the first drawing file format to the second drawing file format can be satisfied, the embodiments of the present application are all within the protection scope of the embodiment of the present application.
And step S106, storing the second drawing file into a target storage system.
Optionally, all file formats corresponding to the second drawing file are stored in the target storage system, so that the user can select multiple file formats.
According to the embodiment of the application, format conversion is carried out on the first drawing file with the format to be converted uploaded into the target storage system, the second drawing file with the second file format is generated, and the second drawing file is stored in the target storage system, so that a user can directly acquire the second drawing file from the target storage system, the second drawing file can be rapidly downloaded, printed and consulted, conversion operation of various image-text formats is not needed due to diversification among the drawing file formats, the operation time is saved, the working efficiency is improved, and the problem that in the conversion process of various drawing file formats in the related technology, the manual operation efficiency is low is solved.
As an optional embodiment, 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 includes:
opening a first drawing file by using a target application;
controlling to execute trigger operation on a target control, wherein the target control is used for controlling to convert the first file format into a second file format;
and responding to the trigger operation, and converting the first drawing file into a second drawing file.
Optionally, the first drawing file is opened according to the selected target application. In the process of opening the first drawing file, according to the font requirement of the first drawing file, the corresponding font file in the target application is automatically called, and characters in the first drawing file are displayed.
After a first drawing file is displayed in a target application, a target control for converting the first file format into a second file format is found, a trigger operation is executed on the target control, the server responds to the trigger operation, and then the first drawing file is converted into a second drawing file.
According to the method and the device for converting the first file format into the second file format, after the first drawing file is opened by the target application, the trigger operation of the target control in the target application is executed, and the conversion from the first file format to the second file format is completed.
As an alternative embodiment, before opening the first drawing file with the target application, the method further includes:
acquiring file suffix information of the first drawing file, wherein the file suffix information is used for representing the file format of the first drawing file;
and determining a target application matched with the file format according to the file suffix information, wherein the target application is an application allowing the file format to be opened.
Optionally, the file format of the first drawing file is obtained according to file suffix information of the first drawing file, such as.
The target application capable of opening the file format can be determined according to the file suffix information, wherein the target application is an application which allows opening the file format, one file format can correspond to one or more target applications, for example, when the file format is PDF, the file format can be obtained according to an opening function of application software, and the PDF file can be opened by software a or software B, so the target application in the embodiment of the application can be software a or software B.
In addition, configuration information between the file format and the target application may also be set in advance, where the configuration information is used to indicate a correspondence between the file format and the target application that opens the file format, and the correspondence may be a one-to-one relationship, such as: a target application opens a file format; may be a one-to-many relationship such as: one target application can open a plurality of file formats; the relationship may be many-to-one, for example, one file format may be opened by a plurality of target applications, so that when the file suffix information is obtained, the target application matching the file format is obtained.
According to the file suffix information, the target application matched with the file format can be quickly obtained, and the efficiency of file format conversion is improved.
As an alternative embodiment, before controlling the trigger operation performed on the target control, the method further includes:
calling a handle selection tool, and searching target window information of a target layer in a first drawing file, wherein the target window information comprises position information of a control located in the target layer, and the target control is one control in the target layer;
and extracting target position information of the target control from the target window information.
Optionally, the server may call a handle selection tool to search for target window information of a target layer in the first drawing file, where the target layer is one of layers constituting the first drawing file, the target layer is provided with the target window information, and the target window information includes location information of each control (including a target control). Target position information of the target control can be acquired from the target window information.
For example, window information such as "file", "start", "page layout", and the like is set in the target layer, in the embodiment of the present application, "file" may be used as the target window information, controls such as "save as", "save", "new", and the like are included in the "file" window information, and each control is arranged at a corresponding position according to preset position information.
As an alternative embodiment, controlling the trigger operation performed on the target control includes:
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;
and controlling to execute trigger operation on the target control at the coordinate position.
Optionally, after obtaining the target position information of the target control, the embodiment of the present application may transmit the position information to a cursor movement program, where the cursor movement program is used to control cursor movement in an application interface of the target application. After the cursor is controlled to move to the coordinate position of the target control through the cursor moving program, the server controls the cursor to execute a triggering operation on the target control at the coordinate position, wherein the triggering operation can include, but is not limited to, an "save as" operation, a "format conversion" operation, and the like.
As an alternative embodiment, the extracting the target position information of the target control from the window information includes:
extracting target window codes corresponding to the target controls from the window information, wherein the window codes correspond to the position information of the controls one by one;
target position information corresponding to the target window code is obtained.
Optionally, the window information is provided with a window code of each control, the window code corresponds to the position information of the control one by one, and the coordinate position of the control can be directly located according to the window code.
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.
In addition, the target position information of the target control can be obtained according to the target window code, and the coordinate position clicked by the automatic program can be manually adjusted, so that the step-by-step debugging can be carried out until the correct coordinate position is found, and the correct coordinate position is written into the cursor moving program.
According to the method and the device, the target position information of the target control can be conveniently and accurately acquired according to the window number.
As an alternative embodiment, after storing the second drawing file in the target storage system, the method further comprises:
under the condition that the second drawing files are multiple and different second drawing files correspond to different file formats, obtaining selection operation of a second object on the multiple second drawing files, wherein the selection operation is used for selecting a target drawing file in a target file format from the multiple second drawing files;
and responding to the selection operation, and sending a target drawing file in the plurality of second drawing files to the second object.
Optionally, when the obtained second drawing file includes a plurality of file format types, and the file format types are different from each other, the second drawing file may be selected.
At this time, the server acquires a selection operation of the second object on the second drawing file, wherein the selection operation is used for selecting a target drawing file in a target file format from the plurality of second drawing files, and 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.
According to the embodiment of the application, the required target drawing file is selected from the converted second drawing files of multiple types, so that the time cost and the efficiency cost brought in the format conversion process of the drawing file are reduced, the dependence on the special drawing software is reduced, and the application of users in fast downloading, printing, looking up the drawing file, analyzing data processing and the like is facilitated.
According to another aspect of the embodiment of the application, a drawing file storage device for implementing the drawing file storage method is further provided. Fig. 2 is a schematic diagram of an alternative drawing file storage device according to an embodiment of the present application, and as shown in fig. 2, the device may include:
the first obtaining module 202 is configured to obtain a first drawing file uploaded by a first object, where 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;
the conversion module 204 is configured to convert the file format of the first drawing file from the first file format to a second file format to obtain a second drawing file, where the file format of the second drawing file is the second file format;
and the storage module 206 is configured to store the second drawing file in the target storage system.
It should be noted that the first obtaining module 202 in this embodiment may be configured to execute the step S102, the converting module 204 in this embodiment may be configured to execute the step S104, and the storing module 206 in this embodiment may be configured to execute the step S106.
According to the embodiment of the application, format conversion is carried out on the first drawing file with the format to be converted uploaded into the target storage system, the second drawing file with the second file format is generated, the second drawing file is stored in the target storage system, therefore, a user can directly acquire the second drawing file from the target storage system, the second drawing file can be rapidly downloaded, printed and consulted, conversion operation of various image-text formats is not needed to be carried out due to diversification of the drawing file formats, the operation time is saved, the working efficiency is improved, and the problem that in the conversion process of various drawing file formats in the related technology, the manual operation efficiency is low is solved.
As an alternative embodiment, the conversion module comprises:
an opening unit configured to open a first drawing file using a target application;
the control unit is used for controlling the target control to execute the trigger operation, wherein the target control is used for controlling the conversion of the first file format into the second file format;
and the response unit is used for responding to the trigger operation and converting the first drawing file into a second drawing file.
As an alternative embodiment, the apparatus further comprises:
the second obtaining module is used for obtaining file suffix information of the first drawing file before the first drawing file is opened by using the target application, wherein the file suffix information is used for representing the file format of the first drawing file;
and the determining module is used for determining a target application matched with the file format according to the file suffix information, wherein the target application is an application allowing the file format to be opened.
As an alternative embodiment, the apparatus further comprises:
the searching module is used for calling a handle selecting tool to search target window information of a target layer in the first drawing file before controlling to execute triggering operation on the target control, wherein the target window information comprises position information of a control in the target layer, and the target control is one control in the target layer;
and the extraction module is used for extracting the target position information of the target control from the target window information.
As an alternative embodiment, the control unit comprises:
the first control subunit is used for 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 the second control subunit is used for controlling the target control at the coordinate position to execute the trigger operation.
Further, the extraction module comprises:
the extraction unit is used for 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;
and the acquisition unit is used for acquiring target position information corresponding to the target window code.
As an alternative embodiment, the apparatus further comprises:
the third obtaining module is used for obtaining the selecting operation of a second object on a plurality of second drawing files under the condition that the plurality of second drawing files correspond to different file formats after the second drawing files are stored in the target storage system, wherein the selecting operation is used for selecting the target drawing file in the target file format from the plurality of second drawing files;
and the sending module is used for responding to the selection operation and sending the target drawing file in the plurality of second drawing files to the second object.
It should be noted here that the modules described above are the same as the examples and application scenarios implemented by the corresponding steps, but are not limited to the disclosure of the above embodiments.
According to another aspect of the embodiments of the present application, there is also provided an electronic device for implementing the storage method of the asset paper file, where the electronic device may be a server, a client, or a combination thereof.
Fig. 3 is a block diagram of an alternative electronic device according to an embodiment of the present application, as shown in fig. 3, including a processor 301, a communication interface 302, a memory 303, and a communication bus 304, where the processor 301, the communication interface 302, and the memory 303 communicate with each other through the communication bus 304, where,
a memory 303 for storing a computer program;
the processor 301, when executing the computer program stored in the memory 303, implements the following steps:
s1, 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;
s2, converting the file format of the first drawing file from the first file format into a second file format to obtain a second drawing file, wherein the file format of the second drawing file is the second file format;
and S3, storing the second drawing file in the target storage system.
Alternatively, in this embodiment, the communication bus may be a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 3, but this does not mean only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The memory may include RAM, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory. Alternatively, the memory may be at least one memory device located remotely from the processor.
As an example, as shown in fig. 3, the memory 303 may include, but is not limited to, the first obtaining module 202, the converting module 204, and the storing module 206 in a storage device of the drawing file. In addition, the module unit may further include, but is not limited to, other module units in the storage device of the drawing file, which is not described in this example again.
The processor may be a general-purpose processor, and may include but is not limited to: a CPU (Central Processing Unit), an NP (Network Processor), and the like; but also a DSP (Digital Signal Processing), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment is not described herein again.
It can be understood by those skilled in the art that the structure shown in fig. 3 is only an illustration, and the device implementing the storage method of the drawing file may be a client device, and the client device may be a client device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, a Mobile Internet Device (MID), a PAD, and the like. Fig. 3 is a diagram illustrating a structure of the electronic device. For example, the client device may also include more or fewer components (e.g., network interfaces, display devices, etc.) than shown in FIG. 3, or have a different configuration than shown in FIG. 3.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by a program that instructs hardware associated with the client device, and the program may be stored in a computer-readable storage medium, which may include: flash disk, ROM, RAM, magnetic or optical disk, and the like.
According to still another aspect of an embodiment of the present application, there is also provided a storage medium. Alternatively, in this embodiment, the storage medium may be a program code for executing a storage method of a drawing file.
Optionally, in this embodiment, the storage medium may be located on at least one of a plurality of network devices in a network shown in the above embodiment.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps:
s1, 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;
s2, converting the file format of the first drawing file from the first file format into a second file format to obtain a second drawing file, wherein the file format of the second drawing file is the second file format;
and S3, storing the second drawing file in the target storage system.
Optionally, the specific example in this embodiment may refer to the example described in the above embodiment, which is not described again in this embodiment.
Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing program codes, such as a U disk, a ROM, a RAM, a removable hard disk, a magnetic disk, or an optical disk.
According to yet another aspect of an embodiment of the present application, there is also provided a computer program product or a computer program comprising computer instructions stored in a computer readable storage medium; the processor of the computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions to cause the computer device to execute the steps of the storage method of the drawing file in any one of the embodiments.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a storage medium, and including a plurality of instructions for causing one or more computer devices (which may be personal computers, servers, network devices, or the like) to execute all or part of the steps of the storage method of the paper file in the embodiments of the present application.
In the above embodiments of the present application, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, a division of a unit is merely a division of a logic function, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, and may also be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution provided in the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.
Claims (10)
1. A storage method of drawing files is characterized by comprising the following steps:
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;
converting the file format of the first drawing file from the first file format into a second file format to obtain a second drawing file, wherein the file format of the second drawing file is the second file format;
and storing the second drawing file into the target storage system.
2. The method of claim 1, wherein converting the file format of the first drawing file from the first file format to a second file format, and wherein obtaining a second drawing file comprises:
opening the first drawing file by using a target application;
controlling to execute a trigger operation on a target control, wherein the target control is used for controlling to convert the first file format into the second file format;
and responding to the trigger operation, and converting the first drawing file into the second drawing file.
3. The method of claim 2, wherein prior to the opening the first drawing file with the target application, the method further comprises:
acquiring file suffix information of the first drawing file, wherein the file suffix information is used for representing a file format of the first drawing file;
and determining the target application matched with the file format according to the file suffix information, wherein the target application is an application allowing the file format to be opened.
4. The method of claim 2, wherein prior to the controlling performing the trigger operation on the target control, the method further comprises:
calling a handle selection tool to search target window information of a target layer in the first drawing file, wherein the target window information comprises position information of a control located in the target layer, and the target control is one control in the target layer;
and extracting the target position information of the target control from the target window information.
5. The method of claim 4, wherein controlling the trigger operation on the target control comprises:
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;
and controlling the target control on the coordinate position to execute the triggering operation.
6. The method of claim 4, wherein 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 codes correspond to the position information of the control one by one;
and acquiring the target position information corresponding to the target window code.
7. The method of any of claims 1-6, wherein after storing the second drawing file in the target storage system, the method further comprises:
under the condition that the second drawing files are multiple and different second drawing files correspond to different file formats, obtaining selection operation of a second object on the multiple second drawing files, wherein the selection operation is used for selecting a target drawing file in a target file format from the multiple second drawing files;
and responding to the selection operation, and sending the target drawing file in the second drawing files to the second object.
8. A drawing file storage apparatus, comprising:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring a first drawing file uploaded by a first object, 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;
the conversion module is used for converting the file format of the first drawing file from the first file format into a second file format to obtain a second drawing file, wherein the file format of the second drawing file is the second file format;
and the storage module is used for storing the second drawing file into the target storage system.
9. A computer-readable storage medium, characterized in that the storage medium comprises a stored program, wherein the program is operative to perform the method steps of storing a drawing document according to any one of claims 1 to 7.
10. An electronic device comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus; wherein:
a memory for storing a computer program;
a processor for executing the steps of the method for storing a drawing document according to any one of claims 1 to 7 by executing a program stored on a memory.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110017978.9A CN112765097A (en) | 2021-01-07 | 2021-01-07 | Drawing file storage method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110017978.9A CN112765097A (en) | 2021-01-07 | 2021-01-07 | Drawing file storage method and device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112765097A true CN112765097A (en) | 2021-05-07 |
Family
ID=75700650
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110017978.9A Pending CN112765097A (en) | 2021-01-07 | 2021-01-07 | Drawing file storage method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112765097A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113642091A (en) * | 2021-10-15 | 2021-11-12 | 深圳须弥云图空间科技有限公司 | Drawing-based change hanging method and device, electronic equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060061792A1 (en) * | 2004-09-21 | 2006-03-23 | Kim Jae-Ho | Image forming apparatus and method |
CN109670222A (en) * | 2018-12-07 | 2019-04-23 | 广联达科技股份有限公司 | A kind of model or the online contrast difference's methods, devices and systems of drawing |
CN109992564A (en) * | 2019-02-20 | 2019-07-09 | 深圳大普微电子科技有限公司 | Document storage system and method |
CN111291438A (en) * | 2020-01-22 | 2020-06-16 | 远景智能国际私人投资有限公司 | File processing method and device, electronic equipment and storage medium |
-
2021
- 2021-01-07 CN CN202110017978.9A patent/CN112765097A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060061792A1 (en) * | 2004-09-21 | 2006-03-23 | Kim Jae-Ho | Image forming apparatus and method |
CN109670222A (en) * | 2018-12-07 | 2019-04-23 | 广联达科技股份有限公司 | A kind of model or the online contrast difference's methods, devices and systems of drawing |
CN109992564A (en) * | 2019-02-20 | 2019-07-09 | 深圳大普微电子科技有限公司 | Document storage system and method |
CN111291438A (en) * | 2020-01-22 | 2020-06-16 | 远景智能国际私人投资有限公司 | File processing method and device, electronic equipment and storage medium |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113642091A (en) * | 2021-10-15 | 2021-11-12 | 深圳须弥云图空间科技有限公司 | Drawing-based change hanging method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104112002B (en) | A kind of methods, devices and systems of list adaptation | |
US8788699B2 (en) | Information processing apparatus and document data producing method | |
CN107766900B (en) | Method, system and computing device for printing bar code | |
US10250771B2 (en) | Information processing system, information processing apparatus, and information processing method | |
CN107368550B (en) | Information acquisition method, device, medium, electronic device, server and system | |
CN106844453B (en) | Electronic file format conversion method | |
WO2016118215A1 (en) | Classification and storage of documents | |
CN102831104A (en) | Method, device and terminal for adjusting terminal word | |
CN112765097A (en) | Drawing file storage method and device, electronic equipment and storage medium | |
CN101894021A (en) | Method and system for realizing interface of embedded system | |
US20140139860A1 (en) | Print processing apparatus, print processing method, and recording medium storing a print processing program | |
US20140337413A1 (en) | Relaying device, image processing device, and system comprising image processing device, relaying device and service server | |
CN106650850B (en) | Bar code scanning equipment configuration method and system based on webpage end | |
CN105224420A (en) | A kind of analytical approach of automatic parsing terminal abnormal and system | |
US20140205194A1 (en) | Information processing apparatus and computer-readable medium | |
CN112433783A (en) | Configuration method and related equipment | |
CN103853544A (en) | Method and device for generating hyperlinks as well as terminal | |
CN108519962B (en) | Font display method and apparatus applied to android system, and terminal device | |
CN106843884B (en) | Query data processing method and device | |
CN104809753A (en) | File treatment method | |
CN112130791B (en) | Method and device for editing information among multiple screens, storage medium and electronic device | |
CN109359384B (en) | Method and device for calling silk-screen mark into printed circuit board | |
KR100631680B1 (en) | Text message handwriting input display device and method of mobile terminal | |
CN110147531B (en) | Method, device and storage medium for identifying similar text content | |
CN113407783A (en) | Electric locomotive overhaul record management system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |