Summary of the invention
The present invention is directed at least solve the problems, such as that it is time-consuming and laborious that engineering drawing existing in the prior art is handled.
In view of this, it is an object of the present invention to provide a kind of engineering drawing batch processing methods.
It is another object of the present invention to engineering drawing batch processing devices.
Yet another object of the invention is that computer readable storage medium.
To achieve the goals above, the technical solution of first aspect present invention provides a kind of engineering drawing batch processing method,
Include: step S1, receives the first command information, and file to be processed is obtained according to the first command information;Step S2, reception include
Second command information of file infix form to be processed and third command information comprising other print parameters;Step S3, builds
The working document of vertical blank, and file to be processed is inserted by working document according to the second command information and third command information
In, it is when the second command information is insertion block instruction, the graphic definition in file to be processed is blocking, and it is inserted into working document;
When the second command information be insertion referring to instruction when, file to be processed is moved under the file path of working document, and will be to
Figure in processing file is inserted into working document in the form of outer non-economic;Step S4 calls cad program print working document.
In the present solution, step S1, receives the first command information for corresponding to file selection, and obtain according to the first command information
Take file to be processed;Step S2 receives the second command information comprising file infix form to be processed and comprising other printings
The third command information of parameter, and determine that the second command information is insertion block instruction or insertion referring to instruction;Step S3 is established empty
White working document, and file to be processed is inserted into working document according to the second command information and third command information, tool
Body, it is the graphic definition in file to be processed is blocking and be inserted into working document when the second command information is insertion block instruction, this
Even if when file to be processed delete the figure nor affected in working document;When the second command information is insertion reference instruction,
File to be processed is moved under the file path of working document and the figure in file to be processed is inserted into work with outer non-economic
Make file, the modification of figure can be synchronized in working document in file to be processed at this time, if file to be processed is deleted, be worked
Corresponding figure is also deleted in file;Step S4 calls cad program print working document.
By the way that the inserted mode of two kinds of figures in file to be processed is arranged, suitable processing mode is selected convenient for user, is fitted
It is more preferable with property.Specifically, when user needs the figure by multiple files to be processed to carry out summarizing storage, it is selected as inserting block at this time
Afterwards convenient for deleting file to be processed, the quantity and the space occupied of file are reduced, is sealed up for safekeeping convenient for the backup of engineering drawing;Work as user
Still when the design phase needing in real time to correct engineering drawing, being selected as insertion at this time can be in the figure to file to be processed referring to after
Shape modify after in working document real-time display figure modification, use is more convenient, and user need not recycle batch processing, just
In raising working efficiency.
In the above-mentioned technical solutions, it is preferable that other print parameters include: insertion setting parameter, insertion setting parameter packet
Include at least one of insertion position, insertion angle, insertion ratio and the insertion unit of the figure in file to be processed.
In any of the above-described technical solution, it is preferable that other print parameters further include: parameter, text replacement is arranged in font
At least one of parameter and text insertion parameter;Wherein, font setting parameter includes font type, the word in working document
Body height, width factor and font color;Text alternative parameter includes the Alternate text of target text and target text;Text
This insertion parameter includes insertion position, font, height, width, color, spacing and the layer position of target text.
In any of the above-described technical solution, it is preferable that further include: step S5 determines the processing progress of file to be processed, and
Display corresponds to the progress msg of processing progress;Step S6 after the completion of printing, shows the directory information of the file to be processed of processing
And the storage information of working document.
The technical solution of second aspect of the present invention provides a kind of engineering drawing batch processing system, including file selectingmeans,
File selectingmeans obtain file to be processed for receiving the first command information, and according to the first command information;Reception device connects
Receiving apparatus is used to receive the second command information comprising file infix form to be processed and the third comprising other print parameters
Command information;Insertion apparatus, insertion apparatus are used to establish the working document of blank, and are referred to according to the second command information and third
Enable information that file to be processed is inserted into working document, it, will be in file to be processed when the second command information is insertion block instruction
Graphic definition it is blocking, and be inserted into working document;It is when the second command information is insertion reference instruction, file to be processed is mobile
Working document is inserted into the form of outer non-economic to the file path of working document, and by the figure in file to be processed;It beats
Printing equipment is set, and printing equipment is for calling cad program print working document.
In the above-mentioned technical solutions, it is preferable that other print parameters include: insertion setting parameter, insertion setting parameter packet
Include at least one of insertion position, insertion angle, insertion ratio and the insertion unit of the figure in file to be processed.
In any of the above-described technical solution, it is preferable that other print parameters further include: parameter, text replacement is arranged in font
At least one of parameter and text insertion parameter;Font setting parameter includes font type, font height in working document
Degree, width factor and font color;Text alternative parameter includes the Alternate text of target text and target text;Text is inserted
Enter insertion position, font, height, width, color, spacing and the layer position that parameter includes target text.
In any of the above-described technical solution, it is preferable that further include: progress display device, progress display device is for determining
The processing progress of file to be processed, and show the progress msg for corresponding to processing progress;Information display device, information display device
For after the completion of printing, showing the directory information of the file to be processed of processing and the storage information of working document.
The technical solution of third aspect present invention provides a kind of computer readable storage medium, computer-readable storage medium
It is stored with computer program in matter, the engineering in any technical solution of first aspect is realized when computer program is executed by processor
Figure batch processing method.
Additional aspect and advantage of the invention will become obviously in following description section, or practice through the invention
Recognize.
Specific embodiment
It is with reference to the accompanying drawing and specific real in order to be more clearly understood that the above objects, features and advantages of the present invention
Applying mode, the present invention is further described in detail.It should be noted that in the absence of conflict, the implementation of the application
Feature in example and embodiment can be combined with each other.
In the following description, numerous specific details are set forth in order to facilitate a full understanding of the present invention, still, the present invention may be used also
To be implemented using other than the one described here other modes, therefore, protection scope of the present invention is not by described below
Specific embodiment limitation.
According to some embodiments of the present invention referring to Fig. 1 and Fig. 2 description.
As shown in Figure 1, the embodiment of first aspect present invention provides a kind of engineering drawing batch processing method, comprising: step
S1 receives the first command information, and obtains file to be processed according to the first command information;Step S2, receiving includes text to be processed
Second command information of part infix form and third command information comprising other print parameters;Step S3, establishes blank
Working document, and file to be processed is inserted into working document according to the second command information and third command information, when second
It is when command information is insertion block instruction, the graphic definition in file to be processed is blocking, and it is inserted into working document;When the second instruction
When information is insertion reference instruction, file to be processed is moved under the file path of working document, and will be in file to be processed
Figure working document is inserted into the form of outer non-economic;Step S4 calls cad program print working document.
In the present solution, step S1, receives the first command information for corresponding to file selection, and obtain according to the first command information
Take the file to be processed under at least one file path;Step S2 receives the second instruction comprising file infix form to be processed
Information and third command information comprising other print parameters, and determine that the second command information is insertion block instruction or insertion ginseng
According to instruction;Step S3, establishes the working document of blank, and according to the second command information and third command information by text to be processed
Part be inserted into working document in, specifically, the second command information be insertion block instruction when, by the graphic definition in file to be processed at
Block is simultaneously inserted into working document, even if file to be processed deletes the figure nor affected in working document at this time;When the second instruction letter
Breath for insertion referring to instruction when, file to be processed is moved under the file path of working document and by the figure in file to be processed
Shape is inserted into working document with outer non-economic, and the modification of figure can be synchronized in working document in file to be processed at this time, if wait locate
It manages file to be deleted, then corresponding figure is also deleted in working document;Step S4 calls cad program print working document.
By the way that the inserted mode of two kinds of figures in file to be processed is arranged, suitable processing mode is selected convenient for user, is fitted
It is more preferable with property.Specifically, when user needs the figure by multiple files to be processed to carry out summarizing storage, it is selected as inserting block at this time
Afterwards convenient for deleting file to be processed, the quantity and the space occupied of file are reduced, is sealed up for safekeeping convenient for the backup of engineering drawing;Work as user
Still when the design phase needing in real time to correct engineering drawing, being selected as insertion at this time can be in the figure to file to be processed referring to after
Shape modify after in working document real-time display figure modification, use is more convenient, and user need not recycle batch processing, just
In raising working efficiency.
In the above embodiment, it is preferable that other print parameters include: insertion setting parameter, insertion setting parameter includes
At least one of insertion position, insertion angle, insertion ratio and insertion unit of figure in file to be processed.
In the present solution, insertion of the figure in working document in file to be processed can be adjusted by insertion setting parameter
Position, insertion angle, insertion ratio and insertion unit.
Wherein, default insertion point is X0Y0Z0, and insertion ratio is 1, and angle is 0 (not rotating), and insertion unit is millimeter.
In any of the above-described embodiment, it is preferable that other print parameters further include: parameter, text replacement ginseng is arranged in font
Several and text is inserted into parameter;Font setting parameter include font type in working document, font height, width factor and
Font color;Text alternative parameter includes the Alternate text of target text and target text;It includes target that text, which is inserted into parameter,
Insertion position, font, height, width, color, spacing and the layer position of text.
In the present solution, font setting parameter includes font type, font height, width factor and word in working document
Body color, font color refer to the indexed color of AutoCAD.Module default font name is Arial, and height is 1.5, width
The factor is 1, and font color is 0 (ater).
Text alternative parameter includes the Alternate text of target text and target text, convenient for text in file to be processed
Unified replacement.
Text insertion parameter includes insertion position, font, height, width, color, spacing and the figure layer position of target text
It sets.Content of text " can be a line pure words, also may include arithmetic sequence number.First of arithmetic sequence number is starting symbol,
Second is termination number, and third position is step-length.Such as " ISO-PI- (0,001 1,000 1) ", then it represents that starting symbol is 0001, is terminated
It number is 1000, step-length is 1;After module executes, it is inserted into " ISO-PI-0001 " in the 1st figure, " ISO- is inserted into the 2nd figure
PI-0002 " is inserted into the 3rd figure " ISO-PI-0003 ", etc. and so on, and " ISO-PI- is inserted into the 1000th figure
1000".Wherein, ISO is the abbreviation of International Organization for Standardization, represents engineering
Figure uses iso standard.PI is the abbreviation of piping and instrument diagram, i.e., the classification of engineering drawing is pipeline instrument
Table flow chart.
Further, other print parameters further include printer device name, style sheet, drawing size, print scale, printing model
It encloses, figure direction etc..Wherein, " printer " name in the module is extracted from CAD automatically, " style sheet " automatically from
It is extracted in CAD, " drawing " size is extracted from the drawing size that current printer is supported automatically;" print range " can for (X1,
Y1) (X2, Y2), wherein X1 Y1 is the X Y-coordinate in the drawing lower left corner, and X2 Y2 is the X Y-coordinate in the drawing upper right corner.
In any of the above-described embodiment, it is preferable that further include: step S5 determines the processing progress of file to be processed, and shows
Show the progress msg corresponding to processing progress;Step S6, after the completion of printing, show the directory information of the file to be processed of processing with
And the storage information of working document.
In the present solution, by step S4 and step S5, can when handling multiple files to be processed real-time display into
Information is spent, while after the completion of printing, showing the directory information of the file to be processed of processing and the storage information of working document, just
Next step operation is carried out in user.
As shown in Fig. 2, the embodiment of second aspect of the present invention provides a kind of engineering drawing batch processing system 200, comprising: text
Part selection device 202, file selectingmeans 202 are obtained according to the first command information wait locate for receiving the first command information
Manage file;Reception device 204, reception device 204 be used for receives include file infix form to be processed the second command information with
And the third command information comprising other print parameters;Insertion apparatus 206, insertion apparatus 206 are used to establish the work text of blank
Part, and file to be processed is inserted into working document according to the second command information and third command information, when the second instruction letter
It is when breath is is inserted into block instruction, the graphic definition in file to be processed is blocking, and it is inserted into working document;When the second command information is
When insertion is referring to instruction, file to be processed is moved under the file path of working document, and by the figure in file to be processed
Working document is inserted into the form of outer non-economic;Printing equipment 208, printing equipment 208 is for calling cad program print work text
Part.
In the present solution, file selectingmeans 202, which are used to receive, corresponds to the first command information that file selects, and according to the
One command information obtains file to be processed;Reception device 204 is used to receive the second instruction comprising file infix form to be processed
Information and third command information comprising other print parameters, and determine that the second command information is insertion block instruction or insertion ginseng
According to instruction;Insertion apparatus 206 is used to establish the working document of blank, and will according to the second command information and third command information
In file insertion working document to be processed, specifically, when the second command information is insertion block instruction, by the figure in file to be processed
Shape definition is blocking and is inserted into working document, even if file to be processed deletes the figure nor affected in working document at this time;When
Two command informations be insertion referring to instruction when, file to be processed is moved under the file path of working document and by text to be processed
Figure in part is inserted into working document with outer non-economic, and the modification of figure can be synchronized to working document in file to be processed at this time
In, if file to be processed is deleted, corresponding figure is also deleted in working document;Printing equipment 208 is for calling cad journey
Sequence print job file.
By the way that the inserted mode of two kinds of figures in file to be processed is arranged, suitable processing mode is selected convenient for user, is fitted
It is more preferable with property.Specifically, when user needs the figure by multiple files to be processed to carry out summarizing storage, it is selected as inserting block at this time
Afterwards convenient for deleting file to be processed, the quantity and the space occupied of file are reduced, is sealed up for safekeeping convenient for the backup of engineering drawing;Work as user
Still when the design phase needing in real time to correct engineering drawing, being selected as insertion at this time can be in the figure to file to be processed referring to after
Shape modify after in working document real-time display figure modification, use is more convenient, and user need not recycle batch processing, just
In raising working efficiency.
In the above embodiment, it is preferable that other print parameters include: insertion setting parameter, insertion setting parameter includes
At least one of insertion position, insertion angle, insertion ratio and insertion unit of figure in file to be processed.
In the present solution, insertion of the figure in working document in file to be processed can be adjusted by insertion setting parameter
Position, insertion angle, insertion ratio and insertion unit.
Wherein, default insertion point is X0Y0Z0, and insertion ratio is 1, and angle is 0 (not rotating), and insertion unit is millimeter.
In any of the above-described embodiment, it is preferable that other print parameters further include: parameter, text replacement ginseng is arranged in font
In several and text insertion parameter;Font setting parameter include font type in working document, font height, width factor with
And font color;Text alternative parameter includes the Alternate text of target text and target text;It includes mesh that text, which is inserted into parameter,
Mark insertion position, font, height, width, color, spacing and the layer position of text.
In the present solution, font setting parameter includes font type, font height, width factor and word in working document
Body color, font color refer to the indexed color of AutoCAD.Module default font name is Arial, and height is 1.5, width
The factor is 1, and font color is 0 (ater).
Text alternative parameter includes the Alternate text of target text and target text, convenient for text in file to be processed
Unified replacement.
Text insertion parameter includes insertion position, font, height, width, color, spacing and the figure layer position of target text
It sets.Content of text " can be a line pure words, also may include arithmetic sequence number.First of arithmetic sequence number is starting symbol,
Second is termination number, and third position is step-length.Such as " ISO-PI- (0,001 1,000 1) ", then it represents that starting symbol is 0001, is terminated
It number is 1000, step-length is 1;After module executes, it is inserted into " ISO-PI-0001 " in the 1st figure, " ISO- is inserted into the 2nd figure
PI-0002 " is inserted into the 3rd figure " ISO-PI-0003 ", etc. and so on, and " ISO-PI- is inserted into the 1000th figure
1000".Wherein, ISO is the abbreviation of International Organization for Standardization, represents engineering
Figure uses iso standard.PI is the abbreviation of piping and instrument diagram, i.e., the classification of engineering drawing is pipeline instrument
Table flow chart.
Further, other print parameters further include printer device name, style sheet, drawing size, print scale, printing model
It encloses, figure direction etc..Wherein, " printer " name in the module is extracted from CAD automatically, " style sheet " automatically from
It is extracted in CAD, " drawing " size is extracted from the drawing size that current printer is supported automatically;Can for (X1, Y1) (X2,
Y2), wherein X1 Y1 is the X Y-coordinate in the drawing lower left corner, and X2 Y2 is the X Y-coordinate in the drawing upper right corner.
In any of the above-described embodiment, it is preferable that engineering drawing batch processing system 200 further include: progress display device, progress
Display device is used to determine the processing progress of file to be processed, and shows the progress msg for corresponding to processing progress;Information is shown
Device, information display device are used for after the completion of printing, show the directory information and working document of the file to be processed of processing
Storage information.
In the present solution, progress display device can when handling multiple files to be processed real-time display progress msg,
After the completion of printing simultaneously, the directory information of the file to be processed of information display device display processing and the storage letter of working document
Breath carries out next step operation convenient for user.
The embodiment of third aspect present invention provides a kind of computer readable storage medium, computer readable storage medium
On be stored with computer program, the engineering drawing batch in first aspect any embodiment is realized when computer program is executed by processor
Processing method.
In the present solution, being able to achieve first party when the computer program on computer readable storage medium is executed by processor
Engineering drawing batch processing method in any embodiment of face, thus have all advantages of above-mentioned first aspect technical solution, herein
It repeats no more.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more,
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces
The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that can be by every in computer program instructions information realization flowchart and/or the block diagram
The combination of process and/or box in one process and/or box and flowchart and/or the block diagram.It can provide these computers
Program instruction information is to the place of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices
Device is managed to generate a machine, so that the instruction letter executed by computer or the processor of other programmable data processing devices
Breath generates to specify in one or more flows of the flowchart and/or one or more blocks of the block diagram
The device of function.
These computer program instructions information, which may also be stored in, is able to guide computer or other programmable data processing devices
In computer-readable memory operate in a specific manner, so that command information stored in the computer readable memory produces
Raw includes the manufacture of command information device, the command information device realize in one or more flows of the flowchart and/or
The function of being specified in one or more blocks of the block diagram.
These computer program instructions information also can be loaded onto a computer or other programmable data processing device, so that
Series of operation steps are executed on a computer or other programmable device to generate computer implemented processing, thus calculating
The command information that is executed on machine or other programmable devices provide for realizing in one or more flows of the flowchart and/or
The step of function of being specified in one or more blocks of the block diagram.
It should be noted that in the claims, any reference symbol between parentheses should not be configured to power
The limitation that benefit requires.Word "comprising" does not exclude the presence of component or step not listed in the claims.Before component
Word "a" or "an" does not exclude the presence of multiple such components.The present invention can be by means of including several different components
It hardware and is realized by means of properly programmed computer.In the unit claims listing several devices, these are filled
Several in setting, which can be, to be embodied by the same item of hardware.The use of word first, second, and third is not
Indicate any sequence.These words can be construed to title.