CN112183029B - Digital conversion method for PDF drawing in sheet metal industry - Google Patents
Digital conversion method for PDF drawing in sheet metal industry Download PDFInfo
- Publication number
- CN112183029B CN112183029B CN202011021827.2A CN202011021827A CN112183029B CN 112183029 B CN112183029 B CN 112183029B CN 202011021827 A CN202011021827 A CN 202011021827A CN 112183029 B CN112183029 B CN 112183029B
- Authority
- CN
- China
- Prior art keywords
- page
- taking
- derivative
- executing
- data
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 27
- 239000002184 metal Substances 0.000 title claims abstract description 11
- 238000006243 chemical reaction Methods 0.000 title claims abstract description 7
- 239000000463 material Substances 0.000 claims abstract description 214
- 238000004806 packaging method and process Methods 0.000 claims abstract description 4
- 238000013507 mapping Methods 0.000 claims description 22
- 230000002159 abnormal effect Effects 0.000 claims description 2
- 238000012856 packing Methods 0.000 claims description 2
- 238000004519 manufacturing process Methods 0.000 description 17
- 230000008676 import Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/12—Use of codes for handling textual entities
- G06F40/151—Transformation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/20—Natural language analysis
- G06F40/205—Parsing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/20—Natural language analysis
- G06F40/279—Recognition of textual entities
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/30—Computing systems specially adapted for manufacturing
Abstract
The invention discloses a digital conversion method for PDF drawings in the sheet metal industry, which is characterized by comprising the following steps: s100: initializing a container; s200: parsing drawing data, including: s201: splitting each set of PDF drawing into a plurality of single pages and forming a PDF drawing page list; s202: judging whether the number of pages of a single page in the PDF chart page list is larger than 0, if so, executing step S203, otherwise, ending the flow; s203: sequentially acquiring a current page from the PDF page list; s204: acquiring the characters of the current drawing page; s205: searching a character string corresponding to the basic material page identifier in the characters of the current page; s206: judging whether the search is successful, if yes, executing step S207, otherwise, executing step S208; s207: analyzing the base material, and executing step S209; s208: analyzing the derivative materials; s209: judging whether an unprocessed single page exists or not, if so, executing the step S203, otherwise, executing the step S300; s300: verifying the quantity of materials; s400: deriving an error log; s500: and packaging the digitized drawing.
Description
Technical Field
The invention belongs to the field of production management digitization, and relates to a digitization conversion method for PDF drawings in the sheet metal industry.
Background
In the sheet metal production and processing industry, drawings are usually a key production data for transmitting product forms, production processes and production requirements. In order to facilitate drawing circulation, the traditional mode is to convert drawings into PDF format for transmission and sharing, and PDF format drawings are usually printed directly on an actual production line and circulated in a paper file mode. The method is feasible when the drawing is fixed in a manual control period, such as a machined drawing, but under the requirement of production digitization, product parts, processes, drawings and the like are required to be stored, distributed and transferred in a digitization mode, and when the drawing is required to embody the combination of all parts in different production flows of the product, the traditional sheet metal production processing drawing is required to be subjected to digitization conversion so as to adapt to the requirements of production and information systems.
The existing production manufacturing management systems are used for digitizing production processes by manually inputting workpiece information, the bom table derived by design software can be digitally input in the mode, but the existing production manufacturing management systems depend on third-party plug-ins, part of data also need to be manually input, three-dimensional diagrams need to be manually associated, and operation is complicated.
Disclosure of Invention
The method is different from the existing method, and can directly convert the data of a sheet metal production workpiece list, a relation, a 3D chart, process parameters and the like into a digitalized file which is convenient for secondary reading according to a series of constants predefined by the drawing habit and directly according to the derived PDF drawing on the premise of not changing the original drawing logic.
The method is simple and convenient to use, has little influence on the working mode of the traditional drawing, has higher efficiency in the digital conversion process, has clear data structure of the exported file, is very friendly to import of various production management platforms, and can obviously improve the efficiency in the secondary import application.
The application of the invention comprises the following steps:
s100: initializing a container;
s200: analyzing drawing data, comprising the following steps:
s201: recording the product drawing numbers of each set of PDF drawing, splitting each set of PDF drawing into a plurality of single pages and forming a PDF drawing page list, wherein the drawing page list comprises the number of the single pages, and the drawing numbers of the single pages are the material drawing numbers;
s202: judging whether the number of pages of a single page in the PDF chart page list is larger than 0, if so, executing step S203, otherwise, ending the flow;
s203: sequentially acquiring unprocessed single pages from the PDF page list as current pages;
s204: acquiring the characters of the current drawing page;
s205: searching a character string corresponding to the basic material page identifier in the characters of the current page;
s206: judging whether the search is successful, if yes, executing step S207, otherwise, executing step S208;
s207: analyzing the base material, and executing step S209;
s208: analyzing the derivative materials;
s209: judging whether an unprocessed single page exists or not, if so, executing the step S203, otherwise, executing the step S300;
s300: verifying the quantity of materials;
s400: deriving an error log;
s500: and packaging the digitized drawing.
Preferably, the step S100 includes the steps of:
s101: defining a material entity class, wherein fields of the entity class comprise a material ID, a material name, a material drawing number, a material picture address, a material PDF address and a material quantity; creating a material association relation entity, wherein the fields comprise the ID of the consumed material, the ID of the generated material and the quantity of material consumption;
s102: the method comprises the steps of constructing a form, wherein the form comprises a material form used for storing material objects, a material association relation form used for storing material association relation entity objects and an error information form used for storing error information;
s103: constructing a mapping container for identifying the quantity of materials and storing the names and the quantity of the materials;
s104: initializing constants, comprising:
creating a basic material page identifier, and taking the basic material page identifier as a parameter to be transmitted in an initialization stage according to the drawing habit of a drawing person;
creating a derivative material page identifier, and taking the derivative material page identifier as a parameter to be transmitted in an initialization stage according to the drawing habit of a drawing person;
creating a data form starting identifier, and taking the data form starting identifier as a parameter to be transmitted in an initialization stage according to the drawing habit of a drawing person;
creating a data form line ending mark, and taking the mark as a parameter to be transmitted in an initialization stage according to the drawing habit of a drawing person;
creating a data separator, wherein the default value is 0x20;
creating a column name constant set to be acquired, wherein the column name constant set comprises material names, material quantity and material drawing numbers;
creating a derivative material data start identifier, and taking the derivative material data start identifier as a parameter to be transmitted in an initialization stage according to the drawing habit of a drawing person;
creating a derivative material data ending mark, and taking the derivative material data ending mark as a parameter to be transmitted in an initialization stage according to the drawing habit of a drawing person;
creating an intermediate variable includes creating a set of column index variables to be acquired.
Preferably, the step S207 includes the steps of:
s2071: taking the beginning identification of the first data table as a starting identification, taking the ending identification of the last data table row as an ending identification, and intercepting the data table character string of the characters of the current drawing page;
s2072: converting the data form character string into a form array according to the data form line end mark;
s2073: acquiring a first row character string of a table array as a header: acquiring a character string of a first row of the table array, and converting the character string into a table header according to the data separator;
s2074: the elements of the column name constant set are compared with the elements of the table array, and a column index variable set is initialized according to the index of the column name constant set;
s2075: judging whether the table array has an element which is not fetched, if yes, executing step S2076, otherwise, executing step S209;
s2076: sequentially acquiring elements which are not taken in the table array, converting each row into a row data array, taking the numerical value of the column index variable set as an index, acquiring a corresponding character string of the column index variable set as a parameter, assigning the character string to a material object, and adding the material object into the material table;
s2077: the step S209 is executed by counting the number of the current material names as the keywords in the mapping container.
Preferably, the step S208 includes the steps of:
s2081: searching a character string corresponding to the derivative material page identification in the characters of the current page;
s2082: judging whether the search is successful, if so, executing the step S2083, otherwise, executing the step S203;
s2083: intercepting the material names, the material quantity and the material drawing numbers after the character strings corresponding to the derivative material page identifiers by using the regular expression, and forming material objects and counting the material objects into a material form;
s2084: taking the names of the current materials as keywords, wherein the number of the keywords is counted into a mapping container;
s2085: taking the beginning identification of the first data table as a starting identification, taking the ending identification of the last data table row as an ending identification, and intercepting the character strings of the derived material data tables of the characters of the current drawing page;
s2086: converting the derivative material data table character strings into a derivative material table array according to the data table row ending identification;
s2087: traversing the derivative material table array from the second element, converting the derivative material table array into a row data array according to a line changing symbol, and taking out the values of all the attributes of the derivative material object by referring to the column index variable set to be used as the derivative material object and counting the derivative material object into a derivative material table;
s2088: taking the names of the derivative material objects as keywords, and taking elements from the mapping container;
s2089: judging whether the element is taken out, if yes, executing step S208A, otherwise, executing step S208B;
S208A: subtracting the number of the derivative materials in the step S2085 from the number obtained in the step S2085, and counting the names of the derivative materials as keywords into a mapping container, and executing the step S209;
S208B: the number of negative values is mapped to the container by using the name of the material object derived material as a key, and step S209 is performed.
Preferably, the step S300 includes the steps of:
s301: judging whether the mapping container has an element which is not fetched, if so, executing the step S302, otherwise, executing the step S400;
s302: fetching an element from the mapping container that is not fetched;
s303: judging whether the number of the current elements is 0, if so, executing step S301, otherwise, executing step S304;
s304: recording abnormal information, including the key words and the number of the current elements, and counting error information forms, and ending the flow.
Preferably, the step S400 includes the steps of:
s401: judging whether the length of the error information form is 0, if so, executing the step S500, otherwise, executing the step S402;
s402: and outputting error information, and ending the flow.
Preferably, the step S500 includes the steps of:
s501: respectively carrying out binary serialization on the material form and the derivative material form, respectively naming and storing the binary serialization as a file;
s502: converting each page of each set of PDF drawing into pictures, naming each material drawing number as a keyword, and storing the pictures under the same-level directory of the file stored in the step S501;
s503: converting the pictures captured in each page of each set of PDF drawing into picture files, and naming the picture files by taking each material drawing number and the corresponding material name as a keyword;
s504: and packing the folders storing the files stored in the steps S501, S502 and S503 in a compressed package form, and naming the folders by taking the product drawing numbers as keywords.
Drawings
FIG. 1 is a general flow chart of the method provided by the present invention;
FIG. 2 is a flow chart of parsing drawing data in the method provided by the invention;
FIG. 3 is a flow chart of the method according to the present invention for analyzing a base material;
FIG. 4 is a flow chart of the method of resolving derivative materials according to the present invention.
Detailed Description
Fig. 1 shows a general flow chart of the method provided by the invention. As shown in fig. 1, the method provided by the invention comprises the following steps:
s100: initializing a container, comprising the steps of:
s101: the method comprises the steps of defining a Material entity class Material, wherein fields of the entity class Material comprise a Material ID (material_id), a Material name (material_name), a Material picture number (material_number), a Material picture address (material_picture_url), a Material PDF address (material_pdf_url) and a Material quantity (material_current); creating a material association entity (material join) including fields of an ID (form_material_id) of a consumed material, an ID (after_material_id) of a generated material, and a number of material consumption (content_current);
s102: constructing a form, wherein the form comprises a material form (material list) used for storing material objects, a material association relation form (material list) used for storing material association relation entity (material join) objects and an error information form (error list) used for storing error information;
s103: constructing a mapping container for identifying the Material quantity (material_current) and storing the Material name (material_name) and the Material quantity (material_current);
s104: initializing constants, comprising:
creating a base material page identifier (BaseMaterialTableTag), and transmitting the base material page identifier as a parameter in an initialization stage according to the drawing habit of a drawing person;
creating derivative material page identifiers (DerivativeMaterialTags), and taking the derivative material page identifiers as parameters to be transmitted in an initialization stage according to the drawing habit of a drawing person;
creating a data table start identifier (DataTableStartTag), and transmitting the data table start identifier as parameters in an initialization stage according to the drawing habit of a drawing person;
creating a data table row end identifier (DataTableRowEndTag), and taking the data table row end identifier as a parameter to be transmitted in an initialization stage according to the drawing habit of a drawing person;
creating a data separator (DataSeparator), with a default value of 0x20;
creating a column name constant set (ClumnNames) to be acquired, wherein the column name constant set comprises a Material name (material_name), a Material number (material_current) and a Material chart number (material_number);
creating a derivative material data start identifier (DerivativeMaterDataStartTag), and transmitting the derivative material data start identifier as parameters in an initialization stage according to the drawing habit of a drawing person;
creating a derivative material data end identifier (DerivativeMaterDataEndTag), and transmitting the derivative material data end identifier as parameters in an initialization stage according to the drawing habit of a drawing person;
creating intermediate variables includes creating a column index variable set (IndexVariable) to be acquired.
S200: and analyzing the drawing data.
Fig. 2 shows a flowchart of parsing drawing data in the method provided by the invention. As shown in fig. 2, step S200 includes the steps of:
s201: recording the product number (product No) of each set of PDF drawing, splitting each set of PDF drawing into a plurality of single pages and forming a PDF drawing page list, wherein the drawing page list comprises the number of the single pages, and the drawing numbers of the single pages are the material drawing numbers (material_number);
s202: judging whether the number of pages of a single page in the PDF chart page list is larger than 0, if so, executing step S203, otherwise, ending the flow;
s203: sequentially acquiring unprocessed single pages from the PDF page list as current pages;
s204: acquiring the characters of the current drawing page;
s205: searching a character string corresponding to a basic material page identifier (BaseMaterialTableTag) in the characters of the current page;
s206: judging whether the search is successful, if yes, executing step S207, otherwise, executing step S208;
s207: the base material is parsed, and step S209 is performed. Fig. 3 shows a flow chart of the method according to the present invention for analyzing a base material, and as shown in fig. 3, step S207 includes the following steps:
s2071: taking a first data table start identifier (DataTableTartTag) as a start identifier, taking a last data table row end identifier (DataTableRowEndTag) as an end identifier, and intercepting a data table character string of characters of a current drawing page;
s2072: converting the data table character string into a table array according to the data table row end identifier (DataTableRowEndTag);
s2073: acquiring a first row character string of a table array as a header: acquiring a character string of a first row of the table array, and converting the character string into a table header according to a data separator (DataSeparator);
s2074: elements of the column name constant set (ClumnNames) are compared with elements of the table array, and a column index variable set (IndexVariable) is initialized according to indexes of the column name constant set (ClumnNames);
s2075: judging whether the table array has an element which is not fetched, if yes, executing step S2076, otherwise, executing step S209;
s2076: sequentially acquiring elements which are not taken in the table array, converting each row into a row data array, taking the numerical value of a column index variable set (index variable) as a subscript, acquiring a corresponding character string of the column index variable set (index variable) as a parameter, assigning the character string to a material object, and adding the material object into the material table (material list);
s2077: step S209 is executed by counting the number of the current material names (material_names) as the keywords in the mapping container.
S208: analyzing the derivative material.
FIG. 4 shows a flow chart for resolving derivative materials in the method provided by the present invention. As shown in fig. 4, step S208 includes the steps of:
s2081: searching a character string corresponding to a derivative material page identifier (DerivativeMaterialtag) in the characters of the current page;
s2082: judging whether the search is successful, if so, executing the step S2083, otherwise, executing the step S203;
s2083: intercepting a Material name (material_name), a Material number (material_current) and a Material figure number (material_number) after a character string corresponding to a derivative Material page identifier (differential Material tag) by using a regular expression, wherein the Material name (material_name), the Material number (material_current) and the Material figure number (material_number) are used for forming a Material object and counting into a Material list (Material list);
s2084: taking the current material name (material_name) as a key, wherein the number of the key is counted into a mapping container;
s2085: taking a first data table start identifier (DataTableTartTag) as a start identifier, taking a last data table row end identifier (DataTableRowEndTag) as an end identifier, and intercepting a derivative material data table character string of characters of a current drawing page;
s2086: converting the derivative material data table character string into a derivative material table array according to a data table row end identifier (DataTableRowEndTag);
s2087: traversing the derivative material table array from the second element, converting the derivative material table array into a row data array according to a line changing symbol, and taking out the values of the attributes of the derivative material object by referring to a column index variable set (Indexvariable), taking the values as the derivative material object and counting the values into a derivative material table (DerivativeMateriallList);
s2088: taking the names of the derivative material objects as keywords, and taking elements from the mapping container;
s2089: judging whether the element is taken out, if yes, executing step S208A, otherwise, executing step S208B;
S208A: subtracting the number of the derivative materials in the step S2085 from the number obtained in the step S2085, and counting the names of the derivative materials as keywords into a mapping container, and executing the step S209;
S208B: the number of negative values is mapped to the container by using the name of the material object derived material as a key, and step S209 is performed.
S209: judging whether an unprocessed single page exists or not, if so, executing the step S203, otherwise, executing the step S300;
s300: verifying the Material quantity (material_current);
specifically, step S300 includes the steps of:
s301: judging whether the mapping container has an element which is not fetched, if so, executing the step S302, otherwise, executing the step S400;
s302: fetching an element from the mapping container that is not fetched;
s303: judging whether the number of the current elements is 0, if so, executing step S301, otherwise, executing step S304;
s304: recording exception information, including the key words and the number of the current element, and counting into an error information form (error list), and ending the flow.
S400: deriving an error log;
specifically, step S400 includes the steps of:
s401: judging whether the length of the error information form (error list) is 0, if so, executing step S500, otherwise, executing step S402;
s402: and outputting error information, and ending the flow.
S500: packaging a digital drawing;
specifically, step S500 includes the steps of:
s501: respectively carrying out binary serialization on a material form (MaterialList) and a derivative material form (Derivativemateriallist), naming and storing the binary serialization as files;
s502: converting each page of each set of PDF drawing into pictures, naming each material drawing number (material_number) as a keyword, and storing the pictures under the same-level directory of the file stored in the step S501;
s503: converting the pictures captured in each page of each set of PDF drawing into picture files, and naming the picture files by taking each material drawing number (material_number) and the corresponding material name (material_name) as keywords;
s504: the folders in which the files stored in steps S501, S502, and S503 are stored are packaged in the form of compressed packages, and named with the product drawing number (product no) as a key.
It is to be understood that the invention is not limited to the examples described above, and that modifications and variations may be effected in light of the above teachings by those skilled in the art, all of which are intended to be within the scope of the invention as defined in the appended claims.
Claims (4)
1. A digital conversion method for PDF drawings in the sheet metal industry is characterized by comprising the following steps:
s100: the container is initialized, and step S100 includes the steps of:
s101: defining a material entity class, wherein fields of the entity class comprise a material ID, a material name, a material drawing number, a material picture address, a material PDF address and a material quantity; creating a material association relation entity, wherein the fields comprise the ID of the consumed material, the ID of the generated material and the quantity of material consumption;
s102: the method comprises the steps of constructing a form, wherein the form comprises a material form used for storing material objects, a material association relation form used for storing material association relation entity objects and an error information form used for storing error information;
s103: constructing a mapping container for identifying the quantity of materials and storing the names and the quantity of the materials;
s104: initializing constants, comprising:
creating a basic material page identifier, and taking the basic material page identifier as a parameter to be transmitted in an initialization stage according to the drawing habit of a drawing person;
creating a derivative material page identifier, and taking the derivative material page identifier as a parameter to be transmitted in an initialization stage according to the drawing habit of a drawing person;
creating a data form starting identifier, and taking the data form starting identifier as a parameter to be transmitted in an initialization stage according to the drawing habit of a drawing person;
creating a data form line ending mark, and taking the mark as a parameter to be transmitted in an initialization stage according to the drawing habit of a drawing person;
creating a data separator, wherein the default value is 0x20;
creating a column name constant set to be acquired, wherein the column name constant set comprises material names, material quantity and material drawing numbers;
creating a derivative material data start identifier, and taking the derivative material data start identifier as a parameter to be transmitted in an initialization stage according to the drawing habit of a drawing person;
creating a derivative material data ending mark, and taking the derivative material data ending mark as a parameter to be transmitted in an initialization stage according to the drawing habit of a drawing person;
creating an intermediate variable, including creating a column index variable set to be acquired;
s200: analyzing drawing data, comprising the following steps:
s201: recording the product drawing numbers of each set of PDF drawing, splitting each set of PDF drawing into a plurality of single pages and forming a PDF drawing page list, wherein the drawing page list comprises the number of the single pages, and the drawing numbers of the single pages are the material drawing numbers;
s202: judging whether the number of pages of a single page in the PDF chart page list is larger than 0, if so, executing step S203, otherwise, ending the flow;
s203: sequentially acquiring unprocessed single pages from the PDF page list as current pages;
s204: acquiring the characters of the current drawing page;
s205: searching a character string corresponding to the basic material page identifier in the characters of the current page;
s206: judging whether the search is successful, if yes, executing step S207, otherwise, executing step S208;
s207: analyzing the base material, and executing step S209; step S207 includes the steps of:
s2071: taking the beginning identification of the first data table as a starting identification, taking the ending identification of the last data table row as an ending identification, and intercepting the data table character string of the characters of the current drawing page;
s2072: converting the data form character string into a form array according to the data form line end mark;
s2073: acquiring a first row character string of a table array as a header: acquiring a character string of a first row of the table array, and converting the character string into a table header according to the data separator;
s2074: the elements of the column name constant set are compared with the elements of the table array, and a column index variable set is initialized according to the index of the column name constant set;
s2075: judging whether the table array has an element which is not fetched, if yes, executing step S2076, otherwise, executing step S209;
s2076: sequentially acquiring elements which are not taken in the table array, converting each row into a row data array, taking the numerical value of the column index variable set as an index, acquiring a corresponding character string of the column index variable set as a parameter, assigning the character string to a material object, and adding the material object into the material table;
s2077: taking the name of the current material as a key word, the number of which is counted into the mapping container, executing step S209
S208: analyzing the derivative materials; step S208 includes the steps of:
s2081: searching a character string corresponding to the derivative material page identification in the characters of the current page;
s2082: judging whether the search is successful, if so, executing the step S2083, otherwise, executing the step S203;
s2083: intercepting the material names, the material quantity and the material drawing numbers after the character strings corresponding to the derivative material page identifiers by using the regular expression, and forming material objects and counting the material objects into a material form;
s2084: taking the names of the current materials as keywords, wherein the number of the keywords is counted into a mapping container;
s2085: taking the beginning identification of the first data table as a starting identification, taking the ending identification of the last data table row as an ending identification, and intercepting the character strings of the derived material data tables of the characters of the current drawing page;
s2086: converting the derivative material data table character strings into a derivative material table array according to the data table row ending identification;
s2087: traversing the derivative material table array from the second element, converting the derivative material table array into a row data array according to a line changing symbol, and taking out the values of all the attributes of the derivative material object by referring to the column index variable set to be used as the derivative material object and counting the derivative material object into a derivative material table;
s2088: taking the names of the derivative material objects as keywords, and taking elements from the mapping container;
s2089: judging whether the element is taken out, if yes, executing step S208A, otherwise, executing step S208B;
S208A: subtracting the number of the derivative materials in the step S2085 from the number obtained in the step S2085, and counting the names of the derivative materials as keywords into a mapping container, and executing the step S209;
S208B: taking the names of the material objects and the derived materials as keywords, mapping the negative values of the quantity to a container, and executing step S209;
s209: judging whether an unprocessed single page exists or not, if so, executing the step S203, otherwise, executing the step S300;
s300: verifying the quantity of materials;
s400: deriving an error log;
s500: and packaging the digitized drawing.
2. The method for digitally converting PDF drawings of sheet metal industry according to claim 1, wherein the step S300 comprises the steps of:
s301: judging whether the mapping container has an element which is not fetched, if so, executing the step S302, otherwise, executing the step S400;
s302: fetching an element from the mapping container that is not fetched;
s303: judging whether the number of the current elements is 0, if so, executing step S301, otherwise, executing step S304;
s304: recording abnormal information, including the key words and the number of the current elements, and counting error information forms, and ending the flow.
3. The method for digitally converting PDF drawings of sheet metal industry according to claim 1, wherein the step S400 includes the steps of:
s401: judging whether the length of the error information form is 0, if so, executing the step S500, otherwise, executing the step S402;
s402: and outputting error information, and ending the flow.
4. The method for digitally converting PDF drawings of sheet metal industry according to claim 1, wherein the step S500 includes the steps of:
s501: respectively carrying out binary serialization on the material form and the derivative material form, respectively naming and storing the binary serialization as a file;
s502: converting each page of each set of PDF drawing into pictures, naming each material drawing number as a keyword, and storing the pictures under the same-level directory of the file stored in the step S501;
s503: converting the pictures captured in each page of each set of PDF drawing into picture files, and naming the picture files by taking each material drawing number and the corresponding material name as a keyword;
s504: and packing the folders storing the files stored in the steps S501, S502 and S503 in a compressed package form, and naming the folders by taking the product drawing numbers as keywords.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011021827.2A CN112183029B (en) | 2020-09-25 | 2020-09-25 | Digital conversion method for PDF drawing in sheet metal industry |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011021827.2A CN112183029B (en) | 2020-09-25 | 2020-09-25 | Digital conversion method for PDF drawing in sheet metal industry |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112183029A CN112183029A (en) | 2021-01-05 |
CN112183029B true CN112183029B (en) | 2023-10-31 |
Family
ID=73944823
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011021827.2A Active CN112183029B (en) | 2020-09-25 | 2020-09-25 | Digital conversion method for PDF drawing in sheet metal industry |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112183029B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115545008B (en) * | 2022-11-29 | 2023-04-07 | 明度智云(浙江)科技有限公司 | Spectrogram file analyzing method, device, equipment and storage medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4554635A (en) * | 1982-07-28 | 1985-11-19 | Construction Technology, Inc. | Method and apparatus for marking or cutting laminar patterns or forms |
CN104007703A (en) * | 2014-05-20 | 2014-08-27 | 华南理工大学 | System and method for achieving communication between virtual part and actual part of product |
CN105551077A (en) * | 2015-11-03 | 2016-05-04 | 徐工集团工程机械股份有限公司 | Sheet metal processing three-dimensional technological model construction method and device |
CN106228340A (en) * | 2016-07-20 | 2016-12-14 | 贵州亿垒科技有限公司 | Construction drawing digitized auditing system |
CN106447519A (en) * | 2016-11-24 | 2017-02-22 | 北京动力机械研究所 | Generating system of three-dimensional sheet metal welding technology |
CN109482945A (en) * | 2018-12-03 | 2019-03-19 | 中车长春轨道客车股份有限公司 | The processing unit (plant) and its processing method of high-speed EMUs door pillar |
CN110378302A (en) * | 2019-07-24 | 2019-10-25 | 广东电网有限责任公司 | A kind of customer engineering drawing intelligent identifying system based on PDF format Drawings and documents |
CN111291438A (en) * | 2020-01-22 | 2020-06-16 | 远景智能国际私人投资有限公司 | File processing method and device, electronic equipment and storage medium |
CN111401312A (en) * | 2020-04-10 | 2020-07-10 | 深圳新致软件有限公司 | PDF drawing character recognition method, system and equipment |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080269942A1 (en) * | 2007-04-26 | 2008-10-30 | David Mitchell Free | Computer system and method for providing real-world market-based information corresponding with a theoretical cad model and/or rfq/rfp data |
-
2020
- 2020-09-25 CN CN202011021827.2A patent/CN112183029B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4554635A (en) * | 1982-07-28 | 1985-11-19 | Construction Technology, Inc. | Method and apparatus for marking or cutting laminar patterns or forms |
US4554635B1 (en) * | 1982-07-28 | 1995-10-03 | Technology Inc Const | Method and apparatus for marking or cutting laminar patterns or forms |
CN104007703A (en) * | 2014-05-20 | 2014-08-27 | 华南理工大学 | System and method for achieving communication between virtual part and actual part of product |
CN105551077A (en) * | 2015-11-03 | 2016-05-04 | 徐工集团工程机械股份有限公司 | Sheet metal processing three-dimensional technological model construction method and device |
CN106228340A (en) * | 2016-07-20 | 2016-12-14 | 贵州亿垒科技有限公司 | Construction drawing digitized auditing system |
CN106447519A (en) * | 2016-11-24 | 2017-02-22 | 北京动力机械研究所 | Generating system of three-dimensional sheet metal welding technology |
CN109482945A (en) * | 2018-12-03 | 2019-03-19 | 中车长春轨道客车股份有限公司 | The processing unit (plant) and its processing method of high-speed EMUs door pillar |
CN110378302A (en) * | 2019-07-24 | 2019-10-25 | 广东电网有限责任公司 | A kind of customer engineering drawing intelligent identifying system based on PDF format Drawings and documents |
CN111291438A (en) * | 2020-01-22 | 2020-06-16 | 远景智能国际私人投资有限公司 | File processing method and device, electronic equipment and storage medium |
CN111401312A (en) * | 2020-04-10 | 2020-07-10 | 深圳新致软件有限公司 | PDF drawing character recognition method, system and equipment |
Non-Patent Citations (6)
Title |
---|
Development of sheet metal active-pressurized hydrodynamic deep drawing system and its applications;Bao Meng;《International Journal of Mechanical Sciences》;第79卷;143-151 * |
基于JAVA的精益造船MES系统设计与实现;夏家俊;《软件导刊》;第19卷(第03期);150-153 * |
基于产品设计树的钣金产品设计;樊军;《机械管理开发》;第24卷(第04期);14+16 * |
复杂型面钣金零件冲压模具的三维数字化设计;李海峰;《模具制造》;第18卷(第02期);1-4 * |
大飞机数字化装配关键技术及其应用;宋利康;《航空制造技术》(第05期);32-35+51 * |
电子装备三维工艺数据发放技术研究;程五四;《机械设计与制造工程》;第19卷(第08期);117-120 * |
Also Published As
Publication number | Publication date |
---|---|
CN112183029A (en) | 2021-01-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7746341B2 (en) | System and method for parsing point-cloud data | |
CN108932236A (en) | A kind of file management method, scratch file delet method and device | |
JP2006120125A (en) | Document image information management apparatus and document image information management program | |
US6954898B1 (en) | Method of standardizing character information in electronic documents | |
CN111931774A (en) | Method and system for warehousing medicine data | |
CN112183029B (en) | Digital conversion method for PDF drawing in sheet metal industry | |
CN107679208A (en) | A kind of searching method of picture, terminal device and storage medium | |
US7752603B2 (en) | Systems and methods for data interchange among autonomous processing entities | |
CN111752542B (en) | Database query interface engine based on XML template | |
KR101102629B1 (en) | Method for coding structured documents | |
CN110889261A (en) | Method for automating electronic official document service processing | |
US8566366B2 (en) | Format conversion apparatus and file search apparatus capable of searching for a file as based on an attribute provided prior to conversion | |
JP2003196270A (en) | Document information processing method, document information processor, communication system, computer program and recording medium | |
CN116009793A (en) | Printing method | |
JP2016018279A (en) | Document file search program, document file search device, document file search method, document information output program, document information output device, and document information output method | |
CN112836073A (en) | Historical literature digitization method, system, device and storage medium | |
CN109739981B (en) | PDF file type judgment method and character extraction method | |
JP3588061B2 (en) | Data exchange device, data exchange method and data exchange program | |
CN113239039A (en) | Dynamic data storage method, query method, management method and management system | |
JP4904828B2 (en) | Information analysis knowledge management device, data structure, information analysis device, dictionary generation method and program | |
CN111090743A (en) | Thesis recommendation method and device based on word embedding and multi-valued form concept analysis | |
JP2022045559A (en) | Document retrieval system, document retrieval method, and program | |
CN112232032B (en) | Automatic conversion method for content style of docx document | |
JP6005412B2 (en) | Mail management method and mail management apparatus using chunks | |
JP2008046850A (en) | Document type determination device, and document type determination program |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |