CN102495753A - Interactive computer-aided design (CAD) engineering drawing batch processing method - Google Patents

Interactive computer-aided design (CAD) engineering drawing batch processing method Download PDF

Info

Publication number
CN102495753A
CN102495753A CN2011103239519A CN201110323951A CN102495753A CN 102495753 A CN102495753 A CN 102495753A CN 2011103239519 A CN2011103239519 A CN 2011103239519A CN 201110323951 A CN201110323951 A CN 201110323951A CN 102495753 A CN102495753 A CN 102495753A
Authority
CN
China
Prior art keywords
file
cad
chart
batch processing
external reference
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2011103239519A
Other languages
Chinese (zh)
Other versions
CN102495753B (en
Inventor
张洁
沈敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
JSTI Group Co Ltd
Original Assignee
Jiangsu Transportation Research Institute Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jiangsu Transportation Research Institute Co Ltd filed Critical Jiangsu Transportation Research Institute Co Ltd
Priority to CN 201110323951 priority Critical patent/CN102495753B/en
Publication of CN102495753A publication Critical patent/CN102495753A/en
Application granted granted Critical
Publication of CN102495753B publication Critical patent/CN102495753B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses an interactive computer-aided design (CAD) engineering drawing batch processing method. The method comprises the following steps of: 1, setting an external reference or a block of a CAD format, wherein the external reference or the block is provided with a plurality of appointed object characteristics, and setting the attribute of the external reference by using Microsoft Excel; 2, opening an Auto-CAD program by calling; 3, reading a plurality of CAD file paths; 4, setting a printer, paper size and printing type; 5, traversing the external reference and the block in a first target file, judging whether a target external reference or a block exists, and if so, recording the name of the reference or the block and the attribute of an appointed object characteristic point, and storing the name of the reference or the block and the attribute of the appointed object characteristic point in a global variable radial basis function (RBF)-name and Position Point; 6, traversing the external reference and the block in a model space, judging whether the name accords with the RBF-name, and if the name accords with the RBF-name, recording the scale and coordinates of an insertion point, and storing the scale and the coordinates of the insertion point in a self-adaptive data structure Model Print Data; 7, reading set data, and according to the RBF-name, the Position Point and the Model Print Data, calculating the coordinates of a printing area and sending a printing command to the Auto-CAD; 8, closing and storing current files; and repeatedly performing the steps 3 to 8 until the last CAD file is operated.

Description

Interactive CAD of Hydro-machine engineering drawing batch processing method
Technical field
The present invention relates to the graphics process field, be specifically related to a kind of CAD engineering drawing batch processing method.
Background technology
Current most CAD and drawing assistant software can only print and work such as chart modification single file, and the process of batch processing can only be undertaken by the predefined data layout of method deviser, bad adaptability.The present invention provides a kind of Interactive CAD of Hydro-machine engineering drawing batch processing method, and this method has overcome above-mentioned defective, is a kind of instrument that can interactively accomplish picture frame insertion, drawing file, printing, chart modification and insert rectangle frame.The characteristics of this method mainly contain: (1) batch operation is simple, avoids a large amount of manually-operateds, very hommization; (2) integrated numerous alternative operating characteristic options are like options such as print paper, type style, chart compiling form, text styles; (3) this method friendly interface has adopted computing machine control commonly used, and like selector button (OptionButton), list box (ListBox) and combo box (ComboBox) etc., interactivity is strong; (4) utilize powerful data processing function of Microsoft Excel and operating characteristic easily, with its external interface as chart compiling form function, so chart to write adaptability strong, flexible operation; (5) the batch processing rectangle frame adds function provides and part batch processing printing interface function.
Goal of the invention
Revise these two loaded down with trivial details work of chart for the completion engineering drawing bulk print of simple and effective with adding, the present invention provides Interactive CAD of Hydro-machine engineering drawing batch processing method on the Auto-Cad workbench.
A technical scheme that realizes the object of the invention is:
Interactive CAD of Hydro-machine engineering drawing batch processing method comprises following treatment step:
Step 1 outer setting:
Step 1.1 is provided with the external reference or the piece TK.dwg of cad form; The TK.dwg content is a picture frame that is of a size of 420x297cm, wherein is provided with some appointed object characteristics;
Step 1.2 is provided with the external reference attribute with Microsoft Excel, and the external reference attribute comprises insertion frame control characteristic value, is specially insertion point co-ordinate, inserts picture frame number and insertion ratio;
Step 2 is opened the Auto-cad program through calling;
Step 3 reads a plurality of cad file paths, according in the file name "~" numeral of front is carried out ascending sort, and i cad file is changed to the work at present file, i=1,2,3 ... N, n are positive integer;
Step 4 is provided with printer, antiquarian and type style;
External reference and piece in first file destination of step 5 traversal have judged whether target external reference or piece; If find then write down the title of this reference or piece and appointed object unique point attribute wherein, be stored among global variable RBF-name and the PositionPoint; If do not find then provide prompting, jump out function;
External reference and piece in the step 6 traversal model space judge whether its title is consistent with RBF-name, if consistent, then write down its ratio, insertion point co-ordinate, are stored among the self-defining data structure ModelPrintData;
Step 7 batch processing picture frame inserts: from the external reference attribute, read external reference attribute settings, in current cad file, insert external reference or piece TK.dwg; If inserted TK.dwg among the figure, this step can skip;
Step 8 drawing batch processing:
Step 8.1 batch processing is printed: in the read step 4 data are set, calculate the print area coordinate according to RBF-name, PositionPoint and ModelPrintData, send print command to Auto-cad; Close, preserve current file; Repeating step 3~step 8 is until last cad file.
As further improvement of the present invention, characteristics of objects is in the said step 11: the 3rd polyline that color is No. 111 first straight line, second straight line that color is No. 222, color is No. 99 and color are No. 66 the 4th polyline.
As further improvement of the present invention, the title that newly creates layer also comprising in the said step 4 and the new color of creating rectangle number; Further comprise that step 8.0 batch processing rectangle frame adds before the said step 8.1: read newly create layer title and the new color of creating rectangle number, in current cad file, create rectangle with regulation attribute.
As further improvement of the present invention, also comprise chart compiling form control data in the said step 1.2, be specially the prefix and the suffix of chart, initial figure number and table number; Also further comprise font name, word height, figure number width ratio and table number width ratio that the chart literal is set in the said step 4; Said step 8 comprises that further step 8.2 batch processing chart is revised and interpolation:
Step 8.2.1 reads font name, word height, figure number width ratio and the table number width ratio of chart literal; From chart compiling form control data, read chart compiling form control data, calculate table number and figure number insertion point co-ordinate according to RBF-name, PositionPoint and ModelPrintData;
Step 8.2.2 judges that figure number and the 3 times of word height in table number insertion position multiply by the insertion proportional range, if find literal, then delete; If do not find literal, in current cad file, revise or insert chart.
As further improvement of the present invention, also comprise chart compiling form control data in the said step 1.2, be specially the prefix and the suffix of chart, initial figure number and table number; Further comprise in the said step 4 and set file title prefix; Said step 8 comprises that further the batch processing drawing files: according to file title prefix, from chart compiling form control data, read chart compiling form control data, write figure number and table number to current cad file.
As further improvement of the present invention, said step 8 further comprises step 8.3 batch processing drawing file step, and said batch processing drawing file step specifically comprises:
If step 8.3.1 " chart zone " is empty, then with " file title prefix n original file name " (n ∈ N *) deposit current file in addition for title, the path is an original route;
If " chart zone " in the step 8.3.2 program interface is not empty; External reference and piece in the traversal current file; Judge and write down the number m of satisfactory external reference and piece; According to " chart zone " this document in the program interface to should figure number " x1 page or leaf " and " file title prefix " text box in content, with " file title prefix the x1~x1+m page or leaf " (m ∈ N *) deposit this document in addition for title, the path is an original route.
The present invention compared with prior art mainly contains mass and open two big characteristics, has following technique effect:
1) bulk print engineering drawing, interpolation modification engineering drawing chart and the greatly daily engineering drawing work of treatment of simplification of degree of batch processing drawing file function in batches, speed is fast, accuracy is high.
2) the batch process user oriented has been opened a lot of parameters, and adaptation of methods property is good.
3) the batch processing picture frame inserts the deficiency that function has remedied current batch processing Method of printing, and this function has avoided inserting the loaded down with trivial details engineering of external reference picture frame, has improved the work efficiency of batch processing, for an express passway has been set up in the operation of drawing mass.
4) this method provide with part batch processing Method of printing interface function, further expanded the function of this method, for the user provides more selections, make things convenient for the user simultaneously.
Description of drawings
Fig. 1 is master's method flow diagram of the present invention;
Fig. 2 is the batch processing of the present invention method flow diagram of sealing;
Fig. 3 is that batch processing chart of the present invention generates the submethod process flow diagram;
Fig. 4 is a batch processing drawing file submethod process flow diagram of the present invention;
Fig. 5 is that batch processing picture frame of the present invention inserts the submethod process flow diagram;
Fig. 6 is that batch processing rectangle frame of the present invention inserts the submethod process flow diagram;
Fig. 7 is chart pattern of the present invention control table;
Fig. 8 inserts frame control characteristic value chart;
Fig. 9 is the feature object figure in the picture frame of external reference or piece.
Embodiment
Specify below in conjunction with accompanying drawing and embodiment.
Interactive CAD of Hydro-machine engineering drawing batch processing method comprises
Step 1 is provided with external reference or piece TK.dwg;
TK.dwg is the key that entire method realizes; TK.dwg is a picture frame that is of a size of 420x297cm; Wherein be provided with 4 feature objects, these four feature objects are: 1 color is No. 111 a straight line (Line1), and 1 color is No. 222 a straight line (Line2); Article one, color is the polyline (Line4) that No. 99 polyline (Line3) and color is No. 66, like Fig. 9.These four object positions in picture frame can be specified arbitrarily by the user.The terminal point EndP coordinate of record line1 and the starting point StrP coordinate of line2 are as print area.First P1 of record line3 and P3 coordinate thirdly are with the mid point of these two the some lines insertion point as table number.The 1st P1 of point, thirdly P3, the 4th P4 and the 7th P7 coordinate of record line4; With the mid point of first P1 and the 3rd P3 point line insertion point, with the mid point of the 4th P4 and the 7th P7 line insertion point as figure number " page or leaf altogether " as figure number " the page ".
Step 2.1 is filled in according to Fig. 8 form and is inserted the picture frame characteristic value, and data in the reconstructed chart 8 are preserved the picture frame characteristic value to TuKuangValue (usedata1 type).The usedata1 type is a self-defining variable, is made up of xzuobiao (double type), yzuobiao (double type), geshu (int type) and bili (long type).
This step relates to from the implementation procedure of Microsoft Excel reading of data; This is a kind of main mode that the present invention realizes interactive batch processing; That is: in Microsoft Excel, write the external reference attribute, as shown in Figure 8, supply the subsequent step method to read and quote.Illustrate: read data among Fig. 8 at present; Data are with will be like table 1 format in clipbook then, and first, second and third of each row is recorded among TuKuangValue (i) .xzuobiao, TuKuangValue (i) .yzuobiao, TuKuangValue (i) .geshu and TuKuangValue (i) .value with four column data.
Table 1
0 Column Cata Format 0 Column Cata Format 2 Column Cata Format 2 Line Separator
1000 Column Cata Format 1000 Column Cata Format 3 Column Cata Format 5 Line Separator
1001 Column Cata Format 2000 Column Cata Format 4 Column Cata Format 6 Line Separator
1002 Column Cata Format 3000 Column Cata Format 5 Column Cata Format 7 Line Separator
1003 Column Cata Format 4000 Column Cata Format 6 Column Cata Format 8 Line Separator
1004 Column Cata Format 5000 Column Cata Format 7 Column Cata Format 9 Line Separator
1005 Column Cata Format 6000 Column Cata Format 8 Column Cata Format 10 Line Separator
1006 Column Cata Format 7000 Column Cata Format 9 Column Cata Format 11 Line Separator
1007 Column Cata Format 8000 Column Cata Format 10 Column Cata Format 12 Line Separator
1008 Column Cata Format 9000 Column Cata Format 11 Column Cata Format 13 Line Separator
1009 Column Cata Format 10000 Column Cata Format 12 Column Cata Format 14 Line Separator
1010 Column Cata Format 11000 Column Cata Format 13 Column Cata Format 15 Line Separator
Step 2.2 is as shown in Figure 5, reads the insertion characteristic value, if should value not be empty; Method is at the model space of current cad file and (TuKuangValue (i) .xzuobiao+420*scale*j of paper space; TuKuangValue (i) .yzuobiao) (j=0,1 ... TuKuangValue (i) .GeShu-1) insert " TK.dwg ", ratio is TuKuangValue (i) .scale.If this numerical value is empty, with successively the file in each print file list box being inserted " TK.dwg " at (0,0) of the model space and paper space point, ratio is 1.If inserted TK.dwg in advance, then this step can skip.
Step 3.1 printing step, as shown in Figure 2.
Step 3.1.1 reads print out equipment name, paper disc size and type style.
This method is supported Auto-cad2007, and print out equipment can be the entity printer, also can be the path of appointment, if specified path, then print result is a pdf document.Provide the paper disc size of standard selective; Provide in the current computer operational cad type style selective.
External reference and piece in the step 3.1.2 traversal current file; If wherein can find four feature objects (indispensable) among the TK.dwg; First P1 of the starting point StrP coordinate of record line1 terminal point EndP coordinate, line2, line3 and first P1 of point of the 3rd P3 point coordinate and line4, thirdly P3, the 4th P4 and the 7th P7 coordinate are saved among the variable PositionPoint (15) (double type).The name of record external reference or piece is in RBF-name (string type).
PositionPoint(0)=-line1.EndP(x):PositionPoint(1)=-line1.EndP(y)
PositionPoint(2)=-line2.StrP(x):PositionPoint(3)=-line2.StrP(y)
PositionPoint(4)=-line3.P1(x):PositionPoint(5)=-line3.P1(y)
PositionPoint(6)=-line3.P3(x):PositionPoint(7)=-line3.P3(y)
PositionPoint(8)=-line4.P1(x):PositionPoint(9)=-line4.P1(y)
PositionPoint(10)=-line4.P3(x):PositionPoint(11)=-line4.P3(y)
PositionPoint(12)=-line4.P4(x):PositionPoint(13)=-line4.P4(y)
PositionPoint(14)=-line4.P7(x):PositionPoint(15)=-line4.P7(y)
External reference or piece in the step 3.1.3 traversal current file in the model space if name is called RBF-name, then write down its ratio and insertion point, are kept among the ModelPrintData (usedata2 type).Usedata2 is a self-defining data, is made up of xx (double type), yy (double type) and bili (long type).
ModelPrintData (i) .xx=insertion point x coordinate: ModelPrintData (i) .yy=insertion point y coordinate ModelPrintData (i) .bili=inserts ratio i=1, and 2 ...
Computation model space print range coordinate:
The following some x coordinate in the left side of print window is:
ModelPrintData(i).xx+PositionPoint(0)*ModelPrintData(i).bili;
The following some y coordinate in the left side of print window is:
ModelPrintData(i).yy+PositionPoint(1)*ModelPrintData(i).bili;
Upper right some x coordinate of print window is:
ModelPrintData(i).xx+PositionPoint(2)*ModelPrintData(i).bil;
Upper right some y coordinate of print window is:
ModelPrintData(i).yy+PositionPoint(3)*ModelPrintData(i).bili;
I is the external reference of model space insertion or the number of piece.
Send print command to Atuo-cad, accomplish the model space and print.
In like manner accomplishing paper space prints.
Step 4.1 is revised the chart step, and is as shown in Figure 3.
Step 4.1.1 reads chart font, word height, page number width ratio and figure number width ratio.
Step 4.1.2 is as shown in Figure 7; Filling in " preparation data field " (be I~M row, 4 is capable to n) that figure number begins number of pages and total number of pages, table number prefix form, the current file table number of drawing begins number of pages and table number total page number, (is that O~U is listed as in " pattern control zone "; 4 is capable to n) fill in figure number prefix, figure number suffix, table number prefix; " data output area " (be W~Y row, 4 to n is capable), generate the data of the chart compiling form that is used to control automatically.Use " * " as the table number separator, so that " " form is deposited control data to prefix * numeral * suffix.As SIV-3 (* 1*/3) wherein " SIV-3 (" is a prefix sign, and " 1 " begins sequence number for the current file table number, "/3) " be suffix; Use " " as the figure number separator, so that " " form is deposited the figure number control data to the prefix number suffix.Like " the 11st~11 page ", wherein " the " be prefix sign, " 11 " begin sequence number for the current file figure number, and " page or leaf " is suffix.
Step 4.1.3 duplicates data in " data output area ", according to " chart zone " data layout, obtains prefix, control data and suffix respectively; Obtain each file map table number compiling form data; Like the x1 page or leaf, be total to the x2 page or leaf, SIV-3 (* x3*/x4); Preserve x1, x2, x3 and x4 at TuBiaoData, call after being provided with.
Step 4.1.2 and 4.1.3 revise in the figure grade step the main process of carrying out data transfer with MicrosoftExcel, and concrete implementation procedure is with step 2.1.
Step 4.1.4 is with step 3.1.2
Step 4.1.5 is with step 3.1.3
Step 4.1.6 computation model space diagram table number insertion point co-ordinate:
Table number insertion point x coordinate is:
ModelPrintData(i).xx+(PositionPoint(4)+PositionPoint(6))/2*ModelPrintData(i).bili;
Table number insertion point y coordinate is:
ModelPrintData(i).yy+(PositionPoint(5)+PositionPoint(7))/2*ModelPrintData(i).bili;
Figure number (page) insertion point x coordinate is:
ModelPrintData(i).xx+(PositionPoint(8)+PositionPoint(10))/2*ModelPrintData(i).bili;
Figure number (page) insertion point y coordinate is:
ModelPrintData(i).yy+(PositionPoint(9)+PositionPoint(11))/2*ModelPrintData(i).bili;
Figure number (page or leaf altogether) insertion point x coordinate is:
ModelPrintData(i).xx+(PositionPoint(12)+PositionPoint(14))/2*ModelPrintData(i).bili;
Figure number (page or leaf altogether) insertion point y coordinate is:
ModelPrintData(i).yy+(PositionPoint(13)+PositionPoint(15))/2*ModelPrintData(i).bili;
I is the external reference of model space insertion or the number of piece.
Existing is example key diagram table number modification process with first file of Fig. 7:
The figure number open numbering of current file is 11, and 123 pages altogether in drawing, the table number open numbering is 1, the figure number prefix is " SIV-3 (", the figure number suffix is "/3) ".
There is ordering because revise chart, requires external reference or piece to arrange with x coordinate ascending order in the drawings.
Before adding figure number and table number, judge that at first 3 times of word height of figure number and table number insertion position multiply by the insertion proportional range; If discovery literal; Then delete; If do not find literal, set pattern in first external reference of the current file model space or position, piece table number insertion point and position, figure number insertion point according to 4.1.1 and write table number SIV-3 (1/4), the 11st page totally 123 pages of figure numbers.
Position, table number insertion point and position, figure number insertion point are set pattern according to 4.11 and are write table number SIV-3 (2/4), the 12nd page totally 123 pages of figure numbers in next external reference or piece.
And the like, write SIV-3 (3/4), the 13rd page totally 123 pages of figure numbers in last external reference or the piece to the current file model space.
The current file paper space is along connecing model space table number and figure number serialization.Being initiated with of paper space chart, SIV-3 (4/4), the 14th page totally 123 pages of figure numbers, other processes are with the model space.
Writing of all the other cad file map table numbers accomplished in setting according to accomplishing among ModelPrintData, PositionPoint and TuBiaoData and the step 4.1.1 successively.
Two important step are arranged in the ablation process:
(1) before adding figure number and table number, judges that at first 3 times of word height of figure number and table number insertion position multiply by the insertion proportional range,, then delete,, write table number and figure number in the insertion position if do not find literal if find literal.This step is the prerequisite that realizes that the chart modification is upgraded.
(2) chart of drawing is the chart back that is connected on drawing in the model space in the paper space, and chart writes 4 data accomplishing in the record last page drawing of back, the initial data of confession paper space chart in the model space.
Step 5 batch processing drawing file step
Step 5.1 reads file title prefix.
If step 5.2 " chart zone " be a sky, the content in " file title prefix " text box then is with " file title prefix n original file name " (n=1,2,3 ...) title deposits current file in addition, the path is an original route.Like chart 7; For example the content in " file title prefix " text box is an xx provincial highway xx bridge working drawing; Name after then this document is deposited in addition is called " xx provincial highway xx bridge working drawing 1 foundation pile coordinate complete list ", " xx provincial highway xx bridge working drawing 2 pier unique point elevation complete lists " ...
If " chart zone " in step 5.3 interface is not empty; The number m of satisfactory external reference and piece is judged and write down to external reference and the piece of traversal in the current file, according to " chart zone " middle this document to should figure number " x1 page or leaf " and " file title prefix " text box in content; With " file title prefix the x1~x1+m page or leaf " (n=1; 2,3 ...) title deposits this document in addition, the path is an original route.Like Fig. 7,4 satisfactory external references are arranged in first file, m=4, reading " file title prefix " is " xx provincial highway xx bridge working drawing ", the name after then this document is deposited in addition is called " the 11st~14 page of xx provincial highway xx bridge working drawing ".The detailed process that realizes is seen Fig. 4.
Step 6 is added processing rectangle frame step
Step 6.1 reads figure layer title and rectangle frame color.
Figure layer title supplies newly-built figure layer to use, and stored target rectangle frame only in this figure layer also can not specified figure layer title, and method is created target rectangle with current layer.
The rectangle frame color is a look number, is used to specify the color of rectangle frame.
Step 6.2.1 is with step 3.1.2;
Step 6.2.2 is with step 3.1.3;
The unique point of step 6.2.3 rectangle, computing method are with step 3.1.4.The unique point of the print window of assumed calculation be (x1, y1), (x2, y2).
Create create name figure layer, with unique point (x1, y1), (x2, y1), (x2, y2), (x1 is y2) with (x1 y1) creates the multistage line, and color is a designated color.
The detailed process that realizes is seen Fig. 6.

Claims (6)

1. Interactive CAD of Hydro-machine engineering drawing batch processing method is characterized in that, this method comprises following treatment step:
Step 1 outer setting:
Step 1.1 is provided with the external reference or the piece TK.dwg of cad form; The TK.dwg content is a picture frame that is of a size of 420x297cm, wherein is provided with some appointed object characteristics;
Step 1.2 is provided with the external reference attribute with Microsoft Excel, and the external reference attribute comprises insertion frame control characteristic value, is specially insertion point co-ordinate, inserts picture frame number and insertion ratio;
Through calling, open the Auto-cad program;
Read a plurality of cad file paths, according in the file name " ~ " numeral of front is carried out ascending sort, and i cad file is changed to the work at present file, i=1,2,3 ... N, n are positive integer;
Printer, antiquarian and type style are set;
Travel through external reference and piece in first file destination, judged whether target external reference or piece; If find then write down the title of this reference or piece and appointed object unique point attribute wherein, be stored among global variable RBF-name and the PositionPoint; If do not find then provide prompting, jump out function;
External reference and piece in the traversal model space judge whether its title is consistent with RBF-name, if consistent, then write down its ratio, insertion point co-ordinate, are stored among the self-defining data structure ModelPrintData;
The batch processing picture frame inserts: from the external reference attribute, read external reference attribute settings, in current cad file, insert external reference or TK.dwg; If inserted TK.dwg among the figure, this step can skip;
The drawing batch processing:
Step 8.1 batch processing is printed: in the read step 4 data are set, calculate the print area coordinate according to RBF-name, PositionPoint and ModelPrintData, send print command to Auto-cad; Close, preserve current file;
Repeating step 3 ~ step 8 is until last cad file.
2. Interactive CAD of Hydro-machine engineering drawing batch processing method according to claim 1; It is characterized in that characteristics of objects is in the said step 1.1: the 3rd polyline that color is No. 111 first straight line, second straight line that color is No. 222, color is No. 99 and color are No. 66 the 4th polyline.
3. Interactive CAD of Hydro-machine engineering drawing batch processing method according to claim 1 is characterized in that, the title that newly creates layer also comprising in the said step 4 and the new color of creating rectangle number; Further comprise that step 8.0 batch processing rectangle frame adds before the said step 8.1: read newly create layer title and the new color of creating rectangle number, in current cad file, create rectangle with regulation attribute.
4. Interactive CAD of Hydro-machine engineering drawing batch processing method according to claim 1 is characterized in that, also comprises chart compiling form control data in the said step 1.2, is specially the prefix and the suffix of chart, initial figure number and table number; Also further comprise font name, word height, figure number width ratio and table number width ratio that the chart literal is set in the said step 4; Said step 8 comprises that further step 8.2 batch processing chart is revised and interpolation:
Step 8.2.1 reads font name, word height, figure number width ratio and the table number width ratio of chart literal; From chart compiling form control data, read chart compiling form control data, calculate table number and figure number insertion point co-ordinate according to RBF-name, PositionPoint and ModelPrintData;
Step 8.2.2 judges that figure number and the 3 times of word height in table number insertion position multiply by the insertion proportional range, if find literal, then delete; If do not find literal, in current cad file, revise or insert chart.
5. Interactive CAD of Hydro-machine engineering drawing batch processing method according to claim 1 is characterized in that, also comprises chart compiling form control data in the said step 1.2, is specially the prefix and the suffix of chart, initial figure number and table number; Further comprise in the said step 4 and set file title prefix; Said step 8 comprises that further the batch processing drawing files: according to file title prefix, from chart compiling form control data, read chart compiling form control data, write figure number and table number to current cad file.
6. Interactive CAD of Hydro-machine engineering drawing batch processing method according to claim 1 is characterized in that, said step 8 further comprises step 8.3 batch processing drawing file step, and said batch processing drawing file step specifically comprises:
If step 8.3.1 " chart zone " is empty, is that title is deposited current file in addition with " file title prefix n original file name " then, the path is an original route, wherein n ∈ N*;
If " chart zone " in the step 8.3.2 program interface is not empty; External reference and piece in the traversal current file; Judge and write down the number m of satisfactory external reference and piece, according to " chart the is regional " this document in the program interface to should figure number " x1 page or leaf " and " file title prefix " text box in content, be that title is deposited this document in addition with " file title prefix the x1 ~ x1+m page or leaf "; The path is an original route, wherein m ∈ N*.
CN 201110323951 2011-10-21 2011-10-21 Interactive computer-aided design (CAD) engineering drawing batch processing method Active CN102495753B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201110323951 CN102495753B (en) 2011-10-21 2011-10-21 Interactive computer-aided design (CAD) engineering drawing batch processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110323951 CN102495753B (en) 2011-10-21 2011-10-21 Interactive computer-aided design (CAD) engineering drawing batch processing method

Publications (2)

Publication Number Publication Date
CN102495753A true CN102495753A (en) 2012-06-13
CN102495753B CN102495753B (en) 2013-10-23

Family

ID=46187580

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110323951 Active CN102495753B (en) 2011-10-21 2011-10-21 Interactive computer-aided design (CAD) engineering drawing batch processing method

Country Status (1)

Country Link
CN (1) CN102495753B (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102830979A (en) * 2012-08-30 2012-12-19 江苏省交通科学研究院股份有限公司 CAD (computer-aided design) drawing information batch processing method based on ObjectArx
CN103793145A (en) * 2014-02-21 2014-05-14 湖南省交通规划勘察设计院 Drawing frame parameter identification and drawing output method based on autoCAD
CN104281727A (en) * 2014-06-04 2015-01-14 河南金牌山模具有限公司 Method for designing tire die on basis of Excel and CAD (computer aided design) platform
CN106873922A (en) * 2017-01-20 2017-06-20 株洲中车机电科技有限公司 The batch order Method of printing and device of a kind of CAD diagram paper
CN107168659A (en) * 2017-06-21 2017-09-15 百望电子发票数据服务有限公司 A kind of method and system of bulk print layout files
CN108305304A (en) * 2018-02-28 2018-07-20 灵宝金源矿业股份有限公司 A kind of batch record point methods for drawing engineering sectional view
CN109741417A (en) * 2018-11-19 2019-05-10 西安中线软件技术有限公司 A kind of generation method of graphic file, calculates equipment and storage medium at device
CN110471890A (en) * 2019-07-02 2019-11-19 中国石油工程建设有限公司北京设计分公司 Engineering drawing batch processing method, engineering drawing batch processing system and computer media
CN111291541A (en) * 2020-03-03 2020-06-16 山东省交通规划设计院有限公司 Method and system for realizing rapid publishing of drawing catalog based on EXCEL
CN111737785A (en) * 2020-06-24 2020-10-02 广州优比建筑咨询有限公司 Revit and CAD data interaction method, device and system
CN111813750A (en) * 2020-06-25 2020-10-23 刘坤 CAD collaborative software funding and binding method
CN113190192A (en) * 2020-11-28 2021-07-30 刘坤 Batch printing method of CAD drawings
CN113282281A (en) * 2021-05-31 2021-08-20 中国电建集团青海省电力设计院有限公司 AutoCAD drawing batch processing method
CN116303252A (en) * 2023-05-18 2023-06-23 北京探索者软件股份有限公司 Format conversion method and device for DWG file, storage medium and electronic device
CN116383911A (en) * 2023-04-18 2023-07-04 华联世纪工程咨询股份有限公司 Automatic graph cutting method based on CAD drawing

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030046422A1 (en) * 2001-09-04 2003-03-06 Ravi Narayanan Object-oriented routing
JP2003271436A (en) * 2002-03-18 2003-09-26 Hitachi Ltd Data processing method, data processing device and data processing program
CN101587428A (en) * 2009-04-08 2009-11-25 广州中船黄埔造船有限公司 Method for printing drawing paper with AutoCAD format in batch
CN102063526A (en) * 2010-12-18 2011-05-18 江苏省交通科学研究院股份有限公司 Automatic batch processing method of CAD (Computer-Aided Design) drawings

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030046422A1 (en) * 2001-09-04 2003-03-06 Ravi Narayanan Object-oriented routing
JP2003271436A (en) * 2002-03-18 2003-09-26 Hitachi Ltd Data processing method, data processing device and data processing program
CN101587428A (en) * 2009-04-08 2009-11-25 广州中船黄埔造船有限公司 Method for printing drawing paper with AutoCAD format in batch
CN102063526A (en) * 2010-12-18 2011-05-18 江苏省交通科学研究院股份有限公司 Automatic batch processing method of CAD (Computer-Aided Design) drawings

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102830979A (en) * 2012-08-30 2012-12-19 江苏省交通科学研究院股份有限公司 CAD (computer-aided design) drawing information batch processing method based on ObjectArx
CN102830979B (en) * 2012-08-30 2015-12-16 江苏省交通科学研究院股份有限公司 based on the CAD drawing information batch processing method of ObjectArx
CN103793145A (en) * 2014-02-21 2014-05-14 湖南省交通规划勘察设计院 Drawing frame parameter identification and drawing output method based on autoCAD
CN103793145B (en) * 2014-02-21 2016-09-07 湖南省交通规划勘察设计院 A kind of modifying picture frame parameters identification based on AutoCAD and drawing output intent
CN104281727A (en) * 2014-06-04 2015-01-14 河南金牌山模具有限公司 Method for designing tire die on basis of Excel and CAD (computer aided design) platform
CN106873922B (en) * 2017-01-20 2020-04-10 株洲中车机电科技有限公司 Batch sequential printing method and device for CAD drawings
CN106873922A (en) * 2017-01-20 2017-06-20 株洲中车机电科技有限公司 The batch order Method of printing and device of a kind of CAD diagram paper
CN107168659A (en) * 2017-06-21 2017-09-15 百望电子发票数据服务有限公司 A kind of method and system of bulk print layout files
CN108305304A (en) * 2018-02-28 2018-07-20 灵宝金源矿业股份有限公司 A kind of batch record point methods for drawing engineering sectional view
CN109741417A (en) * 2018-11-19 2019-05-10 西安中线软件技术有限公司 A kind of generation method of graphic file, calculates equipment and storage medium at device
CN109741417B (en) * 2018-11-19 2023-06-27 西安中线软件技术有限公司 Method and device for generating graphic file, computing equipment and storage medium
CN110471890A (en) * 2019-07-02 2019-11-19 中国石油工程建设有限公司北京设计分公司 Engineering drawing batch processing method, engineering drawing batch processing system and computer media
CN111291541A (en) * 2020-03-03 2020-06-16 山东省交通规划设计院有限公司 Method and system for realizing rapid publishing of drawing catalog based on EXCEL
CN111291541B (en) * 2020-03-03 2023-04-25 山东省交通规划设计院集团有限公司 Method and system for realizing rapid publishing of drawing catalogue based on EXCEL
CN111737785B (en) * 2020-06-24 2021-04-02 广州优比建筑咨询有限公司 Data interaction method, device and system of Revit and AutoCAD
CN111737785A (en) * 2020-06-24 2020-10-02 广州优比建筑咨询有限公司 Revit and CAD data interaction method, device and system
CN111813750A (en) * 2020-06-25 2020-10-23 刘坤 CAD collaborative software funding and binding method
CN113190192A (en) * 2020-11-28 2021-07-30 刘坤 Batch printing method of CAD drawings
CN113282281A (en) * 2021-05-31 2021-08-20 中国电建集团青海省电力设计院有限公司 AutoCAD drawing batch processing method
CN116383911A (en) * 2023-04-18 2023-07-04 华联世纪工程咨询股份有限公司 Automatic graph cutting method based on CAD drawing
CN116383911B (en) * 2023-04-18 2023-09-01 华联世纪工程咨询股份有限公司 Automatic graph cutting method based on CAD drawing
CN116303252A (en) * 2023-05-18 2023-06-23 北京探索者软件股份有限公司 Format conversion method and device for DWG file, storage medium and electronic device
CN116303252B (en) * 2023-05-18 2023-09-12 北京探索者软件股份有限公司 Format conversion method and device for DWG file, storage medium and electronic device

Also Published As

Publication number Publication date
CN102495753B (en) 2013-10-23

Similar Documents

Publication Publication Date Title
CN102495753B (en) Interactive computer-aided design (CAD) engineering drawing batch processing method
KR100764953B1 (en) Document processing apparatus and document processing method
CN102779118B (en) Paper typesetting method and system
US7017108B1 (en) Method and apparatus for reproducing a linear document having non-linear referential links
CN103793145A (en) Drawing frame parameter identification and drawing output method based on autoCAD
JP3997026B2 (en) Form editing method and apparatus, and storage medium storing computer-readable program
JP2007328029A (en) Information processing apparatus, information processing method, and information processing program
US20100174984A1 (en) Document editing apparatus and control method thereof
CN102024077B (en) Engineering drawing processing method
CN115146327A (en) CAD file auxiliary processing method and system for air conditioner industry
CN108628945A (en) A method of fbx model files are automatically converted to fbs model files
JP5184794B2 (en) Change document format and print stream to create a mail piece
CN116452756A (en) Three-dimensional scene local automatic generation method, device, equipment and storage medium
KR102649627B1 (en) An automatic image placement and execution method using the DTP program, an adobe indesign
JPH09270020A (en) Automatic editing system
JP4627962B2 (en) Database publishing method and apparatus
CN103838903A (en) Method for creating Label through user-defined font object library
CN112241411A (en) Spreadsheet structured identification and extraction method based on CAD basic elements
JP2862239B2 (en) Document processing device
JPH08287276A (en) Character layout device
Teo et al. The use of VDM in the specification of Chinese characters
JPH11191100A (en) Automatic pagination device
EP1840759A1 (en) Printing method
AU2004203109B2 (en) Document Layout Method
CN116975945A (en) Intelligent drawing system, method, equipment and medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 211112 No. 223 Simon Street, Jiangsu, Nanjing

Patentee after: JSTI GROUP Co.,Ltd.

Address before: 211112 No. 223 Simon Street, Jiangsu, Nanjing

Patentee before: JIANGSU TRANSPORTATION RESEARCH INSTITUTE Co.,Ltd.

CP01 Change in the name or title of a patent holder