Batch printing method, system, device and computer-readable storage medium for drawings

By identifying and splitting graphic parameters in drawings, automatic batch printing of multiple drawings is realized, which solves the problem of inability to batch printing in the existing technology, improves efficiency and accuracy, and supports automatic signatures.

CN113495700BActive Publication Date: 2024-10-11CHINA TRANSPORTATION HEAD NEW TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110750891.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-02
Publication Date
2024-10-11
Estimated Expiration
2041-07-02

AI Technical Summary

Technical Problem

The existing technology cannot batch print different drawings in a layout, making the manual selection and printing process time-consuming and laborious, prone to mistakes and missed prints, and increasing the workload of manual operations during review.

Method used

By identifying the graphic parameters in the drawing, including graphic base points, row base points and column base points, the drawings are split to identify the printing area of ​​each drawing, and these parameters are used for batch printing. The system includes a loading module, a splitting module and a batch printing module to realize automatic identification and batch printing.

Benefits of technology

It realizes the automatic recognition, splitting and batch printing of multiple drawings, reduces the probability of errors, improves the efficiency of CAD drawings, supports automatic signature, and simplifies the proofreading process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113495700B_ABST
    Figure CN113495700B_ABST
Patent Text Reader

Abstract

The present invention provides a method, system, device and computer-readable storage medium for batch printing of drawings, the method comprising loading a drawing set to be printed; the drawing set to be printed comprises a plurality of drawings arranged in row and column order; identifying graphic parameters applicable to split drawings, and using the graphic parameters applicable to split drawings to split drawings in the entire drawing set to be printed, so as to identify the printing area of ​​each drawing to form split drawings; and batch printing the split drawings. The method, system, device and computer-readable storage medium for batch printing of drawings of the present invention can automatically identify, split and batch print multiple drawings on a layout, and can also extract information such as drawing number and design unit in each drawing, and automatically sign columns such as reviewer during printing, effectively improving the efficiency of CAD drawing and reducing the probability of error.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of printing technology, and relates to a printing method and system, and in particular to a batch printing method, system, device and computer-readable storage medium for drawings. Background Art

[0002] When using CAD to design drawings, CAD designers often design multiple drawings on one layout. Each drawing is designed within a drawing frame. Each drawing needs to be printed out when the drawing is produced. The printing function of CAD itself cannot print different drawings in one layout. To print each drawing, you need to manually select the printing range of the drawing frame, as well as the printing paper and style for printing. This is time-consuming and laborious, and it is easy to make mistakes or omissions. If it involves auditing, you also need to sign the audit column of the drawing, which increases the workload of manual operation.

[0003] Therefore, how to provide a batch printing method, system, device and computer-readable storage medium for drawings to solve the defects of the prior art such as the inability to batch print different drawings in a layout has become a technical problem that needs to be urgently solved by technical personnel in this field. Summary of the invention

[0004] In view of the above-mentioned shortcomings of the prior art, an object of the present invention is to provide a method, system, device and computer-readable storage medium for batch printing of drawings, so as to solve the problem that the prior art cannot batch print different drawings in a layout.

[0005] To achieve the above-mentioned purpose and other related purposes, the present invention provides a method for batch printing of drawings, comprising: loading a set of drawings to be printed; the set of drawings to be printed comprises a plurality of drawings arranged in row and column order; identifying graphic parameters applicable to splitting drawings, and using the graphic parameters applicable to splitting drawings to split the drawings in the entire set of drawings to be printed, so as to identify the printing area of ​​each drawing to form split drawings; and batch printing the split drawings.

[0006] In one embodiment of the present invention, the graphic parameters applicable to the split drawing include graphic base points, graphic row base points, and graphic column base points in the drawing.

[0007] In one embodiment of the present invention, a graphic parameter applicable to splitting drawings is identified, and drawings in the entire set of drawings to be printed are split using the graphic parameter applicable to splitting drawings to identify the printing area of ​​each drawing, and the step of forming the split drawings includes: obtaining a graphic entity of each drawing from the set of drawings to be printed; the graphic entity has a maximum coordinate position and a minimum coordinate position for representing the boundary range of the graphic entity; among all graphic entities, finding a graphic entity with the smallest minimum coordinate position; defining the minimum coordinate position of the graphic entity as a graphic base point of the graphic entity; continuing to search for the graphic row base point and the graphic column base point in the order of row first and column later or searching for the graphic column base point and the graphic row base point in the order of column first and row later in the graphic entity, and obtaining a target entity by traversing all graphic base points and the graphic row base point or the graphic column base point, and comparing them; according to the identified target entity, calculating the printing ratio by length / width, and comparing it with the size of the printing paper, and defining the printing area that meets the printing paper ratio as the printing area of ​​the drawing.

[0008] In one embodiment of the present invention, the graphic row base point and the graphic column base point are searched in the order of row first and column later, and after traversing all the graphic base points, the graphic row base points and the graphic column base points and comparing them, the step of obtaining the target entity includes: traversing all the graphic entities in the drawing set to be printed, and comparing the minimum coordinate position of the graphic entity with the coordinate position of the graphic base point; if the horizontal coordinate of the minimum coordinate position of the graphic entity is equal to the horizontal coordinate of the graphic base point, and the vertical coordinate is greater than or equal to the vertical coordinate of the graphic base point, then defining the minimum coordinate position of the graphic entity as the graphic row base point, and forming a row base point set with all the found graphic row base points; comparing the coordinate position of each graphic row base point in the row base point set with the coordinate position of the graphic entity on the graphic row base point in turn; if the vertical coordinate of the graphic entity is equal to the vertical coordinate of the graphic row base point, and the horizontal coordinate of the graphic entity is greater than or equal to the vertical coordinate of the graphic base point, then defining the minimum coordinate position of the graphic entity as the graphic row base point, and forming a row base point set with all the found graphic row base points; comparing the coordinate position of each graphic row base point in the row base point set with the coordinate position of the graphic entity on the graphic row base point in turn; if the vertical coordinate of the graphic entity is equal to the vertical coordinate of the graphic row base point, and the horizontal coordinate of the graphic entity is greater than or equal to the vertical coordinate of the graphic at the horizontal coordinate of the graphic row base point, the graphic entity identified on the graphic row base point is identified as the target entity; then all the graphic entities in the drawing set to be printed are traversed, and the minimum coordinate position of the graphic entity is compared with the coordinate position of the graphic base point; if the vertical coordinate of the minimum coordinate position of the graphic entity is equal to the vertical coordinate of the graphic base point, and the horizontal coordinate is greater than or equal to the horizontal coordinate of the graphic base point, then the minimum coordinate position of the graphic entity is defined as the graphic column base point, and all the found graphic column base points are formed into a column base point set; the coordinate position of each graphic column base point in the column base point set is compared with the coordinate position of the graphic entity on the graphic column base point in turn, if the horizontal coordinate of the graphic entity is equal to the horizontal coordinate of the graphic column base point, and the vertical coordinate of the graphic entity is greater than or equal to the vertical coordinate of the graphic column base point, then the graphic entity identified on the graphic column base point is identified as the target entity, forming a split drawing.

[0009] In one embodiment of the present invention, the graphic column base point and the graphic row base point are searched in the order of column first and row later, and the step of obtaining the target entity comprises: traversing all the graphic entities in the drawing set to be printed, and comparing the minimum coordinate position of the graphic entity with the coordinate position of the graphic base point; if the ordinate of the minimum coordinate position of the graphic entity is equal to the ordinate of the graphic base point, and the abscissa is greater than or equal to the abscissa of the graphic base point, then defining the minimum coordinate position of the graphic entity as the graphic column base point, and forming a column base point set with all the found graphic column base points; comparing the coordinate position of each graphic column base point in the column base point set with the coordinate position of the graphic entity on the graphic column base point in turn, and if the abscissa of the graphic entity is equal to the abscissa of the graphic column base point, and the ordinate of the graphic entity is greater than or equal to the abscissa of the graphic base point, then defining the minimum coordinate position of the graphic entity as the graphic column base point, and forming a column base point set with all the found graphic column base points; comparing the coordinate position of each graphic column base point in the column base point set with the coordinate position of the graphic entity on the graphic column base point in turn, and if the abscissa of the graphic entity is equal to the abscissa of the graphic column base point, and the ordinate of the graphic entity is greater than or equal to the abscissa of the graphic If the ordinate of a graphic row base point is equal to the ordinate of the graphic column base point, the graphic entity identified on the graphic column base point is identified as the target entity; then all the graphic entities in the drawing set to be printed are traversed, and the minimum coordinate position of the graphic entity is compared with the coordinate position of the graphic base point; if the abscissa of the minimum coordinate position of the graphic entity is equal to the abscissa of the graphic base point, and the ordinate is greater than or equal to the ordinate of the graphic base point, then the minimum coordinate position of the graphic entity is defined as the graphic row base point, and all the found graphic row base points are formed into a row base point set; the coordinate position of each graphic row base point in the row base point set is compared with the coordinate position of the graphic entity on the graphic row base point in turn, if the ordinate of the graphic entity is equal to the ordinate of the graphic row base point, and the abscissa of the graphic entity is greater than or equal to the abscissa of the graphic row base point, then the graphic entity identified on the graphic row base point is identified as the target entity, and a split drawing is formed.

[0010] In one embodiment of the present invention, the graphic parameters applicable to the split drawings also include the graphic attributes of the drawings; the graphic attributes of the drawings include object type, text value and block name of the graphics; the graphic parameters applicable to the split drawings are identified, and the drawings in the entire set of drawings to be printed are split using the graphic parameters applicable to the split drawings to identify the printing area of ​​each drawing, and the steps of forming the split drawings include: using a filter corresponding to the graphic attributes of the drawings to filter out the graphic attributes of the corresponding drawings; filtering an attribute reference set corresponding to the graphic attributes of the drawings according to the graphic attributes of the drawings; searching for a coordinate range corresponding to the attribute reference set, and determining the area within the coordinate range as the printing area.

[0011] In one embodiment of the present invention, before the step of batch printing the split drawings, the batch printing method of drawings further includes: batch identifying the signable areas in the drawings and extracting drawing information.

[0012] In one embodiment of the present invention, the steps of batch identifying the signable areas in the drawings and extracting the drawing information include: recording the coordinates of the drawing information extraction box and the coordinates of the signature box in a drawing and the graphic base point of the drawing; calculating the first relative coordinates of the coordinates of the drawing information extraction box and the graphic base point and the second relative coordinates of the coordinates of the signature box and the graphic base point; adding the graphic base points of the remaining drawings in the drawing set to be printed to the first relative coordinates and the second relative coordinates respectively, so as to obtain the coordinates of the drawing information extraction box and the coordinates of the signature box of the remaining drawings in the drawing set to be printed.

[0013] On the other hand, the present invention provides a batch printing system for drawings, including: a loading module, used to load a drawing set to be printed; the drawing set to be printed includes multiple drawings arranged in row and column order; a splitting module, used to identify graphic parameters that can be applied to split drawings, and use the graphic parameters that can be applied to split drawings to split the drawings in the entire drawing set to be printed, so as to identify the printing area of ​​each drawing to form split drawings; a batch printing module, used to batch print the split drawings.

[0014] Another aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, which implements the batch printing method of the drawings when the program is executed by a processor.

[0015] The last aspect of the present invention provides a batch printing device for drawings, comprising: a processor and a memory; the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the batch printing device for drawings executes the batch printing method for drawings.

[0016] As described above, the method, system, device and computer-readable storage medium for batch printing of drawings according to the present invention have the following beneficial effects:

[0017] The batch printing method, system, device and computer-readable storage medium of drawings described in the present invention can automatically identify, split and batch print multiple drawings on a layout, and can also extract information such as the drawing number and design unit in each drawing, and automatically sign columns such as the reviewer during printing, thereby effectively improving the CAD drawing efficiency and reducing the probability of errors. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 It is a schematic flow chart of a batch printing method of drawings of the present invention in one embodiment.

[0019] Figure 2 It is a schematic diagram of an implementation process of S12 of the present invention.

[0020] Figure 3Shown is an example diagram of a collection of graphical entities of the present invention.

[0021] Figure 4 Shown is an example diagram of batch identification of signable areas in drawings and extraction of drawing information according to the present invention.

[0022] Figure 5 Shown is a schematic diagram of the principle structure of a batch printing system of drawings of the present invention in one embodiment.

[0023] Component number description

[0024] 5 Batch printing system for drawings 51 Loading Modules 52 Split Modules 53 Batch information processing module 54 Batch Printing Module S11~S14 step S121~S125 step DETAILED DESCRIPTION

[0025] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.

[0026] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.

[0027] Embodiment 1

[0028] This embodiment provides a method for batch printing drawings, including:

[0029] Loading a drawing set to be printed; the drawing set to be printed includes a plurality of drawings arranged in row and column order;

[0030] Identifying graphic parameters applicable to split drawings, and splitting drawings in the entire set of drawings to be printed using the graphic parameters applicable to split drawings, so as to identify the printing area of ​​each drawing and form split drawings;

[0031] Batch print the split drawings.

[0032] The following will describe in detail the batch printing method of drawings provided in this embodiment in conjunction with the illustrations. Figure 1 , which is a flow chart of a batch printing method of drawings in one embodiment. Figure 1 As shown, the batch printing method of the drawings specifically includes the following steps:

[0033] S11, loading a drawing set to be printed; the drawing set to be printed includes a plurality of drawings arranged in order of rows and columns.

[0034] S12, identifying graphic parameters applicable to split drawings, and splitting drawings in the entire set of drawings to be printed using the graphic parameters applicable to split drawings, so as to identify the printing area of ​​each drawing and form split drawings.

[0035] In this embodiment, the graphic parameters applicable to the split drawing include graphic base points, graphic row base points, and graphic column base points in the drawing.

[0036] See also Figure 2 , which is a schematic diagram of an implementation process of S12. Figure 2 As shown, the S12 specifically includes the following steps:

[0037] S121, acquiring the graphic entity of each drawing from the set of drawings to be printed.

[0038] Specifically, the graphic entity of each drawing is obtained from the set of drawings to be printed through the secondary development interface officially provided by CAD.

[0039] In this embodiment, the graphic entity refers to a basic graphic object in a CAD design, such as a rectangle, a circle, a block, etc. The graphic entity has a maximum coordinate position (maxPoint) and a minimum coordinate position (minPoint) for indicating the boundary range of the graphic entity. Figure 3 , shown as an example graph of a collection of graph entities.

[0040] S122, among all graphic entities, find the graphic entity with the smallest minimum coordinate position, for example, Figure 3 Medium graphic entity 3.

[0041] S123, defining the minimum coordinate position of the graphic entity as the graphic base point of the graphic entity (usually the lower left corner point of the graphic entity), for example, Figure 3 Point O is shown.

[0042] S124, continue to search for the graphic row base points and the graphic column base points in the order of rows first and columns later or search for the graphic column base points in the order of columns first and rows later in the graphic entity, and obtain the target entity by traversing all graphic base points and the graphic row base points or the graphic column base points and comparing them.

[0043] Specifically, the step of searching for the graphic row base point and the graphic column base point in the order of row first and column later, traversing all the graphic base points, the graphic row base points and the graphic column base points, and comparing them, to obtain the target entity includes:

[0044] Traversing all graphic entities in the drawing set to be printed, and comparing the minimum coordinate position (minPoint) of the graphic entity with the coordinate position of the graphic base point;

[0045] If the horizontal coordinate X of the minimum coordinate position of the graphic entity is equal to the horizontal coordinate X of the graphic base point O, and the vertical coordinate Y is greater than or equal to the vertical coordinate Y of the graphic base point O, then the minimum coordinate position of the graphic entity is defined as the graphic row base point, and all the found graphic row base points are combined into a row base point set (all graphic row base points that meet the above search conditions are arranged in the Y-axis direction, for example Figure 3 Y1, Y2, etc. as shown).

[0046] The coordinate position of each graphic row base point in the row base point set is compared with the coordinate position of the graphic entity on the graphic row base point in turn. If the longitudinal coordinate of the graphic entity is equal to the longitudinal coordinate of the graphic row base point, and the horizontal coordinate of the graphic entity is greater than or equal to the horizontal coordinate of the graphic row base point, the graphic entity identified on the graphic row base point is identified as the target entity.

[0047] For example, the graphic row base point Y1 in the row base point set is compared with the coordinate position of the graphic entity on the graphic row base point Y1, that is, compared with the graphic entities 3, 4, and 5.

[0048] If the ordinate Y of the graphic entity 3 is equal to the ordinate Y of the graphic row base point Y1, and the abscissa X of the graphic entity 3 is greater than or equal to the abscissa X of the graphic row base point Y1, the graphic entity 3 is considered to be the identified target entity.

[0049] If the ordinate Y of the graphic entity 4 is equal to the ordinate Y of the graphic row base point Y1, and the abscissa X of the graphic entity 4 is greater than the abscissa X of the graphic entity 3 and greater than the abscissa X of the graphic row base point Y1, then the graphic entity 4 is considered to be the identified target entity.

[0050] If the ordinate Y of the graphic entity 5 is equal to the ordinate Y of the graphic row base point Y1, and the abscissa X of the graphic entity 5 is greater than the abscissa X of the graphic entity 4 and greater than the abscissa X of the graphic row base point Y1, then the graphic entity 5 is considered to be the identified target entity.

[0051] All graphic entities in the drawing set to be printed are traversed, and the minimum coordinate position of the graphic entity is compared with the coordinate position of the graphic base point.

[0052] If the ordinate Y of the minimum coordinate position of the graphic entity is equal to the ordinate Y of the graphic base point O, and the abscissa X is greater than or equal to the abscissa of the graphic base point O, then the minimum coordinate position of the graphic entity is defined as the graphic column base point, and all the found graphic column base points are formed into a column base point set (all graphic column base points that meet the above search conditions are arranged in the X-axis direction, for example Figure 3 X1, X2, etc. shown);

[0053] The coordinate position of each graphic column base point in the column base point set is compared with the coordinate position of the graphic entity on the graphic column base point in turn. If the horizontal coordinate of the graphic entity is equal to the horizontal coordinate of the graphic column base point, and the vertical coordinate of the graphic entity is greater than or equal to the vertical coordinate of the graphic column base point, the graphic entity identified on the graphic column base point is identified as the target entity.

[0054] For example, the graphic column base point X1 in the column base point set is compared with the coordinate position of the graphic entity on the graphic column base point X1, that is, compared with the graphic entity 3,1.

[0055] If the abscissa X of the graphic entity 3 is equal to the abscissa X of the graphic column base point X1, and the ordinate Y of the graphic entity 3 is greater than the ordinate Y of the graphic column base point X1, the graphic entity 3 is considered to be the identified target entity.

[0056] If the horizontal coordinate X of the graphic entity 1 is equal to the horizontal coordinate X of the graphic column base point X1, and the vertical coordinate Y of the graphic entity 1 is greater than the vertical coordinate of the graphic entity 3, and greater than the vertical coordinate of the graphic column base point X1, then the graphic entity 1 is considered to be the identified target entity. Specifically, the graphic column base point and the graphic row base point are searched in the order of column first and row later, and the step of obtaining the target entity by traversing all the graphic base points, the graphic column base points and the graphic row base points and comparing them includes:

[0057] Traversing all graphic entities in the drawing set to be printed, and comparing the minimum coordinate position of the graphic entity with the coordinate position of the graphic base point;

[0058] If the ordinate of the minimum coordinate position of the graphic entity is equal to the ordinate of the graphic base point, and the abscissa is greater than or equal to the abscissa of the graphic base point, then the minimum coordinate position of the graphic entity is defined as the graphic column base point, and all the found graphic column base points are grouped into a column base point set;

[0059] Compare the coordinate position of each graphic column base point in the column base point set with the coordinate position of the graphic entity on the graphic column base point in turn; if the abscissa of the graphic entity is equal to the abscissa of the graphic column base point, and the ordinate of the graphic entity is greater than or equal to the ordinate of the graphic column base point, then identify the graphic entity identified on the graphic column base point as a target entity and regard the graphic entity as the identified target entity;

[0060] Then traverse all the graphic entities in the drawing set to be printed, and compare the minimum coordinate position of the graphic entity with the coordinate position of the graphic base point;

[0061] If the horizontal coordinate of the minimum coordinate position of the graphic entity is equal to the horizontal coordinate of the graphic base point, and the vertical coordinate is greater than or equal to the vertical coordinate of the graphic base point, then the minimum coordinate position of the graphic entity is defined as the graphic row base point, and all the found graphic row base points are combined into a row base point set;

[0062] The coordinate position of each graphic row base point in the row base point set is compared with the coordinate position of the graphic entity on the graphic row base point in turn. If the longitudinal coordinate of the graphic entity is equal to the longitudinal coordinate of the graphic row base point, and the horizontal coordinate of the graphic entity is greater than or equal to the horizontal coordinate of the graphic row base point, the graphic entity identified on the graphic row base point is identified as the target entity.

[0063] S125, according to the identified target entity, the printing ratio is calculated by length / width, and compared with the size of the printing paper, and the printing area that meets the printing paper ratio is defined as the printing area of ​​the drawing.

[0064] In this embodiment, the graphic parameters applicable to the split drawing also include the graphic attributes of the drawing. The graphic attributes of the drawing include object type, text value and block name of the graphic;

[0065] The S12 includes:

[0066] Filter out the graphic attributes of the corresponding drawing using the filter SlectionFilter corresponding to the graphic attributes of the drawing, that is, the DxfCode.Start object type (such as line, polyline, block, etc.), the DxfCode.Text text value or the DxfCode.BlockName graphic block name;

[0067] Filter the attribute reference set corresponding to the graphic attributes of the drawing according to the graphic attributes of the drawing;

[0068] The coordinate range corresponding to the attribute reference set is found, and the area within the coordinate range is determined as the printing area.

[0069] For example, use DxfCode.BlockName and the block reference name used to filter out the block reference set of the drawing frame. For example, if we use the block name "TK", we can filter out the block reference set named "TK". The coordinate range corresponding to each filtered block is the printable area. In this way, the entire drawing is split and recognized based on the block reference.

[0070] S13, batch identification of the signable areas in the drawings and extraction of drawing information. In this embodiment, batch identification of the signable areas in the drawings can realize automatic signing of the review column of the drawings when it involves review, eliminating the workload of manual operation.

[0071] Specifically, the S13 comprises the following steps:

[0072] Record the coordinates of the drawing information extraction box and signature box in a drawing and the graphic base point of the drawing.

[0073] For example, records such as Figure 4 The coordinates of the drawing information extraction box of the lower left corner of the drawing (for example, the coordinates of the lower left corner A1 and the upper right corner A2) and the coordinates of the signature box (for example, the coordinates of the lower left corner B1 and the upper right corner B2) and the graphic base point O3 of the drawing are shown.

[0074] Calculate the first relative coordinates between the coordinates of the drawing information extraction box and the graphic base point O3 and the second relative coordinates between the coordinates of the signature box and the graphic base point;

[0075] Set the drawing base points of the remaining sheets in the drawing set to be printed (such as Figure 4 The coordinates O1, O2, O4, O5) shown are added to the first relative coordinate and the second relative coordinate respectively to obtain the coordinates of the drawing information extraction box and the coordinates of the signature box of the remaining drawings in the drawing set to be printed.

[0076] S14, batch print the split drawings.

[0077] The batch printing method of drawings described in this embodiment can automatically identify, split and batch print multiple drawings on a layout, and can also extract information such as the drawing number and design unit in each drawing, and automatically sign columns such as the reviewer during printing, which effectively improves CAD drawing efficiency and reduces the probability of errors.

[0078] This embodiment also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the batch printing method of the drawings as described above is implemented.

[0079] At any possible level of technical detail combination, the present application may be a system, method and / or computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present application.

[0080] Computer readable storage medium can be a tangible device that can hold and store instructions used by an instruction execution device. Computer readable storage medium can be, for example, (but not limited to) an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination thereof. More specific examples (non-exhaustive list) of computer readable storage medium include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, for example, a punch card or a convex structure in a groove on which instructions are stored, and any suitable combination thereof. The computer readable storage medium used here is not interpreted as a transient signal itself, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagated by a waveguide or other transmission medium (for example, a light pulse by an optical fiber cable), or an electrical signal transmitted by a wire.

[0081] The computer-readable program described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device through a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives a computer-readable program instruction from the network, and forwards the computer-readable program instruction for storage in the computer-readable storage medium in each computing / processing device. The computer program instruction for performing the operation of the present application can be an assembly instruction, an instruction set architecture (ISA) instruction, a machine instruction, a machine-related instruction, a microcode, a firmware instruction, a state setting data, an integrated circuit configuration data, or a source code or object code written in any combination of one or more programming languages, wherein the programming language includes an object-oriented programming language, such as Smalltalk, C++, etc., and a procedural programming language, such as "C" language or similar programming language. Computer readable program instructions can be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., using an Internet service provider to connect through the Internet). In certain embodiments, by using the state information of computer readable program instructions to personalize electronic circuits, such as programmable logic circuits, field programmable gate arrays (FPGAs) or programmable logic arrays (PLAs), the electronic circuits can execute computer readable program instructions, thereby realizing various aspects of the present application.

[0082] Embodiment 2

[0083] This embodiment provides a system for batch printing drawings, including:

[0084] A loading module, used for loading a drawing set to be printed; the drawing set to be printed includes a plurality of drawings arranged in order of rows and columns;

[0085] A splitting module, used for identifying graphic parameters applicable to split drawings, and splitting drawings in the entire set of drawings to be printed using the graphic parameters applicable to split drawings, so as to identify the printing area of ​​each drawing and form split drawings;

[0086] Batch printing module, used to batch print split drawings.

[0087] The following will describe in detail the batch printing system of drawings provided in this embodiment in conjunction with the diagram. Figure 5 , a schematic diagram of the principle structure of a batch printing system in one embodiment is shown as a drawing. Figure 5 As shown, the batch printing system 5 for drawings includes a loading module 51 , a splitting module 52 , a batch information processing module 53 and a batch printing module 54 .

[0088] The loading module 51 is used to load a drawing set to be printed; the drawing set to be printed includes a plurality of drawings arranged in row and column order.

[0089] The splitting module 52 is used to identify the graphic parameters applicable to the split drawings, and split the drawings in the entire set of drawings to be printed using the graphic parameters applicable to the split drawings, so as to identify the printing area of ​​each drawing and form split drawings.

[0090] In this embodiment, when the graphic parameters applicable to the split drawings include graphic base points, graphic row base points and graphic column base points in the drawings, the splitting module 52 obtains the graphic entity of each drawing from the set of drawings to be printed; the graphic entity has a maximum coordinate position and a minimum coordinate position for representing the boundary range of the graphic entity; among all the graphic entities, find the graphic entity with the smallest minimum coordinate position; define the minimum coordinate position of the graphic entity as the graphic base point of the graphic entity; continue to search for the graphic row base point and the graphic column base point in the order of row first and then column in the graphic entity, or search for the graphic column base point and the graphic row base point in the order of column first and then row, and obtain the target entity by traversing all the graphic base points and the graphic row base points or the graphic column base points, and comparing them; according to the identified target entity, calculate the printing ratio by length / width, and compare it with the size of the printing paper, and define the printing area that meets the printing paper ratio as the printing area of ​​the drawing.

[0091] The splitting module 52 searches for the graphic row base point and the graphic column base point in the order of row first and column later, and after traversing all the graphic base points, the graphic row base points and the graphic column base points and comparing them, the process of obtaining the target entity includes: traversing all the graphic entities in the drawing set to be printed, and comparing the minimum coordinate position of the graphic entity with the coordinate position of the graphic base point; if the horizontal coordinate of the minimum coordinate position of the graphic entity is equal to the horizontal coordinate of the graphic base point, and the vertical coordinate is greater than or equal to the vertical coordinate of the graphic base point, then the minimum coordinate position of the graphic entity is defined as the graphic row base point, and all the found graphic row base points form a row base point set; the coordinate position of each graphic row base point in the row base point set is compared with the coordinate position of the graphic entity on the graphic row base point in turn, if the vertical coordinate of the graphic entity is equal to the vertical coordinate of the graphic row base point, and the horizontal coordinate of the graphic entity is greater than or equal to the vertical coordinate of the graphic base point The horizontal coordinate of the graphic row base point is determined, and the graphic entity identified on the graphic row base point is identified as the target entity; then all the graphic entities in the drawing set to be printed are traversed, and the minimum coordinate position of the graphic entity is compared with the coordinate position of the graphic base point; if the vertical coordinate of the minimum coordinate position of the graphic entity is equal to the vertical coordinate of the graphic base point, and the horizontal coordinate is greater than or equal to the horizontal coordinate of the graphic base point, then the minimum coordinate position of the graphic entity is defined as the graphic column base point, and all the found graphic column base points are formed into a column base point set; the coordinate position of each graphic column base point in the column base point set is compared with the coordinate position of the graphic entity on the graphic column base point in turn, if the horizontal coordinate of the graphic entity is equal to the horizontal coordinate of the graphic column base point, and the vertical coordinate of the graphic entity is greater than or equal to the vertical coordinate of the graphic column base point, then the graphic entity identified on the graphic column base point is identified as the target entity, forming a split drawing.

[0092] The splitting module 52 searches for the graphic column base point and the graphic row base point in the order of column first and row later, and after traversing all the graphic base points, the graphic column base points and the graphic row base points and comparing them, the process of obtaining the target entity includes: traversing all the graphic entities in the drawing set to be printed, and comparing the minimum coordinate position of the graphic entity with the coordinate position of the graphic base point; if the ordinate of the minimum coordinate position of the graphic entity is equal to the ordinate of the graphic base point, and the abscissa is greater than or equal to the abscissa of the graphic base point, then the minimum coordinate position of the graphic entity is defined as the graphic column base point, and all the found graphic column base points form a column base point set; the coordinate position of each graphic column base point in the column base point set is compared with the coordinate position of the graphic entity on the graphic column base point in turn; if the abscissa of the graphic entity is equal to the abscissa of the graphic column base point, and the ordinate of the graphic entity is greater than or equal to the abscissa of the graphic base point, then the minimum coordinate position of the graphic entity is defined as the graphic column base point, and all the found graphic column base points form a column base point set; the coordinate position of each graphic column base point in the column base point set is compared with the coordinate position of the graphic entity on the graphic column base point in turn; if the abscissa of the graphic entity is equal to the abscissa of the graphic column base point, and the ordinate of the graphic entity is greater than or equal to the abscissa of the graphic at the ordinate of the graphic column base point, the graphic entity identified on the graphic column base point is identified as the target entity; then all the graphic entities in the drawing set to be printed are traversed, and the minimum coordinate position of the graphic entity is compared with the coordinate position of the graphic base point; if the abscissa of the minimum coordinate position of the graphic entity is equal to the abscissa of the graphic base point, and the ordinate is greater than or equal to the ordinate of the graphic base point, then the minimum coordinate position of the graphic entity is defined as the graphic row base point, and all the found graphic row base points are formed into a row base point set; the coordinate position of each graphic row base point in the row base point set is compared with the coordinate position of the graphic entity on the graphic row base point in turn, if the ordinate of the graphic entity is equal to the ordinate of the graphic row base point, and the abscissa of the graphic entity is greater than or equal to the abscissa of the graphic row base point, then the graphic entity identified on the graphic row base point is identified as the target entity, forming a split drawing.

[0093] When the graphic parameters applicable to the split drawings include graphic attributes of the drawings; and the graphic attributes of the drawings include object types, text values, and block names of the graphics, the splitting module 52 is used to identify the graphic parameters applicable to the split drawings, and use the graphic parameters applicable to the split drawings to split the drawings in the entire set of drawings to be printed, so as to identify the printing area of ​​each drawing and form split drawings.

[0094] Specifically, the splitting module 52 uses a filter corresponding to the graphic attributes of the drawing to filter out the graphic attributes of the corresponding drawing; filters an attribute reference set corresponding to the graphic attributes of the drawing according to the graphic attributes of the drawing; searches for a coordinate range corresponding to the attribute reference set, and determines an area within the coordinate range as a printing area.

[0095] The batch information processing module 53 is used to batch identify the signable areas in the drawings and extract the drawing information.

[0096] Specifically, the batch information processing module 53 records the coordinates of the drawing information extraction box and the signature box in a drawing and the graphic base point of the drawing; calculates the first relative coordinates of the coordinates of the drawing information extraction box and the graphic base point O3 and the second relative coordinates of the coordinates of the signature box and the graphic base point; calculates the graphic base points (such as Figure 4 The coordinates O1, O2, O4, O5) shown are added to the first relative coordinate and the second relative coordinate respectively to obtain the coordinates of the drawing information extraction box and the coordinates of the signature box of the remaining drawings in the drawing set to be printed.

[0097] The batch printing module 54 is used for batch printing of the split drawings.

[0098] It should be noted that it should be understood that the division of the various modules of the above system is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. And these modules can all be implemented in the form of software called by processing elements, or they can all be implemented in the form of hardware, or some modules can be implemented in the form of software called by processing elements, and some modules can be implemented in the form of hardware. For example: the x module can be a separately established processing element, or it can be integrated in a certain chip of the above system. In addition, the x module can also be stored in the memory of the above system in the form of program code, and called and executed by a certain processing element of the above system. The implementation of other modules is similar. These modules can be integrated together in whole or in part, or they can be implemented independently. The processing element described here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each module above can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software. The above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASIC), one or more digital singnal processors (DSP), one or more field programmable gate arrays (FPGA), etc. When a module is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. These modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).

[0099] Embodiment 3

[0100] The present embodiment provides a batch printing device for drawings, including: a processor, a memory, a transceiver, a communication interface and / or a system bus; the memory and the communication interface are connected to the processor and the transceiver through the system bus and complete mutual communication, the memory is used to store computer programs, the communication interface is used to communicate with other devices, and the processor and the transceiver are used to run the computer program, so that the device executes each step of the batch printing method of drawings described in Example 1.

[0101] The system bus mentioned above can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The system bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. The communication interface is used to realize the communication between the database access device and other devices (such as clients, read-write libraries, and read-only libraries). The memory may include random access memory (RAM), and may also include non-volatile memory, such as at least one disk storage.

[0102] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0103] The protection scope of the batch printing method of drawings described in the present invention is not limited to the execution order of the steps listed in this embodiment. All solutions implemented by adding, reducing or replacing steps in the prior art based on the principles of the present invention are included in the protection scope of the present invention.

[0104] The present invention also provides a batch printing system for drawings, which can implement the batch printing method for drawings described in the present invention. However, the implementation device of the batch printing method for drawings described in the present invention includes but is not limited to the structure of the batch printing system for drawings listed in this embodiment. All structural deformations and replacements of the prior art made according to the principles of the present invention are included in the protection scope of the present invention.

[0105] In summary, the batch printing method, system, device and computer-readable storage medium of drawings of the present invention can automatically identify, split and batch print multiple drawings on a layout, and can also extract information such as drawing number and design unit in each drawing, and automatically sign columns such as reviewer when printing, which effectively improves CAD drawing efficiency and reduces the probability of error. The present invention effectively overcomes various shortcomings in the prior art and has high industrial utilization value.

[0106] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by a person of ordinary skill in the art without departing from the spirit and technical concept disclosed by the present invention shall still be covered by the claims of the present invention.

Claims

1. A method for batch printing of drawings, characterized in that: include: Loading a drawing set to be printed; the drawing set to be printed includes a plurality of drawings arranged in row and column order; Identifying graphic parameters applicable to split drawings, and splitting drawings in the entire set of drawings to be printed using the graphic parameters applicable to split drawings, so as to identify the printing area of ​​each drawing and form split drawings; The graphic parameters applicable to the split drawing include the graphic base points, graphic row base points and graphic column base points in the drawing, including: Acquire a graphic entity of each drawing from the set of drawings to be printed; the graphic entity has a maximum coordinate position and a minimum coordinate position for indicating a boundary range of the graphic entity; Among all graphic entities, find the graphic entity with the smallest minimum coordinate position; The minimum coordinate position of the graphic entity is defined as the graphic base point of the graphic entity; Continue to search for the graphic row base point and the graphic column base point in the order of row first and column later, or search for the graphic column base point and the graphic row base point in the order of column first and row later in the graphic entity, and obtain the target entity by traversing all the graphic base points and the graphic row base points or the graphic column base points and comparing them; According to the identified target entity, the printing ratio is calculated by length / width and compared with the size of the printing paper, and the printing area that meets the printing paper ratio is defined as the printing area of ​​the drawing; Batch print the split drawings.

2. The method for batch printing of drawings according to claim 1, characterized in that: The step of searching the graphic row base point and the graphic column base point in the order of row first and column later, traversing all the graphic base points, the graphic row base points and the graphic column base points, and comparing them, to obtain the target entity comprises: Traversing all graphic entities in the drawing set to be printed, and comparing the minimum coordinate position of the graphic entity with the coordinate position of the graphic base point; If the horizontal coordinate of the minimum coordinate position of the graphic entity is equal to the horizontal coordinate of the graphic base point, and the vertical coordinate is greater than or equal to the vertical coordinate of the graphic base point, then the minimum coordinate position of the graphic entity is defined as the graphic row base point, and all the found graphic row base points are combined into a row base point set; Compare the coordinate position of each graphic row base point in the row base point set with the coordinate position of the graphic entity on the graphic row base point in turn; if the ordinate of the graphic entity is equal to the ordinate of the graphic row base point, and the abscissa of the graphic entity is greater than or equal to the abscissa of the graphic row base point, then identify the graphic entity identified on the graphic row base point as the target entity; Then traverse all the graphic entities in the drawing set to be printed, and compare the minimum coordinate position of the graphic entity with the coordinate position of the graphic base point; If the ordinate of the minimum coordinate position of the graphic entity is equal to the ordinate of the graphic base point, and the abscissa is greater than or equal to the abscissa of the graphic base point, then the minimum coordinate position of the graphic entity is defined as the graphic column base point, and all the found graphic column base points are grouped into a column base point set; The coordinate position of each graphic column base point in the column base point set is compared with the coordinate position of the graphic entity on the graphic column base point in turn. If the horizontal coordinate of the graphic entity is equal to the horizontal coordinate of the graphic column base point, and the vertical coordinate of the graphic entity is greater than or equal to the vertical coordinate of the graphic column base point, then the graphic entity identified on the graphic column base point is identified as the target entity to form a split drawing.

3. The method for batch printing of drawings according to claim 1, characterized in that: The step of searching the graphic column base point and the graphic row base point in the order of columns first and rows later, traversing all graphic base points, the graphic column base points and the graphic row base points, and comparing them, to obtain the target entity comprises: Traversing all graphic entities in the drawing set to be printed, and comparing the minimum coordinate position of the graphic entity with the coordinate position of the graphic base point; If the ordinate of the minimum coordinate position of the graphic entity is equal to the ordinate of the graphic base point, and the abscissa is greater than or equal to the abscissa of the graphic base point, then the minimum coordinate position of the graphic entity is defined as the graphic column base point, and all the found graphic column base points are grouped into a column base point set; Compare the coordinate position of each graphic column base point in the column base point set with the coordinate position of the graphic entity on the graphic column base point in turn; if the abscissa of the graphic entity is equal to the abscissa of the graphic column base point, and the ordinate of the graphic entity is greater than or equal to the ordinate of the graphic column base point, then identify the graphic entity identified on the graphic column base point as a target entity; Then traverse all the graphic entities in the drawing set to be printed, and compare the minimum coordinate position of the graphic entity with the coordinate position of the graphic base point; If the horizontal coordinate of the minimum coordinate position of the graphic entity is equal to the horizontal coordinate of the graphic base point, and the vertical coordinate is greater than or equal to the vertical coordinate of the graphic base point, then the minimum coordinate position of the graphic entity is defined as the graphic row base point, and all the found graphic row base points are combined into a row base point set; The coordinate position of each graphic row base point in the row base point set is compared with the coordinate position of the graphic entity on the graphic row base point in turn. If the longitudinal coordinate of the graphic entity is equal to the longitudinal coordinate of the graphic row base point, and the horizontal coordinate of the graphic entity is greater than or equal to the horizontal coordinate of the graphic row base point, then the graphic entity identified on the graphic row base point is identified as the target entity to form a split drawing.

4. The method for batch printing of drawings according to claim 1, characterized in that: The graphic parameters applicable to the split drawing also include the graphic attributes of the drawing; the graphic attributes of the drawing include object type, text value and block name of the graphic; The step of identifying the graphic parameters applicable to the split drawings, and splitting the drawings in the entire set of drawings to be printed using the graphic parameters applicable to the split drawings to identify the printing area of ​​each drawing, and forming the split drawings includes: Filtering out the graphic attributes of the corresponding drawing using a filter corresponding to the graphic attributes of the drawing; Filter the attribute reference set corresponding to the graphic attributes of the drawing according to the graphic attributes of the drawing; The coordinate range corresponding to the attribute reference set is found, and the area within the coordinate range is determined as the printing area.

5. The method for batch printing of drawings according to claim 1, characterized in that: Before the step of batch printing the split drawings, the batch printing method of drawings further includes: Batch identify signable areas in drawings and extract drawing information.

6. The method for batch printing of drawings according to claim 5, characterized in that: The steps of batch identifying the signable areas in the drawings and extracting the drawing information include: Recording the coordinates of a drawing information extraction box and a signature box in a drawing and the graphic base point of the drawing; Calculating the first relative coordinates of the coordinates of the drawing information extraction box and the graphic base point and the second relative coordinates of the coordinates of the signature box and the graphic base point; The graphic base points of the remaining drawings in the drawing set to be printed are added to the first relative coordinate and the second relative coordinate respectively to obtain the coordinates of the drawing information extraction box and the coordinates of the signature box of the remaining drawings in the drawing set to be printed.

7. A batch printing system for drawings, characterized in that: include: A loading module, used for loading a drawing set to be printed; the drawing set to be printed includes a plurality of drawings arranged in order of rows and columns; A splitting module, used for identifying graphic parameters applicable to split drawings, and splitting drawings in the entire set of drawings to be printed using the graphic parameters applicable to split drawings, so as to identify the printing area of ​​each drawing and form split drawings; The graphic parameters applicable to the split drawing include the graphic base points, graphic row base points and graphic column base points in the drawing, including: Acquire a graphic entity of each drawing from the set of drawings to be printed; the graphic entity has a maximum coordinate position and a minimum coordinate position for indicating a boundary range of the graphic entity; Among all graphic entities, find the graphic entity with the smallest minimum coordinate position; The minimum coordinate position of the graphic entity is defined as the graphic base point of the graphic entity; Continue to search for the graphic row base point and the graphic column base point in the order of row first and column later, or search for the graphic column base point and the graphic row base point in the order of column first and row later in the graphic entity, and obtain the target entity by traversing all the graphic base points and the graphic row base points or the graphic column base points and comparing them; According to the identified target entity, the printing ratio is calculated by length / width and compared with the size of the printing paper, and the printing area that meets the printing paper ratio is defined as the printing area of ​​the drawing; Batch printing module, used to batch print split drawings.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the batch printing method of the drawings described in any one of claims 1 to 6 is implemented.

9. A batch printing device for drawings, characterized in that: include: Processor and memory; The memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the batch printing device of drawings executes the batch printing method of drawings as claimed in any one of claims 1 to 6.