Detailed Description
The application is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present application are shown in the drawings.
Example 1
Fig. 1 is a schematic flow chart of an engineering drawing printing method according to an embodiment of the present application, where the method is applicable to a scene of engineering drawing printing by describing the method from a first platform end. The method can be executed by an engineering drawing printing device, the device can be realized in a hardware and/or software mode, and can be generally integrated in electronic equipment such as a computer with data operation capability, and the like, and the method specifically comprises the following steps:
Step 101, acquiring a bill of materials and engineering drawings sent by an ordering client, wherein the bill of materials comprises production information of at least one part, the production information comprises specification models, each engineering drawing corresponds to one part, and the specification models of the corresponding parts are marked.
In this step, the order client may send the bill of materials and the engineering drawing through the platform such as the mail and the instant messaging tool, so that it is possible to detect whether the mail or the instant messaging tool receives the corresponding kind of file, and link the corresponding order client according to the source of the file.
Of course, the client code of the order client can be manually uploaded to the platform for implementing the method of the application and linked. The step is to directly call the bill of materials and the engineering drawing according to the client code of the ordering client.
It should be noted that, the bill of materials in this step may include production information of at least one part, where the production information may include a serial number, a material code, a material name, a specification model, a unit, a project number, and a total number.
Typically, a part will correspond to an engineering drawing in which the dimensions of the corresponding part and detailed part construction are identified. The engineering drawing of each part can be marked by using the specification model in the bill of materials, and the marking mode can be named by using the specification model as the engineering drawing.
Step 102, generating a two-dimensional code for any target part in the bill of materials based on the specification model corresponding to the target part.
For convenience of explanation, this step is described with respect to any target part in the bill of materials, and the processing manner of other parts is the same as that of the target part, so that no further description is given.
When the two-dimensional code is generated, the two-dimensional code can be compiled and generated based on the specification and the model of the part, and because the parts with the same specification and model are not generated for the same order, the follow-up production process of the part in the same order is convenient to track and manage.
Of course, there may be many orders produced at the same time, and in order to ensure uniqueness, the order number and the specification model may be compiled into a two-dimensional code together. Specifically, the character string of the order number and the specification model can be compiled to generate the two-dimensional code, and the two-dimensional code generated in the mode is beneficial to distinguishing parts with the same specification model which possibly appear in different orders.
It should be noted that, the process of compiling the character string into the two-dimensional code may refer to a related technology of generating the two-dimensional code, which is not described herein.
In addition, the two-dimensional code generated in the step can be provided for processing production personnel to scan through a station after each procedure is completed, so that the processing progress of the part can be conveniently recorded. Specifically, after the two-dimensional code is scanned, the scanning time, the corresponding working procedure of the scanning machine, the operator and other information can be recorded, so that the subsequent management of the processing process is facilitated.
And 103, calling a preset template, and filling the content of the preset template based on the production information of the target part in the bill of materials.
In this step, when the preset template is called, the target client identifier of the ordering client may be obtained first, and the preset template corresponding to the target client identifier may be called based on the mapping relationship between the preset client identifier and the preset template.
It should be noted that, because the drawing habits of each customer are different, but the drawing habits of the personnel inside the customers are basically consistent, different templates can be set for different customers, and the templates are used for filling the production information, so that the processing and production personnel can refer to the information to carry out subsequent production.
The target client identifier refers to the client code, and in order to keep the information of the client secret, the client code may be used to identify different clients in this embodiment.
In addition, the mapping relationship refers to the correspondence between the client identifier and different preset templates, the different preset templates can be named, then the correspondence between the client identifier and the template name is stored in the mapping relationship, and the corresponding target template name can be found through the target client identifier, so that the preset template corresponding to the target template name is called, and the preset template corresponding to the target client identifier is obtained.
Of course, for a new customer, a pre-set template may be mapped to it manually.
When the content of the preset template is filled based on the production information of the target part in the bill of materials, the work order information can be generated based on the production information of the target part in the bill of materials, and the work order information is filled into a first preset position of the preset template.
The method comprises the steps of obtaining pre-stored process information, wherein the process information comprises a plurality of processes, determining suggested processes and suggested process sequences in the process information according to historical production data of a customer, and filling the process information, the suggested processes and the suggested process sequences into a second preset position of a preset template to finish filling the content of the preset template.
The process information may include laser, wire cutting, CNC1, lathe, milling machine, CNC2, alignment, finish milling, welding, coreless milling, outer milling, stress relief, tapping, etc., and in order to avoid that a non-contained process cannot be marked, a plurality of reserved positions may be set in the first preset position, and if the non-contained process occurs, filling may be performed manually.
In addition, determining the recommended process and the recommended process sequence in the process information according to the historical production data of the ordering client in this step refers to selecting the process required for processing the part from the process information and determining the processing sequence of the required process.
It should be noted that, the determined required process and processing sequence are determined according to the historical production data, and there may be an inaccurate phenomenon, so that the determined required process and processing sequence are set as the recommended process and the recommended process times, which are available for reference by engineers.
Specifically, whether similar parts with the similarity larger than a preset threshold value with the target part in the historical production data of the ordering client exist or not can be firstly searched. The similarity between the structural drawings of the parts in the engineering drawing can be determined, and the image similarity determination process can refer to related technologies, which are not described herein.
If so, the proposed process and the proposed process sequence in the second preset position of the preset template in the drawing to be printed of the similar part can be determined as the proposed process and the proposed process sequence of the target part.
In addition, whether the target part has the user special demand information or not can be searched from the object list, and if so, the user special demand information is filled into a third preset position of the preset template. The name of the third preset position may be a remark.
And 104, integrating the two-dimensional code of the target part, the filled preset template corresponding to the target part and the engineering drawing corresponding to the specification model of the target part to obtain a drawing to be printed of the target part, and printing the drawing to be printed to finish the printing of the engineering drawing of the target part.
In the step, a two-dimensional code of the target part and a filled preset template corresponding to the target part are filled into a preset blank page, unused areas of the filled preset blank page are detected, then engineering drawings corresponding to the specification and the model of the target part are scaled based on the sizes of the unused areas, and the scaled engineering drawings are filled into the unused areas to obtain drawings to be printed of the target part.
In a specific example, the preset blank page may be an A4 horizontal layout (size is 297mmX210 mm), the second preset position may be a table which is 10mm away from the upper edge and the left edge of the preset blank page, the first preset position may be in a range of 20mm x 20mm from the upper right corner of the preset blank page, and is used for filling a two-dimensional code, and a vertical table (i.e. a third preset position) 30mmX160mm below the two-dimensional code is used for automatically extracting text content to the table and printing after the process of making notes in the process of quoting and drawing pictures by a process engineer, and the text content is printed to remind staff.
Referring to fig. 2, fig. 2 is a schematic diagram of a drawing to be printed according to a first embodiment of the present application.
In the embodiment, a bill of materials and engineering drawings sent by a bill-making client are acquired, the bill of materials comprises production information of at least one part, the production information comprises specification models, each engineering drawing corresponds to one part and is marked with the specification model of the corresponding part, a two-dimensional code is generated for any target part in the bill of materials based on the specification model corresponding to the target part, a preset template is retrieved, the content of the preset template is filled based on the production information of the target part in the bill of materials, the two-dimensional code of the target part, the filled preset template corresponding to the target part and the engineering drawing corresponding to the specification model of the target part are integrated, the drawing to be printed of the target part is obtained, and the drawing to be printed is printed to finish the printing of the engineering drawing of the target part. Based on the method, required information can be automatically added to engineering drawings of all parts based on the bill of materials and printed, the information adding efficiency and accuracy are improved, and subsequent production staff can conveniently process and produce the parts according to the engineering drawings of the added information.
Example two
Fig. 3 is a schematic structural diagram of an engineering drawing printing device according to a second embodiment of the present application. The engineering drawing printing device provided by the embodiment of the application can execute the engineering drawing printing method provided by any embodiment of the application, and has the corresponding functional modules and beneficial effects of the execution method. The device can be realized in a software and/or hardware mode, and as shown in fig. 3, the fault positioning device for the abnormal restarting of the BMC specifically comprises an acquisition module 301, a two-dimension code generation module 302, a template filling module 303 and an integration module 304.
The system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a bill of materials and engineering drawings sent by a bill-making client, the bill of materials comprises production information of at least one part, the production information comprises specification models, each engineering drawing corresponds to one part, and the specification models of the corresponding parts are marked;
The two-dimensional code generation module is used for generating a two-dimensional code for any target part in the bill of materials based on the specification model corresponding to the target part;
The template filling module is used for calling a preset template and filling the content of the preset template based on the production information of the target part in the bill of materials;
The integrated module is used for integrating the two-dimensional code of the target part, the filled preset template corresponding to the target part and the engineering drawing corresponding to the specification model of the target part to obtain a drawing to be printed of the target part, and printing the drawing to be printed to finish printing of the engineering drawing of the target part.
In the embodiment, a bill of materials and engineering drawings sent by a bill of materials are obtained, the bill of materials comprises production information of at least one part, the production information comprises specification models, each engineering drawing corresponds to one part, the specification models of the corresponding parts are marked, for any target part in the bill of materials, a two-dimensional code is generated based on the specification model corresponding to the target part, a preset template is fetched, the content of the preset template is filled based on the production information of the target part in the bill of materials, the two-dimensional code of the target part, the filled preset template corresponding to the target part and the engineering drawing corresponding to the specification model of the target part are integrated, the target part to be printed is obtained, and the to-be-printed drawing is printed to finish the printing of the engineering drawing of the target part. Based on the method, required information can be automatically added to engineering drawings of all parts based on the bill of materials and printed, the information adding efficiency and accuracy are improved, and subsequent production staff can conveniently process and produce the parts according to the engineering drawings of the added information.
Further, the template filling module includes:
The invoking unit is used for acquiring the target client identification of the ordering client and invoking the preset template corresponding to the target client identification based on the mapping relation between the preset client identification and the preset template.
Further, the template filling module includes:
the first filling unit is used for generating work order information based on the production information of the target part in the bill of materials and filling the work order information into a first preset position of the preset template;
a process acquisition unit for acquiring pre-stored process information, wherein the process information comprises a plurality of processes;
A suggestion acquisition unit for determining a suggested process and a suggested process order in the process information according to the historical production data of the order client;
And a second filling unit for filling the process information, the suggested process and the suggested process sequence into a second preset position of the preset template, wherein the filling of the content of the preset template is completed.
Further, the template filling module includes:
the first filling unit is used for generating work order information based on the production information of the target part in the bill of materials and filling the work order information into a first preset position of the preset template;
A process information acquisition unit for acquiring pre-stored process information, wherein the process information comprises a plurality of processes;
A suggestion acquisition unit for determining a suggested process and a suggested process order in the process information according to the historical production data of the order client;
And a second filling unit for filling the process information, the suggested process and the suggested process sequence into a second preset position of the preset template, wherein the filling of the content of the preset template is completed.
Further, the apparatus further comprises:
And the third filling unit is used for searching whether the target part has the special requirement information of the user from the bill of materials, and if so, filling the special requirement information of the user into a third preset position of the preset template.
Further, the integrated module includes:
The detection unit is used for filling the two-dimensional code of the target part and the filled preset template corresponding to the target part into a preset blank page, and detecting an unused area of the preset blank page after filling;
And the fourth filling unit is used for scaling the engineering drawing corresponding to the specification model of the target part based on the size of the unused area, and filling the scaled engineering drawing into the unused area to obtain the drawing to be printed of the target part.
Example III
Fig. 4 is a schematic structural diagram of an electronic device according to a third embodiment of the present application, where, as shown in fig. 4, the electronic device includes a processor 410, a memory 420, an input device 430 and an output device 440, where the number of processors 410 in the electronic device may be one or more, and in fig. 4, one processor 410 is taken as an example, and the processor 410, the memory 420, the input device 430 and the output device 440 in the electronic device may be connected by a bus or other manners, and in fig. 4, the connection is taken as an example by a bus.
The memory 420 is used as a computer readable storage medium for storing software programs, computer executable programs and modules, such as program instructions/modules corresponding to the engineering drawing printing method in the embodiment of the present invention. The processor 410 executes various functional applications and data processing of the electronic device by running software programs, instructions and modules stored in the memory 420, namely, implementing the engineering drawing printing method described above:
Acquiring a bill of materials and engineering drawings sent by an ordering client, wherein the bill of materials comprises production information of at least one part, the production information comprises specification types, each engineering drawing corresponds to one part, and the specification types of the corresponding parts are marked;
Generating a two-dimensional code for any target part in the bill of materials based on the specification model corresponding to the target part;
a preset template is called, and the content of the preset template is filled based on the production information of the target part in the bill of materials;
Integrating the two-dimensional code of the target part, the filled preset template corresponding to the target part and the engineering drawing corresponding to the specification model of the target part to obtain a drawing to be printed of the target part, and printing the drawing to be printed to finish printing the engineering drawing of the target part.
In the embodiment, a bill of materials and engineering drawings sent by a bill of materials are obtained, the bill of materials comprises production information of at least one part, the production information comprises specification models, each engineering drawing corresponds to one part, the specification models of the corresponding parts are marked, for any target part in the bill of materials, a two-dimensional code is generated based on the specification model corresponding to the target part, a preset template is fetched, the content of the preset template is filled based on the production information of the target part in the bill of materials, the two-dimensional code of the target part, the filled preset template corresponding to the target part and the engineering drawing corresponding to the specification model of the target part are integrated, the target part to be printed is obtained, and the to-be-printed drawing is printed to finish the printing of the engineering drawing of the target part. Based on the method, required information can be automatically added to engineering drawings of all parts based on the bill of materials and printed, the information adding efficiency and accuracy are improved, and subsequent production staff can conveniently process and produce the parts according to the engineering drawings of the added information.
The memory 420 may mainly include a storage program area which may store an operating system, application programs required for at least one function, and a storage data area which may store data created according to the use of the terminal, etc. In addition, memory 420 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage device. In some examples, memory 420 may further include memory remotely located relative to processor 410, which may be connected to the electronic device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
Example IV
A fourth embodiment of the present application also provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are for performing a method of engineering drawing printing, the method comprising:
Acquiring a bill of materials and engineering drawings sent by an ordering client, wherein the bill of materials comprises production information of at least one part, the production information comprises specification types, each engineering drawing corresponds to one part, and the specification types of the corresponding parts are marked;
Generating a two-dimensional code for any target part in the bill of materials based on the specification model corresponding to the target part;
a preset template is called, and the content of the preset template is filled based on the production information of the target part in the bill of materials;
Integrating the two-dimensional code of the target part, the filled preset template corresponding to the target part and the engineering drawing corresponding to the specification model of the target part to obtain a drawing to be printed of the target part, and printing the drawing to be printed to finish printing the engineering drawing of the target part.
In the embodiment, a bill of materials and engineering drawings sent by a bill of materials are obtained, the bill of materials comprises production information of at least one part, the production information comprises specification models, each engineering drawing corresponds to one part, the specification models of the corresponding parts are marked, for any target part in the bill of materials, a two-dimensional code is generated based on the specification model corresponding to the target part, a preset template is fetched, the content of the preset template is filled based on the production information of the target part in the bill of materials, the two-dimensional code of the target part, the filled preset template corresponding to the target part and the engineering drawing corresponding to the specification model of the target part are integrated, the target part to be printed is obtained, and the to-be-printed drawing is printed to finish the printing of the engineering drawing of the target part. Based on the method, required information can be automatically added to engineering drawings of all parts based on the bill of materials and printed, the information adding efficiency and accuracy are improved, and subsequent production staff can conveniently process and produce the parts according to the engineering drawings of the added information.
Of course, the storage medium containing the computer executable instructions provided in the embodiments of the present application is not limited to the above method operations, and may also perform the related operations in the engineering drawing printing method provided in any embodiment of the present application.
From the above description of embodiments, it will be clear to a person skilled in the art that the present application may be implemented by means of software and necessary general purpose hardware, but of course also by means of hardware, although in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a FLASH Memory (FLASH), a hard disk, or an optical disk of a computer, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method of the embodiments of the present application.
It should be noted that, in the above embodiment of the search device, each unit and module included are only divided according to the functional logic, but not limited to the above division, as long as the corresponding functions can be implemented, and the specific names of the functional units are only for convenience of distinguishing each other, and are not used for limiting the protection scope of the present application.
Note that the above is only a preferred embodiment of the present application and the technical principle applied. It will be understood by those skilled in the art that the present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the application. Therefore, while the application has been described in connection with the above embodiments, the application is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the application, which is set forth in the following claims.