Machinery inscription table sign manufacturing computer drawing method
Technical field
The present invention relates to a kind of pattern drawing method, relate in particular to a kind of mechanical inscription table sign manufacturing computer drawing method, belong to printing technology.
Background technology
Along with computing machine popularizing in factory; More and more enterprises uses CAD software to draw; In the sign manufacturing technological process of label factory; The general label figure that will make with the CAD mapping software is earlier drawn good in computing machine and is preserved, and the label graphic file is converted to the compatible file layout of laser photocomposing machine output to film setter then, and film setter is produced after printing film.
At present, prior art has been done some improvement to the label method for drafting, based on the AutoCAD mapping software, draws label with the method for the parameters of input label circular arc, scale mark, scale value, has improved work efficiency.But machinery inscription table label and common label form are different, and it mainly is made up of several criteria figure and special graph and trade mark segment.Test pattern such as circle, circular arc, line segment, rectangle etc., these are drawn in the AutoCAD window is eaily, the trade mark segment can be inserted into the relevant position fast.Special graph is formed special garden shape 1, special arrow 2, special rectangle 3 as shown in Figure 1 by special square frame, special arrow, special circle etc.General this type of special graph is parameterless, even the parameter of describing special graph is arranged, parameter is also very complicated, loaded down with trivial details.Special graph mainly is made up of the circular arc of continuous broken line and different radii, if in AutoCAD, directly draw very complicacy, the figure after the drafting is because parameter shows not directly perceived; The subsequent modification operation is also very inconvenient; The staff must contrast the position of each key feature point of figure while drawing when drawing like this, and manual operations descends levels of precision greatly, so draughtsman's workload is very big when drawing Scutcheon scale value at present; Speed is very slow, and work efficiency is not high.
Summary of the invention
The object of the present invention is to provide a kind of mechanical inscription table sign manufacturing computer drawing method; Utilize ObjectARX2008 to be directed against AutoCAD2008 and carry out secondary development; The special graph of machinery inscription table being regarded as the broken line and the circular arc of some forms; Through each key coordinate point parameter in the known machinery inscription table; Key coordinate is put parameter by the certain format record, draw out the each several part figure and it is joined in the same target group with parameterized method, again parameter being charged to that growth data that autocad file carries concentrates can easily retouching operation so that follow-up.
The object of the invention is achieved through following technical scheme:
A kind of machinery inscription table sign manufacturing computer drawing method, this method comprises the following steps:
1) each key point coordinate parameters in the input machinery inscription table, key point is divided into broken line corner point and circular arc, and circular arc comprises three point coordinate: any point coordinate, circular arc terminal point coordinate in the middle of circular arc starting point coordinate, the circular arc; Direction along the special graph profile extends is added each key point coordinate parameters among the Argument List bezel, cluster listbox successively;
2) from key point, select any one as initial key point;
3) read initial key coordinate point parameter from Argument List bezel, cluster listbox,
If initial key point is a circular arc, obtain the circular arc starting point coordinate in the parameter list, any point coordinate, the circular arc terminal point coordinate in the middle of the circular arc; According to these three point-rendering circular arcs; This circular arc is added in the model space piece table record that CAD carries database, and obtain object ID number, according to ID number newly-built group objects Group, with this circular arc adding group and object extension data centralization;
If initial key point is the broken line corner point; The broken line corner point coordinate that obtains in the parameter list is drawn this point; This point is added in the model space piece table record that CAD carries database; And obtain object ID number; According to ID number newly-built group objects Group, with this some adding group and object extension data centralization;
All follow-up rendered objects are all organized adding among the Group;
4) from Argument List bezel, cluster listbox, read next key point coordinate parameters successively,
The key point that reads is if the broken line corner point, and (x y), if previous key point also is the broken line corner point, then draws the line segment S between 2 then to obtain this broken line corner point coordinate Ln in the parameter list; If previous key point is the circular arc type, then draw this circular arc terminal point coordinate to Ln (x, line segment S y); Line segment S is joined among the group Group and adds the object extension data centralization;
The key point that reads is if circular arc then obtains this circular arc starting point H1n coordinate in the parameter list, any point H2n coordinate, the circular arc terminal point H3n coordinate in the middle of the circular arc; If previous key point is the broken line corner point, then draw the line segment S of this broken line corner point earlier to the circular arc starting point coordinate; If previous key point is a circular arc, then draw the line segment S of last circular arc terminating point earlier to back one circular arc starting point, need not draw line segments if both coordinate points are identical; Again according to H1n, H2n, H3n three point-rendering circular arc Arc, line segment S and circular arc Arc are joined among the group Group and add the object extension data centralization;
5) after Argument List bezel, cluster listbox traversal is accomplished, confirm again whether special graph seals;
Then draw end if not closed figure;
If closed figure confirms that earlier last key point is broken line corner point or circular arc;
If last key point is the broken line corner point, initial key point also is the broken line corner point, then draws line segment between the two and joins among the group Group this line segment and the object extension data centralization; If initial key point is a circular arc, then draws last key point and also join among the group Group this line segment and the object extension data centralization to the line segment between the circular arc starting point;
If last key point is a circular arc, and initial key point is the broken line corner point, then draws the circular arc terminal point and also join among the group Group this line segment and the object extension data centralization to the line segment between the initial key point; If initial key point is a circular arc, then draws last key point circular arc terminal point to the line segment between the initial key point circular arc starting point, and join among the group Group this line segment and the object extension data centralization.
Compared with prior art; The invention has the beneficial effects as follows: solve the problem that existing method for drafting can not utilize parameterized method drafting and the key point reference record is concentrated to growth data the special graph in the machinery inscription table; Solved the inconvenient problem of special graph subsequent modification; Reduce the drafting time, improved work efficiency.
Description of drawings
Fig. 1 is the machinery inscription table label figure that comprises special graph;
Fig. 2 is a process flow diagram of the present invention;
Fig. 3 is a mechanical inscription table special graph among the embodiment;
Fig. 4 is a mechanical inscription table special graph housing among the embodiment.
Embodiment
Below in conjunction with accompanying drawing and specific embodiment the present invention is described further.
The sign manufacturing system generally forms with computing machine and laser photocomposing machine by drawing; Computing machine and film setter be interconnected to carry out communication; Computing machine will be drawn good label graphic file and convert to the compatible file layout of laser photocomposing machine and output to film setter, and film setter is produced after printing film.The present invention utilizes ObjectARX2008 to be directed against AutoCAD2008 to carry out secondary development; The special graph of machinery inscription table being regarded as the broken line and the circular arc of some forms; Get or import each key coordinate point parameter in the mechanical inscription table through knowledge; And with parameter by the certain format record, can draw out and Drawing Object is joined in the same target group with parameterized method, again parameter being charged to that growth data that autocad file carries concentrates can easily retouching operation so that follow-up.Be illustrated in figure 2 as the process flow diagram of mechanical inscription table sign manufacturing computer drawing method.The machinery inscription table special graph that will draw for embodiment shown in Figure 3.The embodiment method for drafting is following:
0.5 millimeter of input special graph live width, line color are parameters such as black; Each key point coordinate parameters in the input machinery inscription table special graph adds each key point coordinate parameters among the Argument List bezel, cluster listbox along the direction that the special graph profile extends successively.
By counterclockwise selecting key point.
The starting point of specifying Fig. 3 upper left corner circular arc is selected key point as drawing starting point by the inverse time direction, initially is that circular arc will pick up three points, and first is circular arc starting point H1
1(90.25,21.07), second is any point H2 in the middle of the circular arc
1(94.34,18.46), the 3rd is the terminal point H3 of circular arc
1According to these three point-rendering circular arcs, add this circular arc in the model space piece table record that CAD carries database to (96.04,14.65), and obtain object ID number, according to ID number newly-built group objects Group, with this circular arc adding group and object extension data centralization; All follow-up rendered objects are all organized adding among the Group.
Continue to obtain the circular arc three point coordinate H1 of parameter list second row
2(96.1,2.61), H2
2(96.7,0.87), H3
2(96.1 ,-1.31), because previous key point is the circular arc type, and H3
1To H1
2Not same point, then draw first circular arc terminating point H3 earlier
1To H1
2Line segment S, again according to H1
2, H2
2, H3
2Three point-rendering circular arc Arc; Line segment S and circular arc Arc are joined among the group Group and add the object extension data centralization; And the like, be broken line point coordinate L to the 7th
7(94.74 ,-2.25) because previous be the circular arc type, then draw previous circular arc terminating point H3
6To L
7Line segment S; Line segment S is joined among the group Group and adds the object extension data centralization; Other row method for drafting of parameter list is similar, finishes until traversal.
Because this special graph outer rim is closed figure, last is circular arc for the Argument List bezel, cluster, and first also is circular arc, then draws H3
12To circular arc starting point H1
1Line segment S figure is sealed, equally with line segment S join the group Group in the object extension data centralization; The special graph housing is completed as shown in Figure 4, and other part of this figure and housing method for drafting are identical, fill enclosure space more as requested again.Other special graph in the machinery inscription table such as the special arrow among Fig. 1 are made up of broken line point all, do not have the circular arc parameter, like the special circle among Fig. 1, are made up of circular arc all, do not have the broken line parameter.After all parts of machinery inscription table label are all drawn, carry out color separation and makeup again, the plate-making flow process is accomplished, and uses film setter to print to publish picture and prints.
The present invention solves existing method for drafting can not quick problem getparms to the special graph in the machinery inscription table; Can not utilize parameterized method to draw and record the problem that growth data is concentrated; Coarse problem is located in the drafting that solves special graph; Reduce the drafting time, improved work efficiency.
Except that the foregoing description, the present invention can also have other embodiments, and all employings are equal to the technical scheme of replacement or equivalent transformation formation, all drop in the protection domain of requirement of the present invention.