CN103778253B - For the data processing method and device of incidence relation in computer drawing - Google Patents

For the data processing method and device of incidence relation in computer drawing Download PDF

Info

Publication number
CN103778253B
CN103778253B CN201410062736.1A CN201410062736A CN103778253B CN 103778253 B CN103778253 B CN 103778253B CN 201410062736 A CN201410062736 A CN 201410062736A CN 103778253 B CN103778253 B CN 103778253B
Authority
CN
China
Prior art keywords
affiliated partner
incidence relation
associated object
relation
normal
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.)
Active
Application number
CN201410062736.1A
Other languages
Chinese (zh)
Other versions
CN103778253A (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.)
Caxa Technology Co Ltd
Original Assignee
Caxa Technology 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 Caxa Technology Co Ltd filed Critical Caxa Technology Co Ltd
Priority to CN201410062736.1A priority Critical patent/CN103778253B/en
Publication of CN103778253A publication Critical patent/CN103778253A/en
Application granted granted Critical
Publication of CN103778253B publication Critical patent/CN103778253B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/904Browsing; Visualisation therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a kind of data processing method and device of incidence relation in drawing for computer.The data processing method for being used for incidence relation in computer drawing includes:Obtain the affiliated partner in computer drawing;Obtain the associated object of affiliated partner;Whether the incidence relation between detection affiliated partner and associated object is normal;And be then normal by the incidence relation reparation between affiliated partner and associated object if detecting that the incidence relation between affiliated partner and associated object is abnormal.By the present invention, solve the problems, such as to be difficult to the requirement whether inspection model meets design standard in correlation technique.

Description

For the data processing method and device of incidence relation in computer drawing
Technical field
The present invention relates to computer realm, in particular to a kind of data of incidence relation in drawing for computer Treating method and apparatus.
Background technology
There is corresponding incidence relation between affiliated partner and associated object in computer drawing.Because the association is closed The presence of system, once the position of an affiliated partner changes in drawing, the position meeting of associated object associated therewith Corresponding change is occurred based on pre-specified related information.
However, incidence relation is after initialization, will not be permanently present, it can usually suffer human factor or physical factor Destruction and disappear.In the related art, after incidence relation is destroyed, it can only be rebuild.
For in correlation technique after incidence relation is destroyed, the problem that it can only be rebuild, at present not yet Propose effective solution.
The content of the invention
It is a primary object of the present invention to provide incidence relation in a kind of drawing for computer data processing method and Device, to solve the problems, such as to be difficult to repair the incidence relation being destroyed in computer drawing in correlation technique.
To achieve these goals, according to an aspect of the invention, there is provided a kind of for being associated in computer drawing The data processing method of relation.The method includes:Obtain the affiliated partner in computer drawing;Obtain the associated of affiliated partner Object;Whether the incidence relation between detection affiliated partner and associated object is normal;And if detect affiliated partner and Incidence relation between associated object is abnormal, then by the incidence relation reparation between affiliated partner and associated object for just Often.
Further, affiliated partner includes geometry associativity object, and incidence relation includes geometry associativity relation, obtains computer Affiliated partner in drawing includes:The geometry associativity object in computer drawing is obtained, the associated object of affiliated partner is obtained Including:Multiple objects undetermined are searched within a preset range;Judge whether multiple objects undetermined meet geometry associativity relation;If sentenced Break and multiple objects undetermined and meet geometry associativity relation, then calculate respectively between multiple objects undetermined and geometry associativity object away from From;Using the undetermined object minimum with the distance between geometry associativity object as the first associated object, detection affiliated partner and Whether the incidence relation between associated object normally includes:It is several between detection geometry associativity object and the first associated object Whether what incidence relation is normal, if detecting that the incidence relation between affiliated partner and associated object is abnormal, will close Incidence relation reparation between connection object and associated object is normally to include:If detecting geometry associativity object and the first quilt Geometry associativity relation between affiliated partner is abnormal, then close the geometry between geometry associativity object and the first associated object Connection relation reparation is normal.
Further, the associated object for obtaining affiliated partner includes:Shape information and/or association by affiliated partner The identification information of object searches the object matched with affiliated partner;Judge affiliated partner data message and with affiliated partner phase Whether the data message of the object of matching is identical;And if it is judged that the data message of affiliated partner and with affiliated partner phase The data message of the object matched somebody with somebody is identical, then using the object for matching as associated object.
Further, affiliated partner includes meeting the affiliated partner of default style, and incidence relation includes style incidence relation, The associated object for obtaining affiliated partner includes:The object for meeting default style is searched from the presets list;Judge to meet default Whether the object of style matches with affiliated partner;If it is judged that meet the object of default style and affiliated partner matches, The object that default style will then be met is associated object as second;And/or if it is judged that meet the object of default style with Affiliated partner is mismatched, then generate the second associated object.
Further, after being normal by the incidence relation reparation between affiliated partner and associated object, the method Also include:To repairing as normal incidence relation is marked treatment, the incidence relation that marked;The pass that display marked Connection relation;And/or the report for normal incidence relation is repaired in generation.
To achieve these goals, according to another aspect of the present invention, there is provided one kind in computer drawing for associating The data processing equipment of relation.The device includes:First acquisition unit, for obtaining the affiliated partner in computer drawing;The Two acquiring units, the associated object for obtaining affiliated partner;Detection unit, for detecting affiliated partner and associated object Between incidence relation it is whether normal;And unit is repaired, if for detecting between affiliated partner and associated object Incidence relation is abnormal, then be normal by the incidence relation reparation between affiliated partner and associated object.
Further, affiliated partner includes geometry associativity object, and incidence relation includes geometry associativity relation, and first obtains single Unit is additionally operable to obtain the geometry associativity object in computer drawing, and second acquisition unit includes:First searching modul, for pre- If searching multiple objects undetermined in scope;First judge module, closes for judging whether multiple objects undetermined meet geometry associativity System;Computing module, for if it is judged that multiple objects undetermined meet geometry associativity relation, then calculating multiple objects undetermined respectively The distance between with geometry associativity object;First determining module, for will be treated with the distance between geometry associativity object is minimum Object is determined as the first associated object, and detection unit is additionally operable between detection geometry associativity object and the first associated object Whether geometry associativity relation is normal, if repair unit to be additionally operable to detect between geometry associativity object and the first associated object Geometry associativity relation it is abnormal, then be by the geometry associativity relation reparation between geometry associativity object and the first associated object Normally.
Further, second acquisition unit includes:Second searching modul, for the shape information by affiliated partner and/ Or the identification information of affiliated partner searches the object matched with affiliated partner;Second judge module, for judging affiliated partner Data message and the object matched with affiliated partner data message it is whether identical;And second determining module, for such as Fruit judges the data message of affiliated partner and identical with the data message of the object that affiliated partner matches, then will match Object is used as associated object.
Further, affiliated partner includes meeting default style affiliated partner, and incidence relation includes style incidence relation, the Two acquiring units include:3rd searching modul, the object of default style is met for being searched from the presets list;3rd judges mould Whether block, the object for judging to meet default style matches with affiliated partner;3rd confirm module, for if it is judged that The object and affiliated partner for meeting default style match, then the object that will meet default style is associated object as second; And/or generation module, for if it is judged that meeting the object and affiliated partner mismatch of default style, then generation second is closed Connection object.
Further, the device also includes:Indexing unit, for by the association between affiliated partner and associated object After relation reparation is normal, to repairing as normal incidence relation is marked treatment, the incidence relation that marked;It is aobvious Show unit, for showing the incidence relation that marked;And/or generation unit, it is normal incidence relation for generating reparation Report.
By the present invention, using the affiliated partner obtained in computer drawing;Obtain the associated object of affiliated partner;Inspection Whether the incidence relation surveyed between affiliated partner and associated object is normal;And if detect that affiliated partner is right with associated Incidence relation as between is abnormal, then be normal by the incidence relation reparation between affiliated partner and associated object, solves After incidence relation is destroyed, the problem that it can only be rebuild, and then reached and destroyed in incidence relation Afterwards, repaired as normal effect.
Brief description of the drawings
The accompanying drawing for constituting the part of the application is used for providing a further understanding of the present invention, schematic reality of the invention Apply example and its illustrate, for explaining the present invention, not constitute inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the signal for the data processing equipment of incidence relation in computer drawing according to embodiments of the present invention Figure;
Fig. 2 is showing for the data processing equipment of incidence relation in the drawing for computer according to the preferred embodiment of the invention It is intended to;
Fig. 3 is the flow for the data processing method of incidence relation in computer drawing according to embodiments of the present invention Figure;And
Fig. 4 is the stream of the data processing method of incidence relation in the drawing for computer according to the preferred embodiment of the invention Cheng Tu.
Specific embodiment
It should be noted that in the case where not conflicting, the feature in embodiment and embodiment in the application can phase Mutually combination.Describe the present invention in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
In order that those skilled in the art is better understood from the present invention program, below in conjunction with the embodiment of the present invention Accompanying drawing, to the embodiment of the present invention in be clearly and completely described, it is clear that described embodiment be only the present invention one Partial embodiment, rather than whole embodiments.Based on the embodiment in the present invention, do not have in those of ordinary skill in the art The every other embodiment obtained under the premise of creative work is made, should all belong to protection scope of the present invention.
It should be noted that term " first ", " in description and claims of this specification and above-mentioned accompanying drawing Two " it is etc. for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that so using Data can exchange in the appropriate case, so as to embodiments of the invention described herein can with except illustrating herein or Order beyond those of description is implemented.Additionally, term " comprising " and " having " and their any deformation, it is intended that cover Lid is non-exclusive to be included.
A kind of embodiments in accordance with the present invention, there is provided the data processing equipment of incidence relation in drawing for computer, The incidence relation that the data processing equipment for being used for incidence relation in computer drawing is used in computer drawing is destroyed Afterwards, it is normal for being repaired.
Fig. 1 is the signal for the data processing equipment of incidence relation in computer drawing according to embodiments of the present invention Figure.
As shown in figure 1, the device includes:First acquisition unit 10, second acquisition unit 20, detection unit 30 and reparation are single Unit 40.
First acquisition unit 10 is used to obtain the affiliated partner in computer drawing.
Computer drawing can include history drawing and current drawing, wherein, history drawing refers to before current time The drawing drawn is completed, current drawing refers to the drawing drawn at current time.Computer drawing can be painted by computer Figure software is drawn, and computer drawing software can be including various, for example, computer drawing software can draw for CAD Software.It should be noted that if the content drawn in drawing is compared to a set, affiliated partner can be this and constitute the collection The element for closing.For example, if the content of drafting in drawing is a square, foursquare any a line and Any one angle can serve as affiliated partner.Affiliated partner is corresponding with associated object, and both are to be plotted in same calculating Object in machine drawing, and each affiliated partner can include one or more associated object.In addition, affiliated partner Polytype can be included.
First acquisition unit 10 can in the following manner obtain affiliated partner:
Mode one, can obtain affiliated partner from computer drawing, wherein it is possible to be obtained from whole computer drawing Affiliated partner, it is also possible to obtain affiliated partner from the predetermined region of computer drawing.
Specifically, before the affiliated partner in obtaining computer drawing:It is possible, firstly, to detect whether to need to perform history The OPEN of drawing;Secondly, if detecting the OPEN for needing to perform history drawing, history drawing is opened, wherein, After history drawing is opened, affiliated partner can be obtained from the history drawing of the opening;And need not be held if detected The OPEN of row history drawing, then detect whether there is the current drawing drawn or the history drawing having already turned on; If detecting the presence of the current drawing drawn or the history drawing having already turned on, can be current from what is drawn Affiliated partner is obtained in drawing or the history drawing having already turned on.
Mode two, can obtain affiliated partner from the affiliated partner list of computer drawing.
Specifically, can be with the incidence relation of associated object to obtain to need to analyze with the affiliated partner in traversal of lists No normal affiliated partner.
In sum, affiliated partner can be obtained from the history drawing opened or the current drawing drawn, or Person can obtain affiliated partner from affiliated partner list.
Second acquisition unit 20 is used to obtain the associated object of affiliated partner.
In embodiments of the present invention, second acquisition unit 20 can be based in the following manner and obtain the associated right of affiliated partner As:
Mode one, the associated object of affiliated partner is obtained based on position relationship.For example, can be to justify with affiliated partner The heart, obtains the associated object of affiliated partner in the border circular areas with preset length as radius.
Mode two, the characteristic information based on affiliated partner obtains the associated object of affiliated partner.Wherein, affiliated partner Characteristic information can include the shape information and data message of affiliated partner, for example, when affiliated partner is foursquare a line When, then the affiliated partner is shaped as a line segment, and the corresponding data of the shape can be the length and width of the line segment Deng.
Mode three, the additional information based on affiliated partner obtains the associated object of affiliated partner.Wherein, additional information can With the mark ID including affiliated partner.
Mode four, the associated object of the object acquisition affiliated partner specified based on user.Wherein, the object specified is Associated object.Specifically, first, software front end can receive the reparation order with the object specified of user's transmission;Its Secondary, software front end can go out the object specified according to the reparation command analysis, obtain analysis object;Then, software front end can be with Using the analysis object as affiliated partner associated object.
Mode five, the associated object of affiliated partner is obtained based on the style information that affiliated partner meets.Wherein, it is right to associate As the style information for meeting can be including affiliated partner colouring information and status information etc..For example, when affiliated partner is a circle When, the style that it meets can be including the line style of the line color of circle and circle etc..
It should be noted that the type of the affiliated partner in mode one to mode four is identical, the affiliated partner can be several The affiliated partner of what affiliated partner type;Affiliated partner in mode five can be the affiliated partner type for meeting default style Affiliated partner.
Detection unit 30 is used to detect whether the incidence relation between affiliated partner and associated object is normal.
Specifically, detection unit 30 can in the following manner detect that the association between affiliated partner and associated object is closed Whether system is normal:
Mode one, changes the position of affiliated partner, and whether the associated object of detection occurs predetermined change.If detect by There is predetermined change in affiliated partner, then the incidence relation between affiliated partner and associated object is normal.If detect closed There is no predetermined change in connection object, then the incidence relation between affiliated partner and associated object is abnormal.
Specifically, if only changing in position for associated object, is associated the phase of object and affiliated partner Position is not changed.For example, in having the circle of circumference and radius at one, circumference can be affiliated partner, and radius can be with To be associated object, when the change in location of circumference, the position of radius is also changed, and radius is protected with the relative position of circumference Hold constant.
Mode two, changes the data message of affiliated partner, and whether the associated object of detection occurs predetermined change.If detection There is predetermined change to associated object, then the incidence relation between affiliated partner and associated object is normal.If detected There is no predetermined change in associated object, then the incidence relation between affiliated partner and associated object is abnormal.
Specifically, here, associated object can be the dimension information of affiliated partner.If affiliated partner is in data message On change, then be associated object change into pre-set dimension.For example, affiliated partner is a line segment, object is associated to be somebody's turn to do The size of line segment, and the size is used to represent the length of the line segment, when line segment is when 1 centimetre is changed into 2 centimetres, then the line segment Size is 1 centimetre before change, is 2 centimetres after change.
Mode three, changes position and/or the data message of affiliated partner, and the associated object that detection meets default style is no Change.Changed if detecting and meeting the associated object of default style, affiliated partner and associated object it Between incidence relation it is abnormal.Do not changed if detecting and meeting the associated object of default style, affiliated partner and Incidence relation between associated object is normal.For example, a line segment, before position is changed, its associated object --- face Color is red, if after position is changed, its associated object --- color is other colors, then line segment is associated right with it As --- the incidence relation between color is abnormal;If after position is changed, its associated object --- color is red, Then line segment and its associated object --- the incidence relation between color is normal.
If repairing unit 40 is used to detect that the incidence relation between affiliated partner and associated object is abnormal, will Incidence relation reparation between affiliated partner and associated object is normal.
Specifically, unit 40 is repaired by the incidence relation reparation between affiliated partner and associated object for normally can be with Perform following steps:The associated object of affiliated partner is obtained first, incidence relation information table is secondly searched, and obtains default association Relation, the incidence relation reparation between affiliated partner and associated object is just by the default incidence relation for being then based on finding Often.Wherein, the mode for obtaining the associated object of affiliated partner has been told about above, will not be repeated here.
It should be noted that when being searched less than default incidence relation in incidence relation information table, can first generate pass The default incidence relation of connection object and associated object, then the default incidence relation based on generation is right with associated by affiliated partner Incidence relation reparation as between is normal.Preferably, incidence relation information is arrived in the default incidence relation storage that can be generated In table.
By the embodiment of the present invention, reach after incidence relation is destroyed, it is normal effect to be repaired, and is entered And the batch modification of computer drawing can be realized, improve the operating efficiency of revisions on drawings, and lifting drawing intelligent pipe Reason level.
Fig. 2 is showing for the data processing equipment of incidence relation in the drawing for computer according to the preferred embodiment of the invention It is intended to.
As shown in Fig. 2 the embodiment can be as the preferred embodiment of embodiment illustrated in fig. 1, the embodiment is used for The data processing equipment of incidence relation includes the first acquisition unit 10, second acquisition unit of first embodiment in computer drawing 20th, detection unit 30 and reparation unit 40, wherein, second acquisition unit 20 includes the first searching modul 201, the first judge module 202nd, the determining module 204 of computing module 203 and first.
In embodiments of the present invention, affiliated partner can include geometry associativity object, and incidence relation can be closed including geometry Connection relation.
First acquisition unit 10 is additionally operable to obtain the geometry associativity object in computer drawing.
First acquisition unit 10 can obtain geometry and close from the history drawing opened or the current drawing drawn Connection object, or geometry associativity object can be obtained from affiliated partner list, specific acquisition modes are with above-described embodiment class Seemingly, will not be repeated here.Preferably, before the geometry associativity object in obtaining computer drawing, can first by computer graphic Other non-geometric affiliated partners in paper are filtered out.
First searching modul 201 is used to search multiple objects undetermined within a preset range.
It should be noted that the leading point of multiple objects undetermined is located in the characteristic point of geometry associativity object.
Specifically, the first searching modul 201 can in the following manner obtain the object multiple undetermined in computer drawing:
Mode one, is scanned for based on predeterminable area scope, is met the object multiple undetermined of default related information.Example Such as, can be scanned in the border circular areas with preset length as radius with geometry associativity object as the center of circle, be met pre- If the object multiple undetermined of related information.
Mode two, successively outwards search, is met the object multiple undetermined of default related information.For example, can with Geometry associativity object is the center of circle, is scanned in the multiple border circular areas with the incremental multiple preset lengths of equal difference as radius, is obtained To the object multiple undetermined for meeting default related information.
First judge module 202 is used to judge whether multiple objects undetermined meet geometry associativity relation.
For example, if affiliated partner is circle, multiple objects undetermined are a plurality of line segment, it can be determined that whether a plurality of line segment meets Round radius this geometry associativity relation, wherein, if the length value of a plurality of line segment is equal with the value of the radius of circle, can sentence Break and a plurality of line segment and meet the radius of circle this geometry associativity relation.If the value of the radius of the length value of a plurality of line segment and circle is not It is equal, then may determine that a plurality of line segment is unsatisfactory for round radius this geometry associativity relation.
Computing module 203 is used for if it is judged that multiple objects undetermined meet geometry associativity relation, then calculate multiple respectively The distance between object undetermined and geometry associativity object.
Specifically, the geometric center or point immediate with geometry associativity object and geometry of multiple objects undetermined can be calculated The distance between preset on affiliated partner, obtains multiple distance values.Preset can be the central point of geometry associativity object. For example, the distance between central point in the geometric center and geometry associativity object of multiple objects undetermined can be calculated.Preferably, After multiple distance values are obtained, multiple distance values can be ranked up according to magnitude relationship, obtain a distance value ordered series of numbers.
First determining module 204 be used for using with the minimum object undetermined of the distance between geometry associativity object as the first quilt Affiliated partner.
Preferably, the minimum distance value of numerical value can be searched from distance value ordered series of numbers first, secondly numerical value can be obtained most Corresponding one or more object undetermined of small distance value, then by the minimum distance value of numerical value it is corresponding one or more Object any undetermined in object undetermined is used as the first associated object.
If it should be noted that mode one and mode two can only find an object undetermined, by the object undetermined As the associated object of geometry associativity object.
Detection unit 30 is additionally operable to detect that the geometry associativity relation between geometry associativity object and the first associated object is It is no normal.
Specifically, detection unit 30 can be detected between geometry associativity object and the first associated object in the following manner Geometry associativity relation it is whether normal:
Mode one, changes the position of geometry associativity object, and whether detection occurs predetermined change by the first affiliated partner.If Detect the first associated object and predetermined change occurs, then the geometry associativity between geometry associativity object and the first associated object Relation is normal.If detecting the first associated object does not occur predetermined change, it is right that geometry associativity object and first are associated Geometry associativity relation as between is abnormal.
Specifically, if first is associated only changing in position for object, the first associated object and geometry The relative position of affiliated partner does not change.For example, in a circle with circumference and radius, circumference can be closed for geometry Connection object, radius can be the first associated object, and when the change in location of circumference, the position of radius also changes, and half Footpath keeps constant with the relative position of circumference.
Mode two, changes the data message of geometry associativity object, and whether the associated object of detection first occurs predetermined change. If detecting the first associated object there is predetermined change, the geometry between geometry associativity object and the first associated object Incidence relation is normal.If detecting the first associated object does not occur predetermined change, geometry associativity object and first are closed Geometry associativity relation between connection object is abnormal.
Specifically, here, the first associated object can be the dimension information of geometry associativity object.If geometry associativity pair As being changed on data message, then the first associated object changes into pre-set dimension.For example, geometry associativity object is one Line segment, the first associated object is the size of the line segment, and the size is used to represent the length of the line segment, when line segment is by 1 li During 2 centimetres of meter Bian Wei, then the size of the line segment is 1 centimetre before change, is 2 centimetres after change.
If repairing unit 40 to be additionally operable to detect the geometry associativity between geometry associativity object and the first associated object Relation is abnormal, then be normal by the geometry associativity relation reparation between geometry associativity object and the first associated object.
Specifically, incidence relation information table can include geometry associativity relation information table.By geometry associativity object and first Geometry associativity relation reparation between associated object is that normal step can include:The of geometry associativity object is obtained first One associated object, secondly searches geometry associativity relation information table, obtains default geometry associativity relation, is then based on what is found Geometry associativity relation reparation between geometry associativity object and the first associated object is normal by the default incidence relation of geometry.Its In, the mode for obtaining the first associated object of geometry associativity object has been told about above, will not be repeated here.
It should be noted that when being searched less than default geometry associativity relation in geometry associativity relation information table, can be with The first default geometry associativity relation of generation geometry associativity object and the first associated object, then the default geometry associativity based on generation Geometry associativity relation reparation between geometry associativity object and the first associated object is normal by relation.Preferably, can be by The default geometry associativity relation of generation is stored in geometry associativity relation information table.
By the embodiment of the present invention, reach after geometry associativity relation is destroyed, it is normal effect to be repaired Really, and then can realize the batch modification of computer drawing, improve the operating efficiency of revisions on drawings, and lifting drawing intelligence Change managerial skills.
Alternatively, in embodiments of the present invention, when affiliated partner can include geometry associativity object, affiliated partner can be wrapped The first associated object is included, when incidence relation can include geometry associativity relation, second acquisition unit 20 can include:Second looks into Look for module, the second judge module and the second determining module.
Second searching modul is used to be searched and be closed by the shape information of affiliated partner and/or the identification information of affiliated partner Join the object of match objects.
It should be noted that searching and associating by the shape information of affiliated partner and/or the identification information of affiliated partner The object of match objects includes three kinds of situations:Situation one, is searched and affiliated partner phase by the shape information of affiliated partner The object matched somebody with somebody, matching to match in shape now;Situation two, is searched and is associated by the identification information of affiliated partner The object of match objects, matching now is to match in mark;Situation three, by the shape information of affiliated partner and The identification information of affiliated partner searches the object matched with affiliated partner, now match in shape and in mark all Match.
Second judge module is used for the data of the data message and object matched with affiliated partner for judging affiliated partner Whether information is identical.
Wherein, when affiliated partner data and it is equal with the data of the object that affiliated partner matches when, judge association The data message of object and identical with the data message of the object that affiliated partner matches, otherwise differs.
For example, a circle can be geometry associativity object, a line segment can be the first associated object, if the circle Radius is 10 centimetres, then when line segment length is 10 centimetres, it can be determined that it is identical with the data message of line segment to go out round data message, Otherwise may determine that round data message and the data message of line segment are differed.
Second determining module is used for if it is judged that the data message of affiliated partner and the object matched with affiliated partner Data message it is identical, then using the object for matching as associated object.
Alternatively, in embodiments of the present invention, affiliated partner can include meeting the affiliated partner of default style, and association is closed System can include style incidence relation, and second acquisition unit can include:It is 3rd searching modul, the 3rd judge module, the 3rd true Recognize module and/or generation module.3rd searching modul is used to search the object for meeting default style from the presets list.Default wind Lattice can include color, line style etc..Wherein, line style can include the actual situation of line thickness and lines.3rd judge module is used for Whether the object that judgement meets default style matches with affiliated partner.3rd confirms that module is used for if it is judged that meeting default The object of style matches with affiliated partner, then the object that will meet default style is associated object as second.Generation module For if it is judged that meeting the object and affiliated partner mismatch of default style, then generation second is associated object.Need Bright, affiliated partner herein can be style manager.
Alternatively, the data processing equipment can also include:Indexing unit, display unit and/or generation unit.Specifically Ground, indexing unit is used for after being normal by the incidence relation reparation between affiliated partner and associated object, is to reparation Normal incidence relation is marked treatment, the incidence relation that marked.For example, to repairing as normal incidence relation enters Row color mark, obtains marked the incidence relation of color.Display unit is used to be shown in mapping software the association that marked Relation.Generation unit is used to generate the report repaired as normal incidence relation.
A kind of embodiments in accordance with the present invention, there is provided the data processing method of incidence relation in drawing for computer, The incidence relation that the data processing method for being used for incidence relation in computer drawing is used in computer drawing is destroyed Afterwards, it is normal for being repaired.The data processing method for being used for incidence relation in computer drawing may operate in computer In processing equipment.It should be noted that at the data for incidence relation in computer drawing that are provided of the embodiment of the present invention Reason method can be performed by the data processing equipment for incidence relation in computer drawing of the embodiment of the present invention, this hair The data processing equipment for incidence relation in computer drawing of bright embodiment can be used for performing the embodiment of the present invention For the data processing method of incidence relation in computer drawing.
Fig. 3 is the flow for the data processing method of incidence relation in computer drawing according to embodiments of the present invention Figure.
As shown in figure 3, the method includes steps S302 to step S308:
Step S302, obtains the affiliated partner in computer drawing.
Computer drawing can include history drawing and current drawing, wherein, history drawing refers to before current time The drawing drawn is completed, current drawing refers to the drawing drawn at current time.Computer drawing can be painted by computer Figure software is drawn, and computer drawing software can be including various, for example, computer drawing software can draw for CAD Software.It should be noted that if the content drawn in drawing is compared to a set, affiliated partner can be this and constitute the collection The element for closing.For example, if the content of drafting in drawing is a square, foursquare any a line and Any one angle can serve as affiliated partner.Affiliated partner is corresponding with associated object, and both are to be plotted in same calculating Object in machine drawing, and each affiliated partner can include one or more associated object.In addition, affiliated partner Polytype can be included.
Affiliated partner can in the following manner be obtained:
Mode one, can obtain affiliated partner from computer drawing, wherein it is possible to be obtained from whole computer drawing Affiliated partner, it is also possible to obtain affiliated partner from the predetermined region of computer drawing.
Specifically, before the affiliated partner in obtaining computer drawing:It is possible, firstly, to detect whether to need to perform history The OPEN of drawing;Secondly, if detecting the OPEN for needing to perform history drawing, history drawing is opened, wherein, After history drawing is opened, affiliated partner can be obtained from the history drawing of the opening;And need not be held if detected The OPEN of row history drawing, then detect whether there is the current drawing drawn or the history drawing having already turned on; If detecting the presence of the current drawing drawn or the history drawing having already turned on, can be current from what is drawn Affiliated partner is obtained in drawing or the history drawing having already turned on.
Mode two, can obtain affiliated partner from the affiliated partner list of computer drawing.
Specifically, can be with the incidence relation of associated object to obtain to need to analyze with the affiliated partner in traversal of lists No normal affiliated partner.
In sum, affiliated partner can be obtained from the history drawing opened or the current drawing drawn, or Person can obtain affiliated partner from affiliated partner list.
Step S304, obtains the associated object of affiliated partner.
In embodiments of the present invention, the associated object that in the following manner obtains affiliated partner can be based on:
Mode one, the associated object of affiliated partner is obtained based on position relationship.For example, can be to justify with affiliated partner The heart, obtains the associated object of affiliated partner in the border circular areas with preset length as radius.
Mode two, the characteristic information based on affiliated partner obtains the associated object of affiliated partner.Wherein, affiliated partner Characteristic information can include the shape information and data message of affiliated partner, for example, when affiliated partner is foursquare a line When, then the affiliated partner is shaped as a line segment, and the corresponding data of the shape can be the length and width of the line segment Deng.
Mode three, the additional information based on affiliated partner obtains the associated object of affiliated partner.Wherein, additional information can With the mark ID including affiliated partner.
Mode four, the associated object of the object acquisition affiliated partner specified based on user.Wherein, the object specified is Associated object.Specifically, first, software front end can receive the reparation order with the object specified of user's transmission;Its Secondary, software front end can go out the object specified according to the reparation command analysis, obtain analysis object;Then, software front end can be with Using the analysis object as affiliated partner associated object.
Mode five, the associated object of affiliated partner is obtained based on the style information that affiliated partner meets.Wherein, it is right to associate As the style information for meeting can be including affiliated partner colouring information and status information etc..For example, when affiliated partner is a circle When, the style that it meets can be including the line style of the line color of circle and circle etc..
It should be noted that the type of the affiliated partner in mode one to mode four is identical, the affiliated partner can be several The affiliated partner of what affiliated partner type;Affiliated partner in mode five can be the affiliated partner type for meeting default style Affiliated partner.
Whether step S306, the incidence relation between detection affiliated partner and associated object is normal.
Specifically, can in the following manner detect incidence relation between affiliated partner and associated object whether just Often:
Mode one, changes the position of affiliated partner, and whether the associated object of detection occurs predetermined change.If detect by There is predetermined change in affiliated partner, then the incidence relation between affiliated partner and associated object is normal.If detect closed There is no predetermined change in connection object, then the incidence relation between affiliated partner and associated object is abnormal.
Specifically, if only changing in position for associated object, is associated the phase of object and affiliated partner Position is not changed.For example, in having the circle of circumference and radius at one, circumference can be affiliated partner, and radius can be with To be associated object, when the change in location of circumference, the position of radius is also changed, and radius is protected with the relative position of circumference Hold constant.
Mode two, changes the data message of affiliated partner, and whether the associated object of detection occurs predetermined change.If detection There is predetermined change to associated object, then the incidence relation between affiliated partner and associated object is normal.If detected There is no predetermined change in associated object, then the incidence relation between affiliated partner and associated object is abnormal.
Specifically, here, associated object can be the dimension information of affiliated partner.If affiliated partner is in data message On change, then be associated object change into pre-set dimension.For example, affiliated partner is a line segment, object is associated to be somebody's turn to do The size of line segment, and the size is used to represent the length of the line segment, when line segment is when 1 centimetre is changed into 2 centimetres, then the line segment Size is 1 centimetre before change, is 2 centimetres after change.
Mode three, changes position and/or the data message of affiliated partner, and the associated object that detection meets default style is no Change.Changed if detecting and meeting the associated object of default style, affiliated partner and associated object it Between incidence relation it is abnormal.Do not changed if detecting and meeting the associated object of default style, affiliated partner and Incidence relation between associated object is normal.For example, a line segment, before position is changed, its associated object --- face Color is red, if after position is changed, its associated object --- color is other colors, then line segment is associated right with it As --- the incidence relation between color is abnormal;If after position is changed, its associated object --- color is red, Then line segment and its associated object --- the incidence relation between color is normal.
Step S308, if detecting that the incidence relation between affiliated partner and associated object is abnormal, will association Incidence relation reparation between object and associated object is normal.
Specifically, it is that normal step can include by the incidence relation reparation between affiliated partner and associated object: The associated object of affiliated partner is obtained first, incidence relation information table is secondly searched, default incidence relation is obtained, and is then based on Incidence relation reparation between affiliated partner and associated object is normal by the default incidence relation for finding.Wherein, obtain The mode of the associated object of affiliated partner has been told about above, will not be repeated here.
It should be noted that when being searched less than default incidence relation in incidence relation information table, can first generate pass The default incidence relation of connection object and associated object, then the default incidence relation based on generation is right with associated by affiliated partner Incidence relation reparation as between is normal.Preferably, incidence relation information is arrived in the default incidence relation storage that can be generated In table.
By the embodiment of the present invention, reach after incidence relation is destroyed, it is normal effect to be repaired, and is entered And the batch modification of computer drawing can be realized, improve the operating efficiency of revisions on drawings, and lifting drawing intelligent pipe Reason level.
Fig. 4 is the stream of the data processing method of incidence relation in the drawing for computer according to the preferred embodiment of the invention Cheng Tu.
As shown in figure 4, the data processing method for being used for incidence relation in computer drawing includes steps S402 To step S414, the embodiment can be as the preferred embodiment of embodiment illustrated in fig. 3.
In embodiments of the present invention, affiliated partner can include geometry associativity object, and incidence relation can be closed including geometry Connection relation.
Step S402, obtains the geometry associativity object in computer drawing.
Can obtain geometry associativity object from the history drawing or the current drawing drawn opened, or can be with Geometry associativity object is obtained from affiliated partner list, specific acquisition modes are similar with above-described embodiment, will not be repeated here. Preferably, before the geometry associativity object in obtaining computer drawing, can first by other non-geometric in computer drawing Affiliated partner is filtered out.
Step S404, searches multiple objects undetermined within a preset range.
It should be noted that the leading point of multiple objects undetermined is located in the characteristic point of geometry associativity object.
Specifically, the object multiple undetermined in computer drawing can in the following manner be obtained:
Mode one, is scanned for based on predeterminable area scope, is met the object multiple undetermined of default related information.Example Such as, can be scanned in the border circular areas with preset length as radius with geometry associativity object as the center of circle, be met pre- If the object multiple undetermined of related information.
Mode two, successively outwards search, is met the object multiple undetermined of default related information.For example, can with Geometry associativity object is the center of circle, is scanned in the multiple border circular areas with the incremental multiple preset lengths of equal difference as radius, is obtained To the object multiple undetermined for meeting default related information.
Step S406, judges whether multiple objects undetermined meet geometry associativity relation.
For example, if affiliated partner is circle, multiple objects undetermined are a plurality of line segment, it can be determined that whether a plurality of line segment meets Round radius this geometry associativity relation, wherein, if the length value of a plurality of line segment is equal with the value of the radius of circle, can sentence Break and a plurality of line segment and meet the radius of circle this geometry associativity relation.If the value of the radius of the length value of a plurality of line segment and circle is not It is equal, then may determine that a plurality of line segment is unsatisfactory for round radius this geometry associativity relation.
Step S408, if it is judged that multiple objects undetermined meet geometry associativity relation, then calculates multiple undetermined right respectively As the distance between with geometry associativity object.
Specifically, the geometric center or point immediate with geometry associativity object and geometry of multiple objects undetermined can be calculated The distance between preset on affiliated partner, obtains multiple distance values.Preset can be the central point of geometry associativity object. For example, the distance between central point in the geometric center and geometry associativity object of multiple objects undetermined can be calculated.Preferably, After multiple distance values are obtained, multiple distance values can be ranked up according to magnitude relationship, obtain a distance value ordered series of numbers.
Step S410, using the undetermined object minimum with the distance between geometry associativity object as the first associated object.
Preferably, the minimum distance value of numerical value can be searched from distance value ordered series of numbers first, secondly numerical value can be obtained most Corresponding one or more object undetermined of small distance value, then by the minimum distance value of numerical value it is corresponding one or more Object any undetermined in object undetermined is used as the first associated object.
If it should be noted that mode one and mode two can only find an object undetermined, by the object undetermined As the associated object of geometry associativity object.
Whether step S412, the geometry associativity relation between detection geometry associativity object and the first associated object is normal.
Specifically, the geometry associativity between geometry associativity object and the first associated object can in the following manner be detected Whether relation is normal:
Mode one, changes the position of geometry associativity object, and whether detection occurs predetermined change by the first affiliated partner.If Detect the first associated object and predetermined change occurs, then the geometry associativity between geometry associativity object and the first associated object Relation is normal.If detecting the first associated object does not occur predetermined change, it is right that geometry associativity object and first are associated Geometry associativity relation as between is abnormal.
Specifically, if first is associated only changing in position for object, the first associated object and geometry The relative position of affiliated partner does not change.For example, in a circle with circumference and radius, circumference can be closed for geometry Connection object, radius can be the first associated object, and when the change in location of circumference, the position of radius also changes, and half Footpath keeps constant with the relative position of circumference.
Mode two, changes the data message of geometry associativity object, and whether the associated object of detection first occurs predetermined change. If detecting the first associated object there is predetermined change, the geometry between geometry associativity object and the first associated object Incidence relation is normal.If detecting the first associated object does not occur predetermined change, geometry associativity object and first are closed Geometry associativity relation between connection object is abnormal.
Specifically, here, the first associated object can be the dimension information of geometry associativity object.If geometry associativity pair As being changed on data message, then the first associated object changes into pre-set dimension.For example, geometry associativity object is one Line segment, the first associated object is the size of the line segment, and the size is used to represent the length of the line segment, when line segment is by 1 li During 2 centimetres of meter Bian Wei, then the size of the line segment is 1 centimetre before change, is 2 centimetres after change.
Step S414, if detecting geometry associativity object and the first geometry associativity relation being associated between object not just Often, then by the geometry associativity relation reparation between geometry associativity object and the first associated object it is normal.
Specifically, incidence relation information table can include geometry associativity relation information table.By geometry associativity object and first Geometry associativity relation reparation between associated object is that normal step can include:The of geometry associativity object is obtained first One associated object, secondly searches geometry associativity relation information table, obtains default geometry associativity relation, is then based on what is found Geometry associativity relation reparation between geometry associativity object and the first associated object is normal by the default incidence relation of geometry.Its In, the mode for obtaining the first associated object of geometry associativity object has been told about above, will not be repeated here.
It should be noted that when being searched less than default geometry associativity relation in geometry associativity relation information table, can be with The first default geometry associativity relation of generation geometry associativity object and the first associated object, then the default geometry associativity based on generation Geometry associativity relation reparation between geometry associativity object and the first associated object is normal by relation.Preferably, can be by The default geometry associativity relation of generation is stored in geometry associativity relation information table.
By the embodiment of the present invention, reach after geometry associativity relation is destroyed, it is normal effect to be repaired Really, and then can realize the batch modification of computer drawing, improve the operating efficiency of revisions on drawings, and lifting drawing intelligence Change managerial skills.
Alternatively, in embodiments of the present invention, when affiliated partner can include geometry associativity object, affiliated partner can be wrapped The first associated object is included, when incidence relation can include geometry associativity relation, the step of the associated object of affiliated partner is obtained Suddenly can include:
First, searched and affiliated partner phase by the shape information of affiliated partner and/or the identification information of affiliated partner The object matched somebody with somebody.
It should be noted that searching and associating by the shape information of affiliated partner and/or the identification information of affiliated partner The object of match objects includes three kinds of situations:Situation one, is searched and affiliated partner phase by the shape information of affiliated partner The object matched somebody with somebody, matching to match in shape now;Situation two, is searched and is associated by the identification information of affiliated partner The object of match objects, matching now is to match in mark;Situation three, by the shape information of affiliated partner and The identification information of affiliated partner searches the object matched with affiliated partner, now match in shape and in mark all Match.
Secondly, judge affiliated partner data message and the object matched with affiliated partner data message whether phase Together.
Wherein, when affiliated partner data and it is equal with the data of the object that affiliated partner matches when, judge association The data message of object and identical with the data message of the object that affiliated partner matches, otherwise differs.
For example, a circle can be geometry associativity object, a line segment can be the first associated object, if the circle Radius is 10 centimetres, then when line segment length is 10 centimetres, it can be determined that it is identical with the data message of line segment to go out round data message, Otherwise may determine that round data message and the data message of line segment are differed.
Then, if it is judged that the data message phase of the data message of affiliated partner and the object matched with affiliated partner Together, then using the object for matching as associated object.
Alternatively, in embodiments of the present invention, affiliated partner can include meeting the affiliated partner of default style, and association is closed The step of system can include style incidence relation, the associated object for obtaining affiliated partner can include:First, from the presets list It is middle to search the object for meeting default style.Default style can include color, line style etc..Wherein, line style can include that lines are wide The actual situation of degree and lines.Secondly, judge whether the object for meeting default style matches with affiliated partner.Again, if it is determined that The object and affiliated partner for going out to meet default style match, then the object that will meet default style is associated right as second As.And/or if it is judged that meet the object and affiliated partner mismatch of default style, then generation second is associated object.Need It is noted that affiliated partner herein can be style manager.
Alternatively, after being normal by the incidence relation reparation between affiliated partner and associated object, at the data Reason method can also include:It is normal association to repairing as normal incidence relation is marked treatment and/or generation reparation The report of relation.Wherein, specifically, reparation may comprise steps of for normal incidence relation is marked treatment:It is first First, to repairing as normal incidence relation is marked treatment, the incidence relation that marked.For example, being normal to repairing Incidence relation carry out color mark, obtain marked the incidence relation of color;Then, show what be marked in mapping software Incidence relation.
It should be noted that can be in such as one group computer executable instructions the step of the flow of accompanying drawing is illustrated Performed in computer system, and, although logical order is shown in flow charts, but in some cases, can be with not The order being same as herein performs shown or described step.
Obviously, those skilled in the art should be understood that above-mentioned of the invention each module or each step can be with general Computing device realize that they can be concentrated on single computing device, or be distributed in multiple computing devices and constituted Network on, alternatively, the program code that they can be can perform with computing device be realized, it is thus possible to they are stored Performed by computing device in the storage device, or they be fabricated to each integrated circuit modules respectively, or by they In multiple modules or step single integrated circuit module is fabricated to realize.So, the present invention is not restricted to any specific Hardware and software is combined.
The preferred embodiments of the present invention are the foregoing is only, is not intended to limit the invention, for the skill of this area For art personnel, the present invention can have various modifications and variations.It is all within the spirit and principles in the present invention, made any repair Change, equivalent, improvement etc., should be included within the scope of the present invention.

Claims (10)

1. in a kind of drawing for computer incidence relation data processing method, it is characterised in that including:
Obtain the affiliated partner in computer drawing;
Obtain the associated object of the affiliated partner;
Detect whether the incidence relation between the affiliated partner and the associated object is normal;And
It is if detecting that the incidence relation between the affiliated partner and the associated object is abnormal, the association is right As and incidence relation reparation between the associated object be normal;
Wherein, detect whether the incidence relation between the affiliated partner and the associated object normally includes:
Change the position of the affiliated partner, detect whether the associated object occurs predetermined change, wherein, if detected There is predetermined change in the associated object, then the incidence relation between the affiliated partner and the associated object is normal, If detecting the associated object there is no predetermined change, the pass between the affiliated partner and the associated object Connection relation is abnormal;Or,
Change the data message of the affiliated partner, detect whether the associated object occurs predetermined change, wherein, if inspection Measure the associated object occur it is predetermined change, then the incidence relation between the affiliated partner and the associated object is being just Often, if detecting the associated object does not occur predetermined change, between the affiliated partner and the associated object Incidence relation it is abnormal;Or,
Change position and/or the data message of the affiliated partner, detection meet default style described associated object whether Change, wherein, do not changed if detecting and meeting the described associated object of the default style, the association Incidence relation between object and the associated object is normal, if detect meeting the described associated of the default style Object does not change, then the incidence relation between the affiliated partner and the associated object is abnormal;
It is normally to include by the incidence relation reparation between the affiliated partner and the associated object:Obtain the association right The associated object of elephant, searches incidence relation information table, obtains default incidence relation, is closed based on the described default association for finding Incidence relation reparation between the affiliated partner and the associated object is normal by system.
2. method according to claim 1, it is characterised in that the affiliated partner includes geometry associativity object, the pass Connection relation includes geometry associativity relation,
The affiliated partner obtained in computer drawing includes:The geometry associativity object in computer drawing is obtained,
The associated object for obtaining the affiliated partner includes:Multiple objects undetermined are searched within a preset range;Judge described many Whether individual object undetermined meets the geometry associativity relation;If it is judged that the multiple object undetermined meets the geometry associativity Relation, then calculate the distance between the multiple object undetermined and described geometry associativity object respectively;Will be with the geometry associativity The minimum object described undetermined of the distance between object is associated object as first,
Detect whether the incidence relation between the affiliated partner and the associated object normally includes:Detect that the geometry is closed Whether the geometry associativity relation between connection object and the first associated object is normal,
It is if detecting that the incidence relation between the affiliated partner and the associated object is abnormal, the association is right As and incidence relation reparation between the associated object normally to include:If detecting the geometry associativity object and institute The geometry associativity relation stated between the first associated object is abnormal, then by the geometry associativity object and first quilt The geometry associativity relation reparation between affiliated partner is normal.
3. method according to claim 1, it is characterised in that the associated object for obtaining the affiliated partner includes:
Searched and the affiliated partner phase by the shape information of the affiliated partner and/or the identification information of the affiliated partner The object of matching;
Whether the data message and the data message of the object matched with the affiliated partner for judging the affiliated partner are identical; And
If it is judged that the data message phase of the data message of the affiliated partner and the object matched with the affiliated partner Together, then using the object for matching as the associated object.
4. method according to claim 1, it is characterised in that the affiliated partner includes that the association for meeting default style is right As the incidence relation includes style incidence relation, and the associated object for obtaining the affiliated partner includes:
The object for meeting default style is searched from the presets list;
Whether the object that judgement meets the default style matches with the affiliated partner;
If it is judged that meeting the object of the default style and the affiliated partner matches, then meet described default by described The object of style is used as the second associated object;And/or
If it is judged that meeting the object of the default style and the affiliated partner is mismatched, then generate described second and be associated Object.
5. method according to claim 1, it is characterised in that by between the affiliated partner and the associated object Incidence relation reparation for after normal, methods described also includes:
To repairing as the normal incidence relation is marked treatment, the incidence relation that marked;
The incidence relation that be marked described in display;And/or
It is the report of the normal incidence relation that generation is repaired.
6. in a kind of drawing for computer incidence relation data processing equipment, it is characterised in that including:
First acquisition unit, for obtaining the affiliated partner in computer drawing;
Second acquisition unit, the associated object for obtaining the affiliated partner;
Whether detection unit is normal for detecting the incidence relation between the affiliated partner and the associated object;And
Unit is repaired, if abnormal for detecting the incidence relation between the affiliated partner and the associated object, It is then normal by the incidence relation reparation between the affiliated partner and the associated object;
Wherein, the detection unit is used to change the position of the affiliated partner, detects whether the associated object occurs pre- It is fixed to change, wherein, if detect the associated object occur it is predetermined change, the affiliated partner and described associated right Incidence relation as between is normal, if detecting the associated object there is no predetermined change, the affiliated partner and Incidence relation between the associated object is abnormal;Or,
Change the data message of the affiliated partner, detect whether the associated object occurs predetermined change, wherein, if inspection Measure the associated object occur it is predetermined change, then the incidence relation between the affiliated partner and the associated object is being just Often, if detecting the associated object does not occur predetermined change, between the affiliated partner and the associated object Incidence relation it is abnormal;Or,
Change position and/or the data message of the affiliated partner, detection meet default style described associated object whether Change, wherein, do not changed if detecting and meeting the described associated object of the default style, the association Incidence relation between object and the associated object is normal, if detect meeting the described associated of the default style Object does not change, then the incidence relation between the affiliated partner and the associated object is abnormal;
The unit of repairing is used to obtain the associated object of the affiliated partner, searches incidence relation information table, is preset Incidence relation, based on the described default incidence relation for finding by the association between the affiliated partner and the associated object Relation reparation is normal.
7. device according to claim 6, it is characterised in that the affiliated partner includes geometry associativity object, the pass Connection relation includes geometry associativity relation,
The first acquisition unit is additionally operable to obtain the geometry associativity object in computer drawing,
The second acquisition unit includes:First searching modul, for searching multiple objects undetermined within a preset range;First sentences Disconnected module, for judging whether the multiple object undetermined meets the geometry associativity relation;Computing module, for if it is determined that Go out the multiple object undetermined and meet the geometry associativity relation, then calculate the multiple object undetermined respectively and closed with the geometry The distance between connection object;First determining module, for will be treated with described in the distance between geometry associativity object minimum Object is determined as the first associated object,
The detection unit is additionally operable to detect the geometry between the geometry associativity object and the first associated object Whether incidence relation is normal,
If the unit of repairing is additionally operable to detect the institute between the geometry associativity object and the first associated object State that geometry associativity relation is abnormal, then close the geometry between the geometry associativity object and the first associated object Connection relation reparation is normal.
8. device according to claim 6, it is characterised in that the second acquisition unit includes:
Second searching modul, the identification information for the shape information by the affiliated partner and/or the affiliated partner is looked into Look for the object matched with the affiliated partner;
Second judge module, for the object that judges the data message of the affiliated partner and match with the affiliated partner Whether data message is identical;And
Second determining module, for if it is judged that the affiliated partner data message and match with the affiliated partner The data message of object is identical, then using the object for matching as the associated object.
9. device according to claim 6, it is characterised in that the affiliated partner includes meeting default style association right As the incidence relation includes style incidence relation, and the second acquisition unit includes:
3rd searching modul, the object of default style is met for being searched from the presets list;
Whether the 3rd judge module, the object for judging to meet the default style matches with the affiliated partner;
3rd confirms module, for if it is judged that meet the object of the default style and the affiliated partner matches, then Using the object for meeting the default style as the second associated object;And/or
Generation module, for if it is judged that meet the object of the default style and the affiliated partner is mismatched, then generating Described second associated object.
10. device according to claim 6, it is characterised in that also include:
Indexing unit, for by the incidence relation reparation between the affiliated partner and the associated object for it is normal it Afterwards, to repairing as the normal incidence relation is marked treatment, the incidence relation that marked;
Display unit, for showing the incidence relation that marked;And/or
Generation unit, is the report of the normal incidence relation for generating reparation.
CN201410062736.1A 2014-02-24 2014-02-24 For the data processing method and device of incidence relation in computer drawing Active CN103778253B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410062736.1A CN103778253B (en) 2014-02-24 2014-02-24 For the data processing method and device of incidence relation in computer drawing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410062736.1A CN103778253B (en) 2014-02-24 2014-02-24 For the data processing method and device of incidence relation in computer drawing

Publications (2)

Publication Number Publication Date
CN103778253A CN103778253A (en) 2014-05-07
CN103778253B true CN103778253B (en) 2017-06-06

Family

ID=50570488

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410062736.1A Active CN103778253B (en) 2014-02-24 2014-02-24 For the data processing method and device of incidence relation in computer drawing

Country Status (1)

Country Link
CN (1) CN103778253B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101446999A (en) * 2008-12-24 2009-06-03 南京大学 Automatic checking method for dimension line marking error in engineering drawing
CN102156752A (en) * 2011-04-27 2011-08-17 北京数码大方科技有限公司 Method and device for updating annotation object of CAD (computer-aided design)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8099684B2 (en) * 2009-01-08 2012-01-17 International Business Machines Corporation Methodology of placing printing assist feature for random mask layout

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101446999A (en) * 2008-12-24 2009-06-03 南京大学 Automatic checking method for dimension line marking error in engineering drawing
CN102156752A (en) * 2011-04-27 2011-08-17 北京数码大方科技有限公司 Method and device for updating annotation object of CAD (computer-aided design)

Also Published As

Publication number Publication date
CN103778253A (en) 2014-05-07

Similar Documents

Publication Publication Date Title
Selinger et al. A perceptual grouping hierarchy for appearance-based 3d object recognition
CN108269269A (en) Method for tracking target and device
CN106803244A (en) Defect identification method and system
CN107255522B (en) A kind of method and device of transformer fault diagnosis
CN103714077A (en) Method and device for retrieving objects and method and device for verifying retrieval
CN108205493A (en) A kind of code detection method, terminal, server and system
CN107563265A (en) A kind of high beam detection method and device
CN107958255A (en) A kind of object detection method and device based on image
CN110119680A (en) A kind of electrical cabinet wiring automatic errordetecting system based on image recognition
CN110516514A (en) A kind of modeling method and device of target detection model
CN111680704B (en) Automatic and rapid extraction method and device for newly-increased human active plaque of ocean red line
CN107111748A (en) For the method and system for the device that control system is configured based on engineering pattern object
CN109509222A (en) The detection method and device of straight line type objects
CN109460757A (en) Seal location recognition method and device
CN104572999A (en) Heterogeneous data based detecting method and device for fault data
CN109635755A (en) Face extraction method, apparatus and storage medium
CN108830184A (en) Black eye recognition methods and device
Arman et al. Cad-based vision: object recognition in cluttered range images using recognition strategies
CN108171229A (en) A kind of recognition methods of hollow adhesion identifying code and system
CN107784287A (en) A kind of detection method and device, computer installation, readable storage medium storing program for executing
CN103778253B (en) For the data processing method and device of incidence relation in computer drawing
CN108280471B (en) Machine vision-based change-over switch state identification method
CN109508643A (en) Image processing method and device for porny
CN111105411B (en) Magnetic shoe surface defect detection method
CN105718929B (en) The quick round object localization method of high-precision and system under round-the-clock circumstances not known

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant