Summary of the invention
In view of this, the invention provides a kind of engineering drawing bulk print method and device,, personnel from manually freeing fully the print job one by one, have been reduced the print job amount to realize the bulk print of engineering drawing.
For achieving the above object, the invention provides following technical scheme:
A kind of engineering drawing bulk print method comprises step:
1) meets the assembly that meets print conditions in the file of print conditions or the assembly in the searching fold;
2) open described file or the described assembly that meets print conditions;
3) search meets the described file of print conditions or the map sheet in the described assembly, and identifies effective map sheet;
4) send the print command of printing this effective map sheet to printer.
Preferably, in above-mentioned engineering drawing bulk print method, before described step 1), also comprise step 01) the selective printing mode, this printing type comprises based on assembly to be printed and prints based on file.
Preferably, in above-mentioned engineering drawing bulk print method, if printing type be when printing based on assembly, described step 1) is to search for each assembly that meets print conditions in the assembly;
If printing type is when printing based on file, described step 1) is each file that meets print conditions in the searching fold.
Preferably, in above-mentioned engineering drawing bulk print method, between described step 3) and step 4), also comprise step 31) obtain the map sheet specification of this effective map sheet.
Preferably, in above-mentioned engineering drawing bulk print method, described step 4) is specially according to the corresponding logical printer of predefined and corresponding map sheet specification, sends print command to this logical printer, and this logical printer is to sending print command with its corresponding physical printer.
Preferably, in above-mentioned engineering drawing bulk print method, before printing effective map sheet, also comprise step 04) upgrade described effective map sheet according to the stereographic map in described file or the described assembly.
Preferably, in above-mentioned engineering drawing bulk print method, described step 1) is specially each assembly that meets print conditions in each file that meets print conditions in the searching fold or the assembly, and adds and print chained list.
A kind of engineering drawing bulk print device comprises:
First searches module, is used for searching fold and meets each assembly that meets print conditions in each file of print conditions or the assembly;
Read module is used to open the described file or the described assembly that meet print conditions;
Second searches module, is used for searching for the described file that meets print conditions or the map sheet of described assembly, and identifies effective map sheet;
Print module sends the print command of printing this effective map sheet to printer.
Preferably, in above-mentioned engineering drawing bulk print device, also comprise:
Identification module is used to discern the map sheet specification of described effective map sheet.
Preferably, in above-mentioned engineering drawing bulk print device, also comprise:
Update module is used for upgrading described effective map sheet according to the stereographic map of described file or described assembly.
From above-mentioned technical scheme as can be seen, engineering drawing bulk print method provided by the invention, by meeting the file of print conditions in the searching fold, perhaps search for the assembly that meets print conditions in the assembly, open the file or the assembly that meet print conditions then, file after search is opened or the map sheet in the assembly, and identify effective map sheet, send the print command of printing this effective map sheet to printer at last.The present invention can travel through son file in the file or the assembly in the assembly automatically, and search out file or the assembly that meets print conditions, after searching out the file or assembly that meets print conditions, also can travel through the file that meets print conditions or all map sheets in the assembly automatically, and identify effective map sheet, send the print command of printing this effective map sheet to printer then, printer just begins this effective map sheet is printed, until having printed all effective map sheets.The present invention can be after work or the time of having a rest print, made full use of printer resource, personnel from manually freeing fully the print job one by one, have been reduced the print job amount.
Embodiment
The invention discloses a kind of engineering drawing bulk print method and device,, personnel from manually freeing fully the print job one by one, have been reduced the print job amount to realize the bulk print of engineering drawing.
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
See also Fig. 1, the process flow diagram of the engineering drawing bulk print method that Fig. 1 provides for the embodiment of the invention.
Engineering drawing bulk print method provided by the invention comprises:
Step S11: search meets the file or the assembly of print conditions;
File in the traversal file to be printed folder or the assembly in the assembly, and search out the assembly that meets print conditions in the file that meets print conditions in the file or the assembly.Wherein the print conditions at file is whether the drawing file of preserving in this document folder is needs typescripts, the i.e. file of prt form.For example non-drawing file (as files such as word document or excel forms) need not to print.
Whether the print conditions at assembly is the needs typescripts for the assembly in this assembly.For example assemblies such as standard component (screw, bolt etc.), outsourcing piece, general part then need not to print.The present invention only searches file or the assembly that meets print conditions, skips the file or the assembly that do not meet print conditions.
Step S12: open file or assembly;
Open the file or the assembly that meet print conditions, meet in the All Files of print conditions and the assembly and all preserve some map sheets to be printed.
Step S13: search for effective map sheet;
Traversal after opening file or the map sheet in the assembly, and search the file that meets print conditions or the effective map sheet in the assembly, effective map sheet herein is the non-blank-white map sheet.
Step S14: send print command;
When finding out the file that meets print conditions or the effective map sheet in the assembly, just send the print command of printing this effective map sheet to printer, after printer interface is received this print command, just print this effective map sheet.
Engineering drawing bulk print method provided by the invention, by meeting the file of print conditions in the searching fold, perhaps search for the assembly that meets print conditions in the assembly, open the file or the assembly that meet print conditions then, file after search is opened or the map sheet in the assembly, and identify effective map sheet, send the print command of printing this effective map sheet to printer at last.The present invention can travel through son file in the file or the assembly in the assembly automatically, and search out file or the assembly that meets print conditions, after searching out the file or assembly that meets print conditions, also can travel through the file that meets print conditions or all map sheets in the assembly automatically, and identify effective map sheet, send the print command of printing this effective map sheet to printer then, printer just begins this effective map sheet is printed, until having printed all effective map sheets, continue again next file or the assembly printed in the chained list are similarly handled, finish until All Files or the assembly print processing that will print in the chained list.
UG/Open is the software secondary development interface that UG company provides, its API is the most frequently used secondary development tool of UG user, about 2000 C functions have been comprised, by calling these C functions, the user can set up, edits, inquires about and revise the various entity objects of UG, realize the mutual of user interface, realize most UG operation, exploitation user dedicated software tool etc.The present invention utilizes UG/Open to carry out the secondary development programming based on the UG software platform, on the PrintMaster system-based, carry out the function expansion, a kind of method that realizes the engineering drawing bulk print has been proposed, in batches all print out task are submitted to printing server, can be after work or the time of having a rest print, made full use of printer resource, personnel from manually freeing fully the print job one by one, have been reduced the print job amount.
See also Fig. 2, the process flow diagram of the engineering drawing bulk print method that Fig. 2 provides for another embodiment of the present invention.
The engineering drawing bulk print method based on the assembly printing that the embodiment of the invention provides comprises:
Step S201: selection mode;
Need before the printing printing type is selected,, then select step S203: based on the mode of file printing if drawing file to be printed is placed in the file; If when drawing file to be printed is the assembly file, then select step S202: based on the mode of assembly printing.
To print to example, then after step S201, also comprise based on assembly:
Step S2021: begin to travel through assembly tree;
Assembly to assembly lower floor travels through.
Step S2022: whether determination component meets print conditions, if meet print conditions, then carries out step S2023 and adds the printing chained list; If do not meet print conditions, then continue to judge whether next assembly meets print conditions.
Step S2024: judge whether to travel through all assemblies that finishes,, then carry out step S204 and finish the printing chained list if traversal finishes; If traversal does not finish, then return step S2022, until filtering out the assembly that all meet print conditions, and assemblies that all meet print conditions are added print chained list.
Step S205: begin traversal and print chained list.
Step S206: reading assembly, promptly open the assembly of printing in the chained list.
Step S207: read open map sheet number of pages N in the assembly.
Step S208: read successively open map sheet in the assembly.
Step S209: judge whether this map sheet is effective, if map sheet is effective, then execution in step S210 obtains map sheet specification size; If map sheet is invalid, then returns step S218 and read down one page map sheet.
Step S211: select logical printer automatically,, select its corresponding logical printer according to the map sheet specification of waiting to print map sheet.Promptly send print command to the corresponding logical printer of predefined and corresponding map sheet specification, this logical printer sends print command to predefined with it with respective logic printer corresponding physical printer.Automatic identification map sheet specification also prints on the corresponding printer or plotting apparatus, can avoid on the one hand map sheet with A3, A4 to print on the map sheet of A2~A0 of large-scale plotting apparatus, cause waste, on the other hand, the map sheet of guaranteeing A2~A0 can not print on the normal printer, causes the situation that does not have suitable paper and can't print or dwindle printing.
See also Fig. 3, the corresponding relation figure of the map sheet specification that Fig. 3 provides for the embodiment of the invention, logical printer, physical printer.
SDI PrintMaster is widely used a kind of engineering drawing print system of supporting multisystem, many printers/plotting apparatus product, it comprises SDI_PrintAdmin and two parts of SDI_Submit, SDI_PrintAdmin is mainly used in the corresponding logical printer of establishment and management and physical printer and prints style, and SDI_Submit promptly submits the man-machine interface of print out task to.In SDI PrintMaster print system, add A0 logical printer 21, A1 logical printer 22, A2 logical printer 23, A3 logical printer 24,25 5 logical printers of A4 logical printer by the PrintAdmin management tool, be respectively applied for the engineering drawing of printing A0~A4 specification, (be used to print the plotting apparatus 31 of big map sheet such as A0~A2 specification map sheet, it can be Oce TDS400 plotting apparatus for these logical printers and physical printer; Be used to print the printer 32 of little map sheets such as A3, A4 specification map sheet, it can be HP LaserJet 5200PCL) be many-to-one relation, with the engineering drawing that will print be man-to-man relation.The benefit of setting the logical printer of a correspondence for the map sheet of every kind of specification size is to control accurately page setups such as the paper that will print map sheet, margin, direction, color, ratio, resolution.
Step S212: upgrade and the printing of submission map sheet, upgrade effective map sheet according to the stereographic map in the opening assembly.
Step S213: judge that institute opens in the assembly all map sheets and whether prints and finish,, then return step S208 if do not finish; If finish, whether the assembly in the execution in step S214 judgement printing chained list travels through and finishes, if finish, then prints and finishes, and as if not finishing, then returns step S206.
In sum, the present invention can select to print based on assembly with based on two kinds of printing types of file by step S201 selective printing mode, prints in the mode that assembly form or file form exist to satisfy engineering drawing.If printing type be when printing based on assembly, then travel through each assembly that meets print conditions in the assembly, be when printing as if printing type based on file, then meet each file of print conditions in the traverse folder.
See also Fig. 4, the structural representation of the engineering drawing bulk print device that Fig. 4 provides for the embodiment of the invention.
Engineering drawing bulk print device provided by the invention comprises:
First searches module 1, is used for searching for each assembly that assembly meets print conditions;
Read module 2 is used to open the assembly that meets print conditions;
Second searches module 3, is used for searching for the map sheet of the assembly that meets print conditions, and identifies effective map sheet;
Print module 6 sends the print command of printing this effective map sheet to printer.
In order to optimize technique scheme, the present invention also can comprise:
Identification module 4 is used to discern the map sheet specification of effective map sheet;
Update module 5 is used for upgrading described effective map sheet according to the stereographic map of assembly.
See also Fig. 2, the process flow diagram of the engineering drawing bulk print method that Fig. 2 provides for another embodiment of the present invention.
The present invention executes the engineering drawing bulk print method based on the file printing that example provides, and comprising:
Step S201: selection mode;
Need before the printing printing type is selected,, then select step S203: based on the mode of file printing if drawing file to be printed is placed in the file; If when drawing file to be printed is the assembly file, then select step S202: based on the mode of assembly printing.
To print to example, then after step S201, also comprise based on file:
Step S2031: begin to travel through selected file;
File in the selected file is traveled through.
Step S2032: judge whether file meets print conditions,, then carry out step S2033 and add the printing chained list if meet print conditions; If do not meet print conditions, then continue to judge whether next file meets print conditions.
Step S2034: judge whether to travel through all files that finishes,, then carry out step S204 and finish the printing chained list if traversal finishes; If traversal does not finish, then return step S2032, until filtering out the file that all meet print conditions, and files that all meet print conditions are added print chained list.
Step S205: begin traversal and print chained list.
Step S206: open file.
Step S207: read the institute open file in map sheet number of pages N.
Step S208: read successively the map sheet in opening file.
Step S209: judge whether this map sheet is effective, if map sheet is effective, then execution in step S210 obtains the map sheet specification size of this map sheet; If map sheet is invalid, then returns step S218 and read down one page map sheet.
Step S211: select logical printer automatically,, select its corresponding logical printer according to the map sheet specification of map sheet.Promptly send print command to the corresponding logical printer of predefined and corresponding map sheet specification, this logical printer is to sending print command with its corresponding physical printer.Automatic identification map sheet specification also prints on the corresponding printer or plotting apparatus, can avoid on the one hand map sheet with A3, A4 to print on the map sheet of A2~A0 of large-scale plotting apparatus, cause waste, on the other hand, the map sheet of guaranteeing A2~A0 can not print on the normal printer, causes the situation that does not have suitable paper and can't print or dwindle printing.
See also Fig. 3, the corresponding relation figure of the map sheet specification that Fig. 3 provides for the embodiment of the invention, logical printer, physical printer.
SDI PrintMaster is widely used a kind of engineering drawing print system of supporting multisystem, many printers/plotting apparatus product, it comprises SDI_PrintAdmin and two parts of SDI_Submit, SDI_PrintAdmin is mainly used in the corresponding logical printer of establishment and management and physical printer and prints style, and SDI_Submit promptly submits the man-machine interface of print out task to.In SDI PrintMaster print system, add A0 logical printer 21, A1 logical printer 22, A2 logical printer 23, A3 logical printer 24,25 5 logical printers of A4 logical printer by the PrintAdmin management tool, be respectively applied for the engineering drawing of printing A0~A4 specification, (be used to print the plotting apparatus 31 of big map sheet such as A0~A2 specification map sheet, it can be Oce TDS400 plotting apparatus for these logical printers and physical printer; Be used to print the printer 32 of little map sheets such as A3, A4 specification map sheet, it can be HP LaserJet 5200PCL) be many-to-one relation, with the engineering drawing that will print be man-to-man relation.The benefit of setting the logical printer of a correspondence for the map sheet of every kind of specification size is to control accurately page setups such as the paper that will print map sheet, margin, direction, color, ratio, resolution.
Step S212: upgrade and also to submit to map sheet to print, according to the stereographic map in opening file upgrade effective map sheet.
Step S213: whether all map sheets were printed and are finished during judgement institute opened file, if do not finish, then returned step S208; If finish, whether the file in the execution in step S214 judgement printing chained list travels through and finishes, if finish, then prints and finishes, and as if not finishing, then returns step S206.
See also Fig. 4, the structural representation of the engineering drawing bulk print device that Fig. 4 provides for the embodiment of the invention.
Engineering drawing bulk print device provided by the invention comprises:
First searches module 1, is used for each file that searching fold meets print conditions;
Read module 2 is used to open the file that meets print conditions;
Second searches module 3, is used for searching for the map sheet of the file that meets print conditions, and identifies effective map sheet;
Print module 6 sends the print command of printing this effective map sheet to printer.
In order to optimize technique scheme, the present invention also can comprise:
Identification module 4 is used to discern the map sheet specification of effective map sheet;
Update module 5 is used for upgrading described effective map sheet according to the stereographic map that is opened file.
Each embodiment adopts the mode of going forward one by one to describe in this instructions, and what each embodiment stressed all is and the difference of other embodiment that identical similar part is mutually referring to getting final product between each embodiment.
To the above-mentioned explanation of the disclosed embodiments, make this area professional and technical personnel can realize or use the present invention.Multiple modification to these embodiment will be conspicuous concerning those skilled in the art, and defined herein General Principle can realize under the situation that does not break away from the spirit or scope of the present invention in other embodiments.Therefore, the present invention will can not be restricted to these embodiment shown in this article, but will meet and principle disclosed herein and features of novelty the wideest corresponding to scope.