CN102331746A - Drawing interchange format (DXF) file-based pen type plotter plotting path optimization method - Google Patents

Drawing interchange format (DXF) file-based pen type plotter plotting path optimization method Download PDF

Info

Publication number
CN102331746A
CN102331746A CN201110310323A CN201110310323A CN102331746A CN 102331746 A CN102331746 A CN 102331746A CN 201110310323 A CN201110310323 A CN 201110310323A CN 201110310323 A CN201110310323 A CN 201110310323A CN 102331746 A CN102331746 A CN 102331746A
Authority
CN
China
Prior art keywords
circular arc
pel
straight line
information
circle
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.)
Pending
Application number
CN201110310323A
Other languages
Chinese (zh)
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.)
Northwestern Polytechnical University
Original Assignee
Northwestern Polytechnical University
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 Northwestern Polytechnical University filed Critical Northwestern Polytechnical University
Priority to CN201110310323A priority Critical patent/CN102331746A/en
Publication of CN102331746A publication Critical patent/CN102331746A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Image Generation (AREA)

Abstract

The invention discloses a drawing interchange format (DXF) file-based pen type plotter plotting path optimization method, which comprises the following steps of: resolving DXF files, reading entity information stored in ENTITIES segments of the DXF files into an internal memory, and storing in different classes according to the types of entities; performing repeatability check on the entity information stored in the internal memory, and deleting or combining repeated entities to reduce unnecessary entity information; and sequencing all entities stored in the internal memory in the direction of a plotting path according to a minimum distance algorithm, and re-writing the sequenced entity information into the ENTITIES segments of the DXF files. Various entities in a graph to be plotted are sequenced in the plotting direction of the plotter, and the optimized plotting equipment executive codes are obtained on the basis. After the method is applied, the plotting process can be optimized without dependence of a specific model of a plotter, and the method has high generality.

Description

A kind of pen type plotter drawing method for optimizing route based on the DXF file
Technical field
The present invention relates to a kind of drawing path optimization problem of pen type plotter.
Background technology
Drawing efficiency is one of main performance index of pen type plotter.At present; Mostly domestic advanced person's large-sized numerical control draught machine is external introducing product; But the special-purpose assorted software as technological core is monopolized by foreign vendor, makes the type equipment be difficult to give full play to its potential advantage, can not adapt to the concrete application demand of enterprise fully.In the application of reality; Be in particular in that owing to frequently in the drawing course lift the pen and the action of starting to write the lines fairness that causes being drawn is relatively poor, has accelerated the wearing and tearing of equipment; And in the process of drawing, can produce a large amount of invalid idle motions, reduce drawing efficiency.
Because the pen type calcomp can be regarded as a kind of numerically controlled processing equipment in itself; Therefore domestic correlative study personnel have carried out research extensively and profoundly to the draught machine drawing path optimization problem based on numerical control code; And, corresponding drawing method for optimizing route has been proposed to the plotting equipment of different model.But as a whole, these methods mainly design to the numerical control run time version of model draught machine, and versatility is not high, can not fundamentally solve the optimization problem in large-scale draught machine drawing path.And develop drawing path optimization software to the model plotting equipment, and also can cause cost of software development to increase, enterprise is caused extra financial burden.
The DXF file is a kind of file layout of describing graphical information based on the ASCII coding that autodesk, inc. releases; Be used to be implemented between the different CAD systems; And carry out exchanges data between the CAD/CAM system, become a kind of actual industrial standard at present.In the application of reality, the data-interface between DXF file Chang Zuowei CAD system and the large-sized numerical control draught machine.Therefore; Carry out on the basis of careful analysis at storage organization the DXF file; Design and develop out a kind of pen type plotter drawing method for optimizing route, can solve the existing problem of present various optimization method to the full extent, have high generality based on the DXF file.
Summary of the invention
In order to overcome the deficiency of prior art, the present invention provides a kind of new draught machine drawing method for optimizing route.On the basis that the storage organization of DXF file is analyzed; Adopt a kind of in operational process pel whole story point and the variable method for solving of drawing order; Pel in the DXF file is optimized ordering according to the direction of drawing; And regenerate new DXF file, thereby make with the DXF file after optimizing to serve as that the drawing path that the basis generates is optimized.This method is applicable to that all are the plotting equipment of data exchange ways with the DXF file, have very strong versatility.
The technical solution adopted for the present invention to solve the technical problems may further comprise the steps:
One, graphic file decomposes
Realize the centralized stores of graphical information.In graphics editing software, change compound pattern into form simple graph, so that whole graphical informations is deposited in the ENTITIES data segment in the DXF file by element figure (straight line, circle, circular arc, ellipse, elliptic arc, free curve and text).
Two, the parsing of DXF file
Realize the extraction of element figure information.After operation splitting, the element figure information in the DXF file all is stored in the ENTITIES data segment.At first set up corresponding storage chained list according to the type of element figure; Then according to the rule of each element figure of DXF file logging; Read the element figure information of ENTITIES data segment successively, and according to the type of element figure, it is left in respectively in the middle of the corresponding chained list; Can obtain the relevant information of each element figure, specifically may further comprise the steps:
1. extract straight line information
Extract the starting point coordinate (X of straight line s, Y s) and terminal point coordinate (X e, Y e), the information between the different straight lines connects through pointer successively, constitutes the information stores chained list CLine of straight line class.
2. extract circle information
Extract central coordinate of circle (X c, Y c) and radius R, the information between the different circles connects through pointer successively, constitutes the information stores chained list CCircle of circle class.
3. extraction circular-arc information
Extract central coordinate of circle (X Ac, Y Ac), radius R A, initial angle Φ sWith end angle Φ e, the information between the different circular arcs connects through pointer successively, constitutes the information stores chained list CArc of circular arc class.
4. extract oval information
Extract oval centre coordinate (X Ec, Y Ec), major semi-axis R xWith minor semi-axis R y, the information between the different ellipses connects through pointer successively, constitutes the information stores chained list CEllipse of elliptical-type.
5. extract elliptic arc information
Extract the centre coordinate (X of elliptic arc Aec, Y Aec), major semi-axis R Ax, minor semi-axis R Av, start angle Φ AsWith termination point Φ Ae, the information between the different elliptic arcs connects through pointer successively, constitutes the information stores chained list CEllArc of elliptic arc class.
6. extract free curve information
Extract the coordinate information at each reference mark of free curve, the information between the different free curves connects through pointer successively, constitutes the information stores chained list CSPline of free curve class.
7. extraction text message
Extract the upper left corner coordinate information (X of text Tl, Y Tl) and style information style, the information between the different texts connects through pointer successively, constitutes the information stores chained list CText of text class.
Three, pel is carried out the repeatability inspection
Realization is to repeating the merging and the deletion of pel.Whole primitive information of extracting after the DXF document analysis are included inevitably the pel that overlaps wholly or in part.In most cases, the element figure that constitutes engineering pattern is main with straight-line segment, circular arc and circle, therefore can check the repeatability of these three kinds of pels through the primitive information of being stored is traveled through.If the number of circle, circular arc and straight line that the DXF file obtains after resolving is respectively n, m, p, the repeatability inspection of pel is carried out according to the following steps:
1. the repeatability of circle inspection
The information of the circle that the DXF file obtains after resolving has central coordinate of circle X c, Y cAnd radius R.The situation that two circles overlap is fully only considered in repeatability inspection to circle.The data link table CCircle of traversal storage circle will justify C Ic(ic=1,2 ..., centre coordinate (X n) Icc, Y Icc) and radius R IcWith round C thereafter Je(jc=ic+1 ..., centre coordinate (X n) Jcc, Y Jcc) and radius R JcCompare respectively, if X Icc=X Jcc, Y Icc=Y Jcc, R Ic=R Jc, then represent C IcWith C JcOverlap fully, delete C this moment JcAfter the repeatability inspection of circle finishes, get into step 2.
2. the repeatability of circular arc inspection
The information of the circular arc that the DXF file obtains after resolving has central coordinate of circle (X Ac, Y Ac), arc radius R A, and the initial angle Φ of circular arc sAnd Φ eThe repeatability inspection needs processing circular arc of circular arc and the situation that overlaps of another circular arc, and the situation that overlaps of circular arc and circle.Inspection is following with disposal route:
(1) repeatability of circular arc and circular arc inspection
The data link table CArc of traversal storage circular arc is with circular arc A IAInformation (iA=1,2 ..., m) and A JA(jA=iA+1 ..., information m) compares respectively.Press the difference of comparative result, divide following 3 kinds of situation to handle.
1. if circular arc A IACover A fully JA, need circular arc A this moment JADeletion.
2. if circular arc A JACover A fully IA, need circular arc A this moment IADeletion, and with circular arc A JAMove to circular arc A IAThe position at place.
3. if circular arc A IAWith A JAPartially overlap, need circular arc A this moment IAWith A JAMerge, and the new circular arc that will obtain after will merging is stored in A IACorresponding position needs circular arc A simultaneously JADeletion.
Work as A JAWhen pointing to last node of circular arc class chained list CArc, change step (2) over to, to circular arc A IACheck with the repeatability of circle.
(2) circular arc is checked with the repeatability of circle
1. traversal is stored the data link table CCircle of circle, with circular arc A IA(iA=1,2 ..., m) with circle C Kc(kc=1,2 ..., n) compare respectively.If circular arc A IACentre coordinate (X IAAc, Y IAAc) and circle C KcCentre coordinate (X Kc, Y Kc) equate, and circular arc A IARadius R IAACircle C KcRadius R KcEquate, i.e. X IAAc=X Kc, Y IAAc=Y Kc, R IAA=R Kc, then represent circle C KcCover circular arc A fully IA, need circular arc A this moment IADeletion.
2. work as A IAWhen pointing to last node of circular arc class chained list CArc, the repeatability inspection of expression circular arc is finished, and get into step 3 this moment, and the repeatability of straight line is checked.
3. the repeatability of straight line inspection
The information of the straight line that the DXF file obtains after resolving is the coordinate figure (X of starting point s, Y s) and the coordinate figure (X of terminal point e, Y e).The storage chained list CLine of traversal straight line is with il bar straight line L Il(il=1,2 ..., p) with all the other straight-line segment L Jl(jl=il+1 ..., p) compare, judge its coincidence situation, handle by following 3 kinds of situation.
1. if straight line L IlCover L fully Jl, need straight line L this moment JlDeletion.
2. if straight line L JlCover L fully Il, need straight line L this moment IlDeletion, and with straight line L JlMove to straight line L IlThe position at place.
3. if straight line L IlWith L JlPartially overlap, need straight line L this moment IlWith L JlMerge, and the new straight line that will obtain after will merging is stored in L IlCorresponding position needs straight line L simultaneously JlDeletion.
Work as L IlWhen pointing to last node of straight line class chained list CLine, the repeatability inspection of expression straight line is finished.
Four, with the minimum stroke optimized Algorithm pel is sorted
To the pel after inspection is handled through repeatability; Be the foundation rearrangement by it along the stroke minimum that the graphic plotting path direction moves ruling pen; Through changing any pel putting in order and the putting in order of reference mark that pel self obtains according to minimum stroke in the DXF file; Make that draught machine invalid idle motion in the course of the work is minimum, thereby reach the purpose of optimal design.
If after the repeatability inspection, the total number of pel is N, the initial position of ruling pen is L, and then the solution procedure of minimum stroke optimized Algorithm is following:
1. set up the storage chained list GraphicsList of element figure.
2. calculate ruling pen is moved to each pel by initial position stroke
Travel through all pel T i(i=1 ..., N), according to T iType different, calculate ruling pen by following 3 kinds of situation and move to pel T by its position iStroke.
1. if pel T iBe straight line, circular arc, elliptic arc and free curve, then ruling pen moves to pel T by initial position L iStroke d iOnly with pel T iStarting point P IsWith terminal point P IeRelevant.Calculate ruling pen initial position L and pel T respectively iStarting point P IsDistance | LP Is| with terminal point P IeDistance | LP Ie|, get its minimum value and move to pel T as ruling pen iStroke, i.e. d i=min (| LP Is|, | LP Ie|).
2. if pel T iBe circle or oval, its central point is C i, the initial position L that then need calculate ruling pen is C to the central point position iStraight line LC iWith pel T iPoint of intersection S i, ruling pen moves to pel T by reference position L iStroke be L with the some S iBetween distance | LS i|, i.e. d i=| LS i|;
3. if pel T iBe text message, its insertion point is I i, then ruling pen by reference position L with move to pel T iStroke be L with the some I iBetween distance | LI i|, i.e. d i=| LI i|.
3. confirm to make the stroke of ruling pen to reach minimum pel
Get d=min (d 1, d 2..., d N), the pel T corresponding with minimum stroke d jBeing institute asks.Record pel T jType, and with pel T jMove to the end of the element figure storage chained list GraphicsList of the 1st step foundation.
4. ruling pen reorientation
According to the determined pel T of step 3 jType different, confirm the position of ruling pen again by following 3 kinds of situation.
1. if pel T jBe straight line, circular arc, elliptic arc and free curve, when d is ruling pen position and pel T jTerminal point P JeBetween distance, i.e. d=|LP Je| the time, need exchange T jStarting point P JsWith terminal point P Je, and with T jTerminal point after exchange is as the new reference position of ruling pen;
2. if pel T jFor with C jBe the circle or the ellipse at center, then with straight line LC jWith pel T jPoint of intersection S jAs new reference position;
3. if pel T jBe text message, then with T jThe bottom right angle point as new reference position.
If chained list CLine, CCirleList, CArc, CEllipse, CEllArc, CSPline and CText all are empty, then change step 5 over to, otherwise change step 2 over to
5. upgrade the DXF file
The ENTITIES data segment of DXF file is emptied, and the primitive information of the storage among the element figure chained list GraphicsList is write in the ENTITIES data segment of DXF file successively, promptly accomplished optimization the DXF file.
In sum, applying step of the present invention can be summarized as follows.
At first, through parsing, the primitive information of depositing in its ENTITIES section is read in internal memory, and carry out classification and storage by the type of pel to the DXF file; Secondly, the primitive information of depositing in the middle of the internal memory is carried out the repeatability inspection, the pel of deletion or merging repetition is to reduce unnecessary primitive information; At last, according to the minimum distance algorithm, the direction of all pels of depositing in the middle of the internal memory according to the drawing path sorted, and the primitive information after will sorting writes in the ENTITIES section of DXF file again.
The invention has the beneficial effects as follows: through the use of said method, the drawing direction of each pel in institute's graphing according to draught machine sorted, and can be based on this, the plotting equipment run time version that is optimized.After method was used, the concrete model that can not rely on draught machine was optimized drawing course, had well general new.
After this method successful Application, can reach following target:
(1) greatly improves the service efficiency of draught machine, thereby improved the productive capacity of enterprise.
(2) effectively reduce and frequently lift pen and the phenomenon of starting to write in the drawing course, thereby reduced the wearing and tearing of ruling pen, prolonged the serviceable life of equipment, improved the precision of drawing.
(3) maintenance and the maintenance cost of draught machine have been reduced.
(4) broken away from the blockade on new techniques of international vendor, realized autonomous draught machine stroke optimization draught machine.
Below in conjunction with accompanying drawing and embodiment the present invention is further specified.
Description of drawings
Fig. 1 is a process flow diagram of the present invention.
Storage organization synoptic diagram when Fig. 2 is the DXF document analysis.
Fig. 3 is the process flow diagram of DXF document analysis.
Fig. 4 is the process flow diagram of the repeatability inspection of circle.
Fig. 5 is the process flow diagram of the repeatability inspection of circular arc and circle.
Fig. 6 is the repeatability inspection process flow diagram of circular arc and circular arc.
Fig. 7 is the process flow diagram of the repeatability inspection of straight line.
Fig. 8 is the process flow diagram of minimum stroke optimized Algorithm.
Embodiment
The drawing process that shows the wing loft figure that designs with certain aircraft company is the advantage of example explanation this method.The basic parameter of plotting equipment and DXF graphic file is following in this example:
Draught machine model: TDM-2070K-NMX
Bed dimension: 7000 * 2000mm
Drawing breadth: 3136 * 1150mm.
1. in graphics editing software, figure is decomposed, change the compound pattern among the figure into element figure, and figure is saved as the DXF form.
2. in the optimization Simulation system, set up the storage chained list of element figure.Cline is used to deposit straight line, and CCircle is used to deposit circle, and CArc is used to deposit circular arc, and CEllipse is used to deposit ellipse, and CEllArc is used to deposit elliptic arc, and CSPline is used to deposit free curve, and CText is used to deposit text.
3. be written into the DXF file, read the primitive information of ENTITLES data segment.Pel to dissimilar is handled as follows:
(1), extracts the coordinate information of its two-end-point, and the information of extracting is added into the end of CLine chained list for straight line;
(2), extract its center point coordinate and radius information, and the information of extracting is added into the end of CCircle chained list for circle;
(3), extract its center point coordinate, radius, initial angle and end angle information, and the information of extracting is added into the end of CArc chained list for circular arc;
(4), extract its center point coordinate, major axis radius and minor axis radius, and the information of extracting is added into the end of CEllipse chained list for ellipse;
(5), extract its center point coordinate, major axis radius, minor axis radius, initial angle and end angle information, and the information of extracting is added into the end of CEllArc chained list for elliptic arc;
(6), extract the coordinate information at its all reference mark, and the information of extracting is added into the end of CSPline chained list for free curve;
(7), extract the coordinate and the text style information of its insertion point, and the information of extracting is added into the end of CText chained list for text.
4. calculate the number of each type pel and the sum of pel respectively, the information that obtains is following:
Pel sum: 3277
Straight line: 1917
Circular arc: 650
Circle: 163
Free curve: 547.
5. straight line is carried out the repeatability inspection.By analysis, totally 14 in the straight line that overlaps fully with other straight line is successively with its deletion; Totally 45 in the straight line that overlaps with other straight line portion, with it with after the straight line that is overlapped merges, successively with its deletion.
6. circle is carried out the repeatability inspection.After analyzing, the coincidence number of circle is 0.
7. circular arc is carried out the repeatability inspection.By analysis, the Circular Arc that overlaps fully with circle is 0; With the Circular Arc that other circular arc overlaps fully is 2, successively with its deletion; The Circular Arc that overlaps with other circular arc portion is 0.
8. setting up the CGraphics chained list, is foundation according to the stroke minimum of ruling pen, selects the pel that makes the ruling pen stroke minimum successively, and it is moved to the end of CGraphics chained list.
9. empty the ENTITIES data segment of DXF file; Then according to the storage order in the CGraphics chained list; The primitive information of its storage is write the ENTITIES data segment of DXF file successively, and amended DXF file is stored the DXF file after being optimized again.
10. the stroke that moves of required time and the ruling pen when drawing of the DXF file behind the calculation optimization.The drafting time of figure is about 26 minutes, and the stroke of ruling pen is 257016mm.
11. the stroke that the DXF file before the calculation optimization required time and ruling pen when drawing move.The drafting time of figure is about 36 minutes, and the stroke of ruling pen is 876462mm.
Can find out through above data, the DXF graphic file after optimizing when drawing, required time decreased 27.8%, the stroke of ruling pen has reduced 70.7%.The present invention can improve drawing efficiency effectively, and can reduce the wearing and tearing of ruling pen significantly.

Claims (1)

1. the pen type plotter drawing method for optimizing route based on the DXF file is characterized in that comprising the steps:
One, change compound pattern into be made up of element figure simple graph, whole graphical informations is deposited in the ENTITLES data segment in the DXF file, described element figure comprises straight line, circle, circular arc, ellipse, elliptic arc, free curve and text;
Two, the parsing of DXF file specifically may further comprise the steps:
1) starting point coordinate (X of extraction straight line s, Y s) and terminal point coordinate (X e, Y e), the information between the different straight lines connects through pointer successively, constitutes the information stores chained list Cline of straight line class;
2) extract round central coordinate of circle (X c, Y c) and radius R, the information between the different circles connects through pointer successively, constitutes the information stores chained list CCircle of circle class;
3) central coordinate of circle (X of extraction circular arc Ac, Y Ac), radius R A, initial angle Φ sWith end angle Φ e, the information between the different circular arcs connects through pointer successively, constitutes the information stores chained list CArc of circular arc class;
4) extract oval centre coordinate (X Ec, Y Ec), major semi-axis R xWith minor semi-axis R y, the information between the different ellipses connects through pointer successively, constitutes the information stores chained list CEllipse of elliptical-type;
5) centre coordinate (X of extraction elliptic arc Aec, Y Aec), major semi-axis R Ax, minor semi-axis R Av, start angle Φ AsWith termination point Φ Ae, the information between the different elliptic arcs connects through pointer successively, constitutes the information stores chained list CEllArc of elliptic arc class;
6) coordinate information at each reference mark of extraction free curve, the information between the different free curves connects through pointer successively, constitutes the information stores chained list CSPline of free curve class;
7) the upper left corner coordinate information (X of extraction text Tl, Y Tl) and style information style, the information between the different texts connects through pointer successively, constitutes the information stores chained list CText of text class;
Three, pel is carried out the repeatability inspection, carries out according to the following steps:
1) the data link table CCircle of traversal storage circle will justify C IcCentre coordinate (X Icc, Y Icc) and radius R IcWith round C thereafter JcCentre coordinate (X Jcc, Y Jcc) and radius R JcCompare respectively, if X Icc=X Jcc, Y Icc=Y Jcc, R Ic=R Jc, then represent C IcWith C JcOverlap fully, delete C this moment JcIc=1,2 ..., n, jc=ic+1 ..., n;
2) repeatability of circular arc inspection, inspection is following with disposal route:
(1) repeatability of circular arc and circular arc inspection
The data link table CArc of traversal storage circular arc is with circular arc A IAInformation and A JAInformation compare respectively, iA=1,2 ..., m, jA=iA+1 ..., m, the difference of pressing comparative result, divide following 3 kinds of situation to handle:
1. if circular arc A IACover A fully JA, need circular arc A this moment JADeletion;
2. if circular arc A JACover A fully IA, need circular arc A this moment IADeletion, and with circular arc A JAMove to circular arc A IAThe position at place;
3. if circular arc A IAWith A JAPartially overlap, need circular arc A this moment IAWith A JAMerge, and the new circular arc that will obtain after will merging is stored in A IACorresponding position needs circular arc A simultaneously JADeletion;
Work as A JAWhen pointing to last node of circular arc class chained list CArc, change step (2) over to, to circular arc A IACheck with the repeatability of circle;
(2) circular arc is checked with the repeatability of circle
1. traversal is stored the data link table CCircle of circle, with circular arc A IAWith circle C KcCompare respectively, kc=1,2 ..., if n is circular arc A IACentre coordinate (X IAAc, Y IAAc) and circle C KcCentre coordinate (X Kc, Y Kc) equate, and circular arc A IARadius R IAACircle C KcRadius R KcEquate, then expression circle C KcCover circular arc A fully IA, need circular arc A this moment IADeletion;
2. work as A IAWhen pointing to last node of circular arc class chained list CArc, the repeatability inspection of expression circular arc is finished, and gets into step 3) this moment;
3) the storage chained list CLine of the repeatability of straight line inspection traversal straight line is with il bar straight line L IlWith all the other straight-line segment L JlCompare, il=1,2 ..., p, jl=il+1 ..., p judges its coincidence situation, handles by following 3 kinds of situation:
1. if straight line L IlCover L fully Jl, need straight line L this moment JlDeletion;
2. if straight line L JlCover L fully Il, need straight line L this moment IlDeletion, and with straight line L JlMove to straight line L IlThe position at place;
3. if straight line L IlWith L JlPartially overlap, need straight line L this moment IlWith L JlMerge, and the new straight line that will obtain after will merging is stored in L IlCorresponding position needs straight line L simultaneously JlDeletion;
Work as L IlWhen pointing to last node of straight line class chained list CLine, the repeatability inspection of expression straight line is finished;
Four, with the minimum stroke optimized Algorithm pel is sorted
If after the repeatability inspection, the total number of pel is N, the initial position of ruling pen is L, and then the solution procedure of minimum stroke optimized Algorithm is following:
1) sets up the storage chained list GraphicsList of element figure;
2) travel through all pel T i, i=1 ..., N is according to T iType different, calculate ruling pen by following 3 kinds of situation and move to pel T by its position iStroke:
1. if pel T iBe straight line, circular arc, elliptic arc and free curve, calculate ruling pen initial position L and pel T respectively iStarting point P IsDistance | LP Is| with terminal point P IeDistance | LP Ie|, get its minimum value and move to pel T as ruling pen iStroke, i.e. d i=min (| LP Is|, | LP Ie|);
2. if pel T iBe circle or oval, its central point is C i, the initial position L that then need calculate ruling pen is C to the central point position iStraight line LC iWith pel T iPoint of intersection S i, ruling pen moves to pel T by reference position L iStroke be L with the some S iBetween distance | LS i|, i.e. d i=| LS i|;
3. if pel T iBe text message, its insertion point is I i, then ruling pen by reference position L with move to pel T iStroke be L with the some I iBetween distance | LI i|, i.e. d i=| LI i|;
3) get d=min (d 1, d 2..., d N), the pel T corresponding with minimum stroke d jBe the stroke that makes ruling pen of asking and reach minimum pel; Record pel T jType, and with pel T jMove to the 1st) end of the element figure storage chained list GraphicsList that sets up of step;
4) according to the determined pel T of step 3) jType different, confirm the position of ruling pen again by following 3 kinds of situation:
1. if pel T jBe straight line, circular arc, elliptic arc and free curve, when d is ruling pen position and pel T jTerminal point P JeBetween distance, i.e. d=|LP Je| the time, need exchange T jStarting point P JsWith terminal point P Je, and with T jTerminal point after exchange is as the new reference position of ruling pen;
2. if pel T jFor with C jBe the circle or the ellipse at center, then with straight line LC jWith pel T jPoint of intersection S jAs new reference position;
3. if pel T jBe text message, then with T jThe bottom right angle point as new reference position.
If chained list CLine, CCirleList, CArc, CEllipse, CEllArc, CSPline and CText all are empty, then change step 5) over to, otherwise change step 2 over to);
5) the ENTITIES data segment with the DXF file empties, and the primitive information of the storage among the element figure chained list GraphicsList is write in the ENTITIES data segment of DXF file successively.
CN201110310323A 2011-10-13 2011-10-13 Drawing interchange format (DXF) file-based pen type plotter plotting path optimization method Pending CN102331746A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110310323A CN102331746A (en) 2011-10-13 2011-10-13 Drawing interchange format (DXF) file-based pen type plotter plotting path optimization method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110310323A CN102331746A (en) 2011-10-13 2011-10-13 Drawing interchange format (DXF) file-based pen type plotter plotting path optimization method

Publications (1)

Publication Number Publication Date
CN102331746A true CN102331746A (en) 2012-01-25

Family

ID=45483554

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110310323A Pending CN102331746A (en) 2011-10-13 2011-10-13 Drawing interchange format (DXF) file-based pen type plotter plotting path optimization method

Country Status (1)

Country Link
CN (1) CN102331746A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105825175A (en) * 2016-03-11 2016-08-03 上海弼智仿生高科技有限公司 Generation method for industrial vision detection scheme and industrial vision detection method
CN107144272A (en) * 2017-04-07 2017-09-08 广东工业大学 A kind of method of workpiece sensing path planning
CN107170024A (en) * 2017-04-01 2017-09-15 武汉市真意境文化科技有限公司 One kind is based on VR environment two dimension view generation methods and system
CN108647303A (en) * 2018-05-09 2018-10-12 国电南瑞科技股份有限公司 Substation's shape library deriving method based on CIM/G specifications
CN111737785A (en) * 2020-06-24 2020-10-02 广州优比建筑咨询有限公司 Revit and CAD data interaction method, device and system
CN112434502A (en) * 2020-11-04 2021-03-02 西安理工大学 Method for automatically identifying CAD (computer-aided design) engineering drawing of bolt
CN113111458A (en) * 2021-04-13 2021-07-13 合肥工业大学 DXF-based sheet metal part automatic identification and positioning method
CN113305383A (en) * 2021-05-31 2021-08-27 南京航空航天大学 Method and device for analyzing wire cut electrical discharge machining (EDFA) graph based on DXF graph file
CN114580042A (en) * 2021-12-31 2022-06-03 河北工业大学 Intelligent identification and extraction method for reinforcing mesh
CN112434502B (en) * 2020-11-04 2024-05-28 西安理工大学 Method for automatically identifying CAD engineering drawing of bolt

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101544150A (en) * 2009-05-05 2009-09-30 西北工业大学 Precision compensation method for pen type graph plotter based on error field

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101544150A (en) * 2009-05-05 2009-09-30 西北工业大学 Precision compensation method for pen type graph plotter based on error field

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
袁义等: "基于DXF文件的图形元素重复性检测方法研究与实现", 《制造业自动化》 *
龚清洪等: "基于DXF-OpenGL的绘图轨迹优化及仿真", 《制造业自动化》 *
龚清洪等: "基于DXF文件的图元优化排序", 《计算机应用》 *

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105825175A (en) * 2016-03-11 2016-08-03 上海弼智仿生高科技有限公司 Generation method for industrial vision detection scheme and industrial vision detection method
CN107170024A (en) * 2017-04-01 2017-09-15 武汉市真意境文化科技有限公司 One kind is based on VR environment two dimension view generation methods and system
CN107144272A (en) * 2017-04-07 2017-09-08 广东工业大学 A kind of method of workpiece sensing path planning
CN108647303A (en) * 2018-05-09 2018-10-12 国电南瑞科技股份有限公司 Substation's shape library deriving method based on CIM/G specifications
CN111737785A (en) * 2020-06-24 2020-10-02 广州优比建筑咨询有限公司 Revit and CAD data interaction method, device and system
CN111737785B (en) * 2020-06-24 2021-04-02 广州优比建筑咨询有限公司 Data interaction method, device and system of Revit and AutoCAD
CN112434502A (en) * 2020-11-04 2021-03-02 西安理工大学 Method for automatically identifying CAD (computer-aided design) engineering drawing of bolt
CN112434502B (en) * 2020-11-04 2024-05-28 西安理工大学 Method for automatically identifying CAD engineering drawing of bolt
CN113111458A (en) * 2021-04-13 2021-07-13 合肥工业大学 DXF-based sheet metal part automatic identification and positioning method
CN113111458B (en) * 2021-04-13 2022-10-21 合肥工业大学 DXF-based sheet metal part automatic identification and positioning method
CN113305383A (en) * 2021-05-31 2021-08-27 南京航空航天大学 Method and device for analyzing wire cut electrical discharge machining (EDFA) graph based on DXF graph file
CN114580042A (en) * 2021-12-31 2022-06-03 河北工业大学 Intelligent identification and extraction method for reinforcing mesh

Similar Documents

Publication Publication Date Title
CN102331746A (en) Drawing interchange format (DXF) file-based pen type plotter plotting path optimization method
CN109766581B (en) Method for establishing bridge BIM (building information modeling) model by adopting Dynamo software
CN101751449B (en) Spatial overlap analysis method and system used in geographic information system
CN107480374B (en) Bridge BIM model creation method based on CATIA
CN102298795B (en) Three-dimensional segmenting method for STL (Standard Template Library) triangular network model
CN107045526A (en) A kind of pattern recognition method of electronics architectural working drawing
CN108647894A (en) One kind being based on the assembling type steel structure construction method of " BIM+RFID " technology
CN103309988A (en) Method for automatically generating rail traffic line database
CN103793178B (en) Vector graph editing method of touch screen of mobile device
CN104679954A (en) Method and system for lightening BIM (Building Information Modeling) model
CN108763827B (en) Transmission tower finite element model establishing method and device
CN109190094A (en) Building Information Model file cutting method based on IFC standard
CN102521878A (en) Programmable three-dimensional human body modeling and human body measurement system and method thereof
CN110795835A (en) Three-dimensional process model reverse generation method based on automatic synchronous modeling
CN110309553B (en) Drawing rapid drawing system and method based on standardized bridge universal gallery
CN109274742A (en) A kind of internet of things data acquisition and supervisor control
CN101458726A (en) Wire cutting program generating system and method
CN102722621A (en) Method for visualizing computed result of finite element method
CN108170989B (en) Engineering construction model derivation method based on BIM technology
CN101877141B (en) Three-dimensional intersection detection algorithm based on space scanning strategy
CN115979243A (en) Mobile robot navigation map conversion method and system based on BIM information
CN108280293B (en) BIM technology-based double-side-wall tunnel excavation unit division method
CN114170847B (en) Traffic control method of mobile robot system
CN108280292B (en) BIM technology-based single-side wall pit guiding method for tunnel excavation
CN101359337B (en) Method for interactively editing GIS topological data set

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20120125