Process file processing method and device, processor and electronic device

By converting the CXP format process files generated by CAXA process charts to DWG format, the problem of poor annotation or modification effects when CAXA software is not installed is solved, enabling convenient annotation and modification operations, reducing costs and supporting paperless management for enterprises.

CN115828859BActive Publication Date: 2025-11-07CAXA TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211549888.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-05
Publication Date
2025-11-07
Estimated Expiration
2042-12-05

AI Technical Summary

Technical Problem

Without CAXA process chart software installed, the effect of annotating or modifying the .cxp format process files generated by CAXA process chart software is poor, and the enterprise's paperless management and production costs increase.

Method used

Convert the CXP format process file generated by CAXA process charts into two-dimensional data, and change its format to DWG format to generate a target process file that can be annotated or modified in DWG format.

Benefits of technology

It enables convenient annotation or modification operations in DWG format process files, saving the cost of purchasing CAXA process chart software, improving the annotation and modification effect, and supporting paperless management for enterprises.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115828859B_ABST
    Figure CN115828859B_ABST
Patent Text Reader

Abstract

The application discloses a processing method and device of a process file, a processor and electronic equipment. The method comprises the following steps: acquiring an original process file generated by using a CAXA process chart, wherein the format of the original process file is a cxp format; converting data in the original process file into two-dimensional data to obtain first data; changing the format of the first data into a dwg format to obtain target two-dimensional data; generating a target process file in a dwg format according to the target two-dimensional data, so as to perform a target operation on the target process file, wherein the target operation is at least one of the following: a marking operation or a modification operation. Through the application, the problem that the effect of marking or modifying a process file in a cxp format generated by using a CAXA process chart software is poor when the CAXA process chart software is not installed in the related art is solved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of data processing, in particular to a process file processing method and device, a processor and an electronic device. BACKGROUND

[0002] CAXA process chart is a professional process preparation system (the generated process file is in the format of cxp, hereinafter referred to as cxp process), which is deeply loved by users and is a popular process preparation tool on the market.

[0003] At present, it is possible that the design parts and the production parts are not completed by one factory, so it involves the division of labor and cooperation between different manufacturers. Specifically, when the downstream manufacturer receives a user order, the design and process file is provided by the upstream manufacturer for processing. However, because the equipment and production process of the downstream manufacturer are different from those of the upstream manufacturer, it is necessary to make certain annotations or modifications to the process document. At this time, if the upstream manufacturer uses the CAXA process chart to design the cxp process file, and the production department of the downstream manufacturer does not purchase the CAXA process chart software, the upstream manufacturer cannot provide the cxp file, but can only convert the cxp file into a pdf and provide it to the downstream manufacturer. If the downstream manufacturer wants to annotate or modify the file, it will be very troublesome. The annotation or modification method in the related art can only be to print the process document into paper for annotation or modification, or to purchase CAXA process chart software to open and edit the process file.

[0004] However, now enterprises are developing towards paperless direction, and printing into paper brings trouble to enterprise management, which is not conducive to enterprise paperless management. Moreover, because it is only a simple editing, purchasing CAXA process chart will increase the production cost.

[0005] In view of the poor effect of annotating or modifying the cxp format process file generated by the CAXA process chart software when the CAXA process chart software is not installed in the related art, no effective solution has been proposed so far. SUMMARY

[0006] The main purpose of the present application is to provide a process file processing method and device, a processor and an electronic device, to solve the problem of poor effect of annotating or modifying the cxp format process file generated by the CAXA process chart software when the CAXA process chart software is not installed in the related art.

[0007] In order to achieve the above object, according to one aspect of the present application, a processing method of a process file is provided. The method comprises: obtaining an original process file generated by a CAXA process chart, wherein the original process file is in a cxp format; converting data in the original process file into two-dimensional data to obtain first data; changing a format of the first data into a dwg format to obtain target two-dimensional data; and generating a target process file in the dwg format according to the target two-dimensional data, so as to perform a target operation on the target process file, wherein the target operation is at least one of the following: a marking operation or a modifying operation.

[0008] Further, the converting of the data in the original process file into the two-dimensional data to obtain the first data comprises: obtaining a data structure of the original process file; processing a document structure of the original process file based on the data structure of the original process file, so as to convert process cards in the original process file into drawings; and converting data in the drawings into the two-dimensional data to obtain the first data.

[0009] Further, the converting of the data in the drawings into the two-dimensional data to obtain the first data comprises: dividing the data in the drawings to obtain first part data and second part data, wherein the first part data is data corresponding to two-dimensional graphics in the drawings, and the second part data is data other than the first part data in the drawings; and converting the first part data and the second part data into the two-dimensional data respectively to obtain the first data.

[0010] Further, the converting of the first part data and the second part data into the two-dimensional data respectively to obtain the first data comprises: converting the first part data into the two-dimensional data to obtain second data; dividing the second part data into third part data and fourth part data, wherein the third part data is used to represent content of process design, and the fourth part data is used to represent information of a table in the process card; converting the third part data into the two-dimensional data to obtain third data; converting the fourth part data into the two-dimensional data to obtain fourth data; and collecting the second data, the third data and the fourth data to obtain the first data.

[0011] Further, the converting of the fourth part data into the two-dimensional data to obtain the fourth data comprises: determining attribute information of the table and text information in the table according to the fourth part data; and converting the attribute information of the table and the text information in the table into the two-dimensional data to obtain the fourth data.

[0012] Further, the first data is changed into a dwg format to obtain the target two-dimensional data, including: converting the first data into two-dimensional data in the dwg format to obtain fifth data; obtaining attribute information of the original process file; converting the fifth data into the target two-dimensional data based on the attribute information of the original process file.

[0013] Further, after the target process file is generated in the dwg format according to the target two-dimensional data and the target operation is performed on the target process file, the method further includes: obtaining the target process file after the target operation is performed; and processing the part according to the target process file after the target operation is performed.

[0014] To achieve the above object, according to another aspect of the present application, a processing device of a process file is provided. The device includes: a first obtaining unit configured to obtain an original process file generated by a CAXA process chart, wherein the original process file is in a cxp format; a first converting unit configured to convert data in the original process file into two-dimensional data to obtain first data; a first changing unit configured to change a format of the first data into a dwg format to obtain target two-dimensional data; and a first generating unit configured to generate a target process file in the dwg format according to the target two-dimensional data, so as to perform a target operation on the target process file, wherein the target operation is at least one of the following: a marking operation or a modifying operation.

[0015] Further, the first converting unit includes: a first obtaining sub-unit configured to obtain a data structure of the original process file; a first processing sub-unit configured to process a document structure of the original process file based on the data structure of the original process file, and convert process cards in the original process file into drawings; and a first converting sub-unit configured to convert data in the drawings into two-dimensional data to obtain the first data.

[0016] Further, the first converting sub-unit includes: a first dividing module configured to divide data in the drawings to obtain first part data and second part data, wherein the first part data is data corresponding to two-dimensional graphics in the drawings, and the second part data is data other than the first part data in the drawings; and a first converting module configured to convert the first part data and the second part data into two-dimensional data respectively to obtain the first data.

[0017] Further, the first conversion module comprises: a first conversion submodule, configured to convert the first part of data into two-dimensional data to obtain second data; a first division submodule, configured to divide the second part of data into third part of data and fourth part of data, wherein the third part of data is used to represent the content of process design, and the fourth part of data is used to represent the information of the table in the process card; a second conversion submodule, configured to convert the third part of data into two-dimensional data to obtain third data; a third conversion submodule, configured to convert the fourth part of data into two-dimensional data to obtain fourth data; and a first processing submodule, configured to aggregate the second data, the third data and the fourth data to obtain the first data.

[0018] Further, the third conversion submodule comprises: a determination submodule one, configured to determine attribute information of the table and text information in the table according to the fourth part of data; and a conversion submodule one, configured to convert the attribute information of the table and the text information in the table into two-dimensional data to obtain the fourth data.

[0019] Further, the first changing unit comprises: a second conversion submodule, configured to convert the first data into two-dimensional data in a dwg format to obtain fifth data; a second acquisition submodule, configured to acquire attribute information of the original process file; and a third conversion submodule, configured to convert the fifth data into the target two-dimensional data based on the attribute information of the original process file.

[0020] Further, the apparatus further comprises: a second acquisition unit, configured to acquire a target process file after a target operation on the target process file is performed according to the target two-dimensional data; and a first processing unit, configured to process a part according to the target process file after the target operation.

[0021] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a processor is provided, which is used to run a program, wherein the program performs any one of the process file processing methods mentioned above when running.

[0022] In order to achieve the above-mentioned purpose, according to another aspect of the present application, an electronic device is provided, which comprises one or more processors and a memory, wherein the memory is used to store one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement any one of the process file processing methods mentioned above.

[0023] The application provides a processing method of a process file, and the method comprises the following steps: obtaining an original process file generated by using a CAXA process chart, wherein the original process file is in a cxp format; converting data in the original process file into two-dimensional data to obtain first data; changing the format of the first data into a dwg format to obtain target two-dimensional data; and generating a target process file in the dwg format according to the target two-dimensional data, so as to perform a target operation on the target process file, wherein the target operation is at least one of the following: a marking operation or a modification operation, thereby solving the problem that the effect of marking or modifying the process file in the cxp format generated by using the CAXA process chart software is poor when the CAXA process chart software is not installed. BRIEF DESCRIPTION OF DRAWINGS

[0024] The accompanying drawings, which are part of this application, serve to further understand this application, and the illustrative embodiments of this application and the description thereof are used to explain this application, and do not constitute improper limitations on this application. In the drawings:

[0025] Figure 1 is a flowchart of a processing method of a process file according to an embodiment of the application;

[0026] Figure 2 is a flowchart of a processing method of a process file according to an embodiment of the application Figure 1 ;

[0027] Figure 3 is a flowchart of an optional processing method of a process file according to an embodiment of the application;

[0028] Figure 4 is a schematic diagram of a processing device of a process file according to an embodiment of the application;

[0029] Figure 5 is a schematic diagram of an electronic device according to an embodiment of the application. DETAILED DESCRIPTION

[0030] It should be noted that the embodiments in this application and the features in the embodiments can be combined with each other without conflict. The application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0031] In order to make the person skilled in the art better understand the scheme of the present application, 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 only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by the person skilled in the art without creative labor should belong to the protection scope of the present application.

[0032] It should be noted that the terms "first", "second" and the like in the specification and claims of the present application and the above-described drawings are used to distinguish similar objects, and do not necessarily indicate a specific order or a chronological sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device including a series of steps or units does not necessarily have to include only those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to the process, method, product or device.

[0033] For the convenience of description, part of the nouns or terms related to the embodiments of the present application are described as follows:

[0034] The process file is a necessary document for the production of the mechanical industry, mainly used to guide the production steps of workers and provide necessary production data.

[0035] The CAXA process chart is a CAD software using auxiliary software, which is a professional process preparation system.

[0036] The present application will be described below in conjunction with the preferred implementation steps, Figure 1 The flowchart of the process file processing method provided by the embodiments of the present application is shown in Figure 1 The method comprises the following steps:

[0037] Step S101, obtaining the original process file generated by the CAXA process chart, wherein the format of the original process file is cxp format.

[0038] For example, the original process file in cxp format generated by the CAXA process chart software is obtained.

[0039] Step S102, converting the data in the original process file into two-dimensional data to obtain first data.

[0040] For example, the data in the original process file in cxp format generated by the CAXA process chart software is converted into CAXA two-dimensional data objects, such as text, graphics, pictures and lines.

[0041] Step S103, changing the format of the first data into dwg format to obtain target two-dimensional data.

[0042] For example, converting CAXA two-dimensional data into dwg two-dimensional data.

[0043] Step S104, generating a target process file in dwg format according to the target two-dimensional data to perform a target operation on the target process file, wherein the target operation is at least one of the following: a marking operation or a modification operation.

[0044] For example, generating a dwg file (a process file in dwg format) according to the dwg two-dimensional data, and making certain markings or modifications on the dwg file.

[0045] Through the above steps S101 to S104, by converting the data in the obtained original process file in cxp format into two-dimensional data to obtain first data, changing the format of the first data into dwg format to obtain target two-dimensional data, and generating a target process file in dwg format according to the target two-dimensional data, the marking or modification operation in the target process file in dwg format can be conveniently performed, the cost of purchasing CAXA process chart software is saved, and the effect of marking or modifying the process file in cxp format generated by using CAXA process chart software when CAXA process chart software is not installed is improved.

[0046] Figure 2 is a process of a process file processing method provided by an embodiment of the present application Figure 1 As shown in Figure 2 In the process file processing method provided by the embodiment of the present application, converting the data in the original process file into two-dimensional data to obtain first data includes:

[0047] Step S201, acquiring a data structure of an original process file;

[0048] Step S202, processing a document structure of the original process file based on the data structure of the original process file, and converting process cards in the original process file into drawings;

[0049] Step S203, converting data in the drawings into two-dimensional data to obtain first data.

[0050] For example, the data structure of the cxp file is read by a method of data stream of a composite document, and the data structure of the cxp file is generated into the memory; then the data in the memory is arranged, the document structure in the process file is processed, the card structure in the process document corresponds to the drawing structure in the CAXA two-dimensional engineering drawing, each process card corresponds to a sheet page of the drawing, and the card tree sequence in the process document corresponds to the sheet page sequence in the two-dimensional drawing, the card name corresponds to the sheet page name, and the data in each drawing is converted into two-dimensional data.

[0051] Through the above scheme, the data in the cxp format process file can be quickly and accurately converted into two-dimensional data.

[0052] In order to quickly and accurately convert the data in the drawing into two-dimensional data, in the process file processing method provided by the embodiment of the application, the data in the drawing can also be converted into two-dimensional data by the following steps: dividing the data in the drawing to obtain first part data and second part data, wherein the first part data is data corresponding to two-dimensional graphics in the drawing, and the second part data is data other than the first part data in the drawing; and converting the first part data and the second part data into two-dimensional data respectively to obtain first data.

[0053] For example, the conversion process of a single drawing data can be that the data in the drawing is divided into two blocks, which are two-dimensional graphics (the above-mentioned first part data) and Card objects (the above-mentioned second part data), and then the two-dimensional graphics and the Card objects are converted into two-dimensional data respectively.

[0054] Through the above scheme, the data in each drawing can be quickly and accurately converted into two-dimensional data.

[0055] In order to quickly and accurately convert the first part data and the second part data into two-dimensional data respectively, in the process file processing method provided by the embodiment of the application, the first part data and the second part data can also be converted into two-dimensional data by the following steps: converting the first part data into two-dimensional data to obtain second data; dividing the second part data into third part data and fourth part data, wherein the third part data is used to indicate the content of process design, and the fourth part data is used to indicate the information of the table in the process card; converting the third part data into two-dimensional data to obtain third data; converting the fourth part data into two-dimensional data to obtain fourth data; and collecting the second data, the third data and the fourth data to obtain the first data.

[0056] For example, the conversion process of the two-dimensional graphics can be that the two-dimensional graphics include graphics, pictures and Ole objects (externally referenced objects) drawn on the drawing paper, and the graphics and pictures need to find corresponding related objects in the CAXA two-dimensional engineering drawing, and a new data is generated by Clone method (cloning method). In the Clone process, the original graphic related style and layer information needs to be recorded, the corresponding style and layer are established in the newly generated data, and the graphic information generated by Clone is associated with the style and layer. The Ole object needs to be processed additionally, and the Ole related data is taken from the original drawing paper, a temporary cache file is generated locally, and a new Ole object is generated through the temporary cache file. In addition, the above-mentioned style and layer information is some attributes that must be displayed for two-dimensional graphics and pictures, including color, line shape, line width, printing attribute, display attribute, etc.

[0057] For example, the conversion process of the Card object can be that the data structure in the Card object is divided into two parts, a process data part (the third part of data mentioned above) and a table part (the fourth part of data mentioned above). Moreover, the process data mainly refers to the related content of process design, and the table part is the data table on the process card. The process data part needs to be displayed by creating a two-dimensional data object. For example, the video object and the 3D object of the process have related data structures in the process table, and when converted into two-dimensional, since the video object and the 3D object in the process are process-specific data, there is no related data to correspond in the two-dimensional engineering drawing environment, so data conversion is needed to generate a temporary local cache file, and the temporary cache file is imported into the sheet page of the new two-dimensional engineering drawing in the form of Ole. The table part of the process needs to be redrawn according to the table attribute in the process card on the corresponding two-dimensional sheet page according to the table coordinates and the number of rows, and the data in the original card table is generated in the form of text at the corresponding position of the table. In addition, special engineering symbols are allowed to be generated in the process card, so the engineering symbols need to be converted when generating the table. If the related object can be found in the two-dimensional engineering graphics, the object in the two-dimensional engineering graphics is used for conversion, and if the corresponding engineering symbol cannot be found in the two-dimensional engineering graphics, the corresponding engineering symbol is generated by generating a graphic text. In the process of converting the process data and the process table into two-dimensional data, the corresponding style and layer information in the process document needs to be read to ensure that the display effect of the generated two-dimensional data object is consistent with that of the original process Card object.

[0058] Through the above scheme, the accuracy of converting the two-dimensional graphics and the Card object into two-dimensional data can be ensured.

[0059] In order to quickly and accurately convert the fourth part of data into two-dimensional data, in the process file processing method provided in the embodiment of the present application, the fourth part of data can also be converted into two-dimensional data by the following steps: determining attribute information of a table and text information in the table according to the fourth part of data; and converting the attribute information of the table and the text information in the table into two-dimensional data to obtain fourth data.

[0060] For example, when converting the table part of the process into two-dimensional data, the table can be reproduced and drawn on the corresponding two-dimensional sheet page according to the table attribute in the process card and the coordinates and the number of rows of the table, and the data in the original card table can be generated in the form of text at the corresponding position of the table.

[0061] Through the above scheme, the table part of the process can be quickly and accurately converted into two-dimensional data.

[0062] In order to quickly and accurately change the format of the first data into the dwg format, in the process file processing method provided in the embodiment of the present application, the format of the first data can also be changed into the dwg format by the following steps: converting the first data into two-dimensional data in the dwg format to obtain fifth data; obtaining attribute information of the original process file; and converting the fifth data into target two-dimensional data based on the attribute information of the original process file.

[0063] For example, the data objects in the CAXA two-dimensional data and the two-dimensional data objects in the dwg are one-to-one corresponding, and after the corresponding is good, conversion is performed to generate a dwg data structure in the memory. Specifically, after the data corresponding conversion is good, the style and layer information also need to be converted, then the generated dwg two-dimensional object and the corresponding style and layer are associated, and corresponding display data is generated.

[0064] Through the above scheme, the CAXA two-dimensional data can be quickly and accurately converted into dwg two-dimensional data.

[0065] In order to quickly and accurately process the parts, in the process file processing method provided in the embodiment of the present application, the parts can also be processed by the following steps: obtaining a target process file after a target operation; and processing the parts according to the target process file after the target operation.

[0066] For example, after the process file in the cxp format is converted into the dwg format, editing can be directly performed in the process file in the dwg format, and then the parts can be processed according to the edited process file.

[0067] Through the above scheme, the parts can be quickly and accurately processed.

[0068] For example, Figure 3An optional process file processing method according to an embodiment of the present application is shown in a flowchart as follows Figure 3 The optional process file processing method includes the following steps:

[0069] (1) First step: read the data structure of the cxp file by the method of data stream of the compound document, and generate the data structure of the cxp file into the memory;

[0070] (2) Second step: arrange the data in the memory, and process the document structure in the process file. The card structure in the process document corresponds to the drawing structure in the CAXA two-dimensional engineering drawing. Each process card corresponds to a sheet page of the drawing. The card tree sequence in the process document corresponds to the sheet page sequence in the two-dimensional drawing. The card name corresponds to the sheet page name;

[0071] (3) Third step: conversion of single drawing data. The data in the drawing is divided into two blocks, i.e. two-dimensional graphics and Card objects:

[0072] Conversion of two-dimensional graphics: the two-dimensional graphics include graphics, pictures and OLE objects on the drawing. The graphics and pictures need to find the corresponding related objects in the CAXA two-dimensional engineering drawing, and generate a new data by Clone. In the Clone process, the original graphic related style and layer information is recorded, the corresponding style and layer are established in the newly generated data, and the Clone generated graphic information is associated with the style and layer. The Ole object needs to be processed separately. The Ole related data is taken from the original drawing, a temporary cache file is generated locally, and a new Ole object is generated through the temporary cache file. The above mentioned style and layer information is some attributes that must be displayed for two-dimensional graphics and pictures, including color, line shape, line width, printing attribute, display attribute, etc.;

[0073] The data structure in the Card object is divided into two parts, the process data part and the table part. The process data mainly refers to the relevant content of the process design, and the table part is the data table on the process card. The process data part needs to be accepted and displayed by creating a two-dimensional data object. For example, the video object and 3D object of the process have related data structures in the process chart, and when converted into two dimensions, the video object and 3D object in the process are process-specific data, and there is no related data to correspond in the two-dimensional engineering drawing environment, so data conversion is needed to generate a temporary local cache file, and the temporary cache file is imported into the new two-dimensional engineering drawing sheet page in the form of Ole. The table part of the process needs to be redrawn according to the table properties in the process card on the corresponding two-dimensional sheet page according to the table coordinates and the number of rows, and the data in the original card table is generated in the form of text at the corresponding position of the table. In addition, special engineering symbols are allowed to be generated in the process card, so the engineering symbols need to be converted when generating the table. If the corresponding object can be found in the two-dimensional engineering drawing, the object in the two-dimensional engineering drawing is used for conversion, and if the corresponding engineering symbol cannot be found in the two-dimensional engineering drawing, the corresponding engineering symbol is generated by generating a graphical text. In the process of converting the process data and the process table into two-dimensional data, the corresponding style and layer information in the process document needs to be read to ensure that the display effect of the generated two-dimensional data object is consistent with that of the original process Card object.

[0074] (4) Fourth step: CAXA two-dimensional data conversion into dwg data, in step (3) the data in the CXP process has been converted into CAXA two-dimensional data, and the data objects in the CAXA two-dimensional data and the two-dimensional data objects in the dwg are one-to-one corresponding. After corresponding, conversion is carried out, and dwg data structure is generated in the memory. This process is similar to the card-to-two-dimensional engineering drawing conversion method in step (3). After the data is converted, the style and layer information needs to be converted, and then the generated dwg two-dimensional object and the corresponding style and layer are associated, and the corresponding display data is generated;

[0075] (5) Fifth step: appearance file generation, save the dwg data structure generated in step (4) into a real physical file.

[0076] Through the above scheme, the historical process in the cxp format can be converted into the dwg process, and the conversion is one-key batch conversion. That is, batch process conversion can be supported, a folder is selected, and all cxp process documents in a file are automatically converted into dwg documents by the system. In addition, after the paperless production is realized in a production enterprise, almost all production enterprises will have AutoCAD software (a drawing tool software), all dwg drawings can be directly edited in the production enterprise, and after editing, the dwg drawings can also be managed through the management system, thereby facilitating the accumulation of production data knowledge.

[0077] To sum up, the method for processing process files provided in the embodiments of the present application, by acquiring an original process file generated by using a CAXA process chart, wherein the format of the original process file is a cxp format; converting data in the original process file into two-dimensional data to obtain first data; changing the format of the first data into a dwg format to obtain target two-dimensional data; generating a target process file in a dwg format according to the target two-dimensional data, so as to perform a target operation on the target process file, wherein the target operation is at least one of the following: a marking operation or a modification operation, solves the problem that in the related art, when the CAXA process chart software is not installed, the effect of marking or modifying the process file in the cxp format generated by using the CAXA process chart software is poor. By converting the data in the original process file in the cxp format into two-dimensional data to obtain the first data, changing the format of the first data into the dwg format to obtain the target two-dimensional data, and generating the target process file in the dwg format according to the target two-dimensional data, the marking or modification operation can be conveniently performed in the target process file in the dwg format, and the cost of purchasing the CAXA process chart software is saved, thereby improving the effect of marking or modifying the process file in the cxp format generated by using the CAXA process chart software when the CAXA process chart software is not installed.

[0078] It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0079] The embodiments of the present application also provide a process file processing device. It should be noted that the process file processing device of the embodiments of the present application can be used to execute the process file processing method provided by the embodiments of the present application. The process file processing device provided by the embodiments of the present application is introduced as follows.

[0080] Figure 4 is a schematic diagram of the process file processing device according to the embodiments of the present application. As Figure 4As shown, the device comprises: a first acquisition unit 401, a first conversion unit 402, a first change unit 403 and a first generation unit 404.

[0081] Specifically, the first acquisition unit 401 is configured to acquire an original process file generated by using a CAXA process chart, wherein the original process file is in a cxp format.

[0082] The first conversion unit 402 is configured to convert data in the original process file into two-dimensional data to obtain first data.

[0083] The first change unit 403 is configured to change the format of the first data into a dwg format to obtain target two-dimensional data.

[0084] The first generation unit 404 is configured to generate a target process file in the dwg format according to the target two-dimensional data, so as to perform a target operation on the target process file, wherein the target operation is at least one of the following: a marking operation or a modification operation.

[0085] In summary, the process file processing device provided by the embodiment of the present application acquires an original process file generated by using a CAXA process chart through the first acquisition unit 401, wherein the original process file is in a cxp format; the first conversion unit 402 converts data in the original process file into two-dimensional data to obtain first data; the first change unit 403 changes the format of the first data into a dwg format to obtain target two-dimensional data; and the first generation unit 404 generates a target process file in the dwg format according to the target two-dimensional data, so as to perform a target operation on the target process file, wherein the target operation is at least one of the following: a marking operation or a modification operation, thereby solving the problem that the effect of marking or modifying a process file in a cxp format generated by using a CAXA process chart software is poor when the CAXA process chart software is not installed. By converting data in the original process file in the cxp format into two-dimensional data to obtain first data, changing the format of the first data into a dwg format to obtain target two-dimensional data, and generating a target process file in the dwg format according to the target two-dimensional data, the marking or modification operation can be conveniently performed on the target process file in the dwg format, the cost of purchasing the CAXA process chart software is saved, and the effect of marking or modifying a process file in the cxp format generated by using the CAXA process chart software when the CAXA process chart software is not installed is improved.

[0086] Optionally, in the process file processing apparatus provided by the embodiment of the present application, the first conversion unit comprises: a first acquisition subunit, configured to acquire a data structure of the original process file; a first processing subunit, configured to process a document structure of the original process file based on the data structure of the original process file, and convert a process card in the original process file into a drawing; and a first conversion subunit, configured to convert data in the drawing into two-dimensional data to obtain first data.

[0087] Optionally, in the process file processing apparatus provided by the embodiment of the present application, the first conversion subunit comprises: a first division module, configured to divide data in the drawing to obtain first part data and second part data, wherein the first part data is data corresponding to a two-dimensional graph in the drawing, and the second part data is data other than the first part data in the drawing; and a first conversion module, configured to convert the first part data and the second part data into two-dimensional data respectively to obtain the first data.

[0088] Optionally, in the process file processing apparatus provided by the embodiment of the present application, the first conversion module comprises: a first conversion sub-module, configured to convert the first part data into two-dimensional data to obtain second data; a first division sub-module, configured to divide the second part data into third part data and fourth part data, wherein the third part data is used to represent content of process design, and the fourth part data is used to represent information of a table in the process card; a second conversion sub-module, configured to convert the third part data into two-dimensional data to obtain third data; a third conversion sub-module, configured to convert the fourth part data into two-dimensional data to obtain fourth data; and a first processing sub-module, configured to aggregate the second data, the third data and the fourth data to obtain the first data.

[0089] Optionally, in the process file processing apparatus provided by the embodiment of the present application, the third conversion sub-module comprises: a determination sub-module one, configured to determine attribute information of a table and text information in the table according to the fourth part data; and a conversion sub-module one, configured to convert the attribute information of the table and the text information in the table into two-dimensional data to obtain the fourth data.

[0090] Optionally, in the process file processing apparatus provided by the embodiment of the present application, the first change unit comprises: a second conversion sub-unit, configured to convert the first data into two-dimensional data in a dwg format to obtain fifth data; a second acquisition sub-unit, configured to acquire attribute information of the original process file; and a third conversion sub-unit, configured to convert the fifth data into target two-dimensional data based on the attribute information of the original process file.

[0091] Optionally, in the process file processing apparatus provided by the embodiment of the present application, the apparatus further comprises a second acquisition unit configured to acquire the target process file after the target operation is performed on the target process file according to the target two-dimensional data; and a first processing unit configured to process the part according to the target process file after the target operation is performed on the target process file.

[0092] The process file processing apparatus comprises a processor and a memory, and the first acquisition unit 401, the first conversion unit 402, the first modification unit 403 and the first generation unit 404 are stored in the memory as program units, and the corresponding functions are realized by the processor executing the program units stored in the memory.

[0093] The processor comprises a core, and the core is configured to call the corresponding program units from the memory. The core can be one or more, and the effect of marking or modifying the process file in the cxp format generated by the CAXA process chart software can be improved by adjusting the core parameters when the CAXA process chart software is not installed.

[0094] The memory can comprise a non-permanent memory in a computer readable medium, a random access memory (RAM) and / or a non-volatile memory such as a read-only memory (ROM) or a flash memory (flash RAM), and the memory comprises at least one memory chip.

[0095] The embodiment of the present application provides a processor, which is used for running a program, wherein the processor executes the process file processing method when the program is run.

[0096] As shown in Figure 5 The embodiment of the present application provides an electronic device, which comprises a processor, a memory and a program stored in the memory and capable of running on the processor, and the processor realizes the following steps when the program is executed: acquiring an original process file generated by a CAXA process chart, wherein the format of the original process file is a cxp format; converting data in the original process file into two-dimensional data to obtain first data; changing the format of the first data into a dwg format to obtain target two-dimensional data; generating a target process file in a dwg format according to the target two-dimensional data to perform a target operation on the target process file, wherein the target operation is at least one of the following: a marking operation or a modification operation.

[0097] The processor, when executing the program, further implements the following steps: converting data in the original process file into two-dimensional data to obtain the first data, including: obtaining a data structure of the original process file; processing a document structure of the original process file based on the data structure of the original process file, and converting process cards in the original process file into drawings; and converting data in the drawings into two-dimensional data to obtain the first data.

[0098] The processor, when executing the program, further implements the following steps: converting data in the drawings into two-dimensional data to obtain the first data, including: dividing data in the drawings to obtain first part data and second part data, wherein the first part data is data corresponding to two-dimensional graphics in the drawings, and the second part data is data other than the first part data in the drawings; and respectively converting the first part data and the second part data into two-dimensional data to obtain the first data.

[0099] The processor, when executing the program, further implements the following steps: respectively converting the first part data and the second part data into two-dimensional data to obtain the first data, including: converting the first part data into two-dimensional data to obtain second data; dividing the second part data into third part data and fourth part data, wherein the third part data is used to represent content of process design, and the fourth part data is used to represent information of a table in the process card; converting the third part data into two-dimensional data to obtain third data; converting the fourth part data into two-dimensional data to obtain fourth data; and aggregating the second data, the third data and the fourth data to obtain the first data.

[0100] The processor, when executing the program, further implements the following steps: converting the fourth part data into two-dimensional data to obtain fourth data, including: determining attribute information of the table and text information in the table according to the fourth part data; and converting the attribute information of the table and the text information in the table into two-dimensional data to obtain the fourth data.

[0101] The processor, when executing the program, further implements the following steps: changing a format of the first data into a dwg format to obtain target two-dimensional data, including: converting the first data into two-dimensional data in the dwg format to obtain fifth data; obtaining attribute information of the original process file; and converting the fifth data into the target two-dimensional data based on the attribute information of the original process file.

[0102] The processor also implements the following steps when executing the program: generating a target process file in dwg format according to the target two-dimensional data, and after performing a target operation on the target process file, the method further comprises: obtaining the target process file after performing the target operation; and processing the part according to the target process file after performing the target operation.

[0103] The device herein can be a server, a PC, a PAD, a mobile phone, etc.

[0104] The application also provides a computer program product adapted to execute a program that initializes the following method steps when executed on a data processing device: obtaining an original process file generated by a CAXA process chart, wherein the format of the original process file is cxp; converting data in the original process file into two-dimensional data to obtain first data; changing the format of the first data to dwg to obtain target two-dimensional data; and generating a target process file in dwg format according to the target two-dimensional data, and performing a target operation on the target process file, wherein the target operation is at least one of the following: a marking operation or a modification operation.

[0105] When executed on a data processing device, the program is also adapted to initialize the following method steps: converting data in the original process file into two-dimensional data to obtain first data comprises: obtaining a data structure of the original process file; processing a document structure of the original process file based on the data structure of the original process file to convert process cards in the original process file into drawings; and converting data in the drawings into two-dimensional data to obtain the first data.

[0106] When executed on a data processing device, the program is also adapted to initialize the following method steps: converting data in the drawings into two-dimensional data to obtain the first data comprises: dividing data in the drawings to obtain first part data and second part data, wherein the first part data is data corresponding to two-dimensional graphics in the drawings, and the second part data is data other than the first part data in the drawings; and converting the first part data and the second part data into two-dimensional data respectively to obtain the first data.

[0107] When executed on the data processing device, the program is further adapted to execute the method steps of: converting the first part of data and the second part of data into two-dimensional data respectively, to obtain the first data, including: converting the first part of data into two-dimensional data to obtain second data; dividing the second part of data into third part of data and fourth part of data, wherein the third part of data is used to represent the content of the process design, and the fourth part of data is used to represent the information of the table in the process card; converting the third part of data into two-dimensional data to obtain third data; converting the fourth part of data into two-dimensional data to obtain fourth data; and aggregating the second data, the third data and the fourth data to obtain the first data.

[0108] When executed on the data processing device, the program is further adapted to execute the method steps of: converting the fourth part of data into two-dimensional data to obtain fourth data, including: determining attribute information of the table and text information in the table according to the fourth part of data; and converting the attribute information of the table and the text information in the table into two-dimensional data to obtain the fourth data.

[0109] When executed on the data processing device, the program is further adapted to execute the method steps of: changing the format of the first data into a dwg format to obtain target two-dimensional data, including: converting the first data into two-dimensional data in the dwg format to obtain fifth data; obtaining attribute information of the original process file; and converting the fifth data into the target two-dimensional data based on the attribute information of the original process file.

[0110] When executed on the data processing device, the program is further adapted to execute the method steps of: generating a target process file in the dwg format according to the target two-dimensional data, and after performing a target operation on the target process file, the method further includes: obtaining the target process file after performing the target operation; and processing a part according to the target process file after performing the target operation.

[0111] Those skilled in the art will understand that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROMs, optical storage media, etc.) containing computer-usable program code.

[0112] The computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks. Figure 1 one or more flow or blocks Figure 1 one or more flow or blocks

[0113] These computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture including instructions which implement the function specified in the flowchart block or blocks. Figure 1 one or more flow or blocks Figure 1 one or more flow or blocks

[0114] The computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks. Figure 1 one or more flow or blocks Figure 1 one or more flow or blocks

[0115] In one typical configuration, the computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.

[0116] The memory can include non-persistent memory and / or persistent memory, such as flash memory, read-only memory (ROM), and / or volatile or non-volatile random access memory (RAM), among others. The memory is an example of computer readable media.

[0117] Computer-readable media includes permanent and non-permanent, movable and non-movable media that can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette, magnetic tape disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information accessible to a computing device. According to the definition herein, computer-readable media does not include transitory media such as modulated data signals and carriers.

[0118] It should also be noted that the terms "comprising", "containing", or any other variant thereof are intended to cover non-exclusive inclusions, such that a process, method, article or apparatus that comprises a list of elements does not only include those elements, but also other elements not explicitly listed or inherent to such process, method, article or apparatus. Without more limitations, the element defined by the phrase "comprising a" does not exclude the presence of additional identical elements in the process, method, article or apparatus that includes the element.

[0119] Those skilled in the art will appreciate that embodiments of the present application can be provided as a method, system or computer program product. Accordingly, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROMs, optical storage devices, etc.) containing computer usable program code.

[0120] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application can have various modifications and changes. Any modification, equivalent replacement, improvement, etc. within the spirit and principle of the present application shall be included in the scope of claims of the present application.

Claims

1. A method of processing a process file, characterized by, The method comprises: obtaining an original process file generated by using a CAXA process chart, wherein the original process file is in a cxp format; converting data in the original process file into two-dimensional data to obtain first data; changing a format of the first data into a dwg format to obtain target two-dimensional data; generating a target process file in the dwg format according to the target two-dimensional data, so as to perform a target operation on the target process file, wherein the target operation is at least one of the following: a marking operation or a modification operation; converting data in the original process file into two-dimensional data to obtain first data comprises: obtaining a data structure of the original process file; processing a document structure of the original process file based on the data structure of the original process file, converting process cards in the original process file into drawings; converting data in the drawings into two-dimensional data to obtain the first data; converting data in the drawings into two-dimensional data to obtain the first data comprises: dividing data in the drawings to obtain first part data and second part data, wherein the first part data is data corresponding to two-dimensional graphics in the drawings, and the second part data is data other than the first part data in the drawings; respectively converting the first part data and the second part data into two-dimensional data to obtain the first data.

2. The method of claim 1, wherein, respectively converting the first part data and the second part data into two-dimensional data to obtain the first data comprises: converting the first part data into two-dimensional data to obtain second data; dividing the second part data into third part data and fourth part data, wherein the third part data is used to represent content of process design, and the fourth part data is used to represent information of a table in the process card; converting the third part data into two-dimensional data to obtain third data; converting the fourth part data into two-dimensional data to obtain fourth data; summarizing the second data, the third data and the fourth data to obtain the first data.

3. The method of claim 2, wherein, converting the fourth part data into two-dimensional data to obtain fourth data comprises: determining attribute information of the table and text information in the table according to the fourth part data; converting the attribute information of the table and the text information in the table into two-dimensional data to obtain the fourth data.

4. The method of claim 1, wherein, changing a format of the first data into a dwg format to obtain target two-dimensional data comprises: converting the first data into two-dimensional data in the dwg format to obtain fifth data; obtaining attribute information of the original process file; based on the attribute information of the original process file, converting the fifth data into the target two-dimensional data.

5. The method of claim 1, wherein, after generating a target process file in the dwg format according to the target two-dimensional data, so as to perform a target operation on the target process file, the method further comprises: obtaining the target process file after the target operation is performed; processing a part according to the target process file after the target operation is performed.

6. A processing apparatus of a process file, characterized by, The method comprises: The first acquisition unit is configured to acquire an original process file generated by using a CAXA process chart, wherein the original process file is in a cxp format; The first conversion unit is configured to convert data in the original process file into two-dimensional data to obtain first data; The first change unit is configured to change a format of the first data into a dwg format to obtain target two-dimensional data; The first generation unit is configured to generate a target process file in the dwg format according to the target two-dimensional data, and perform a target operation on the target process file, wherein the target operation is at least one of the following: a marking operation or a modification operation; The first conversion unit includes a first acquisition subunit configured to acquire a data structure of the original process file, a first processing subunit configured to process a document structure of the original process file based on the data structure of the original process file, and convert process cards in the original process file into drawings, and a first conversion subunit configured to convert data in the drawings into two-dimensional data to obtain the first data. The first conversion subunit includes a first division module configured to divide data in the drawings to obtain first part data and second part data, wherein the first part data is data corresponding to two-dimensional graphics in the drawings, and the second part data is data other than the first part data in the drawings, and a first conversion module configured to convert the first part data and the second part data into two-dimensional data respectively to obtain the first data.

7. A processor, comprising: The processor is configured to run a program, wherein the program performs the process method of the process file in any one of claims 1 to 5 when running.

8. An electronic device, comprising: The processor includes one or more processors and a memory, and the memory is configured to store one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the process method of the process file in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Island information processing method and device

    CN103077551A

  • Label information format conversion method and device, equipment and medium

    CN111552665A