The dynamic primitive blanking system and method
[technical field]
The invention relates to primitive control system and method in a kind of AutoCAD system, especially about a kind of AutoCAD pel blanking system and method.
[background technology]
Concern for expressing two positions of intersecting between the part in the existing CAD system, shear by the line segment that will be covered part mostly, this shearing manipulation is sheared same part to be divided into a plurality of independently pels, when the user carries out the postorder editing operation, during as move operation, understanding some pel that is sheared will repaint, and understands some pel equally and will re-execute shearing manipulation, this operation is not only loaded down with trivial details, time-consuming, has also caused the imperfection of same part simultaneously.Though the exploitation about CAD system deepens continuously at present, there is not a kind of system can realize the dynamic blanking of pel, promptly the real-time implementation blanking is operated in the editing operation of pel, and keeps the integrality of part, but not the shearing and the drafting that repeat.Therefore, a kind of dynamic primitive blanking of needs system can realize the dynamic blanking operation of pel under the situation of not destroying part integrity.
[summary of the invention]
Fundamental purpose of the present invention is to provide a kind of dynamic primitive blanking system and method, and it can intersect in the entity two according to the corresponding relation between the entity is covered the dynamic blanking of line segment partly, and does not destroy the integrality of former entity.
For achieving the above object, the invention provides a kind of dynamic primitive blanking system, this dynamic primitive blanking system comprises a plurality of client computers, a network, an application server and a database.Each client computer has a user interface, carries out the associative operation of dynamic primitive blanking for the user, and is used for displayed map shelves treatment state.Client computer links to each other with application server by network.Application server comprises that a plurality of software function modules are used for splitting engineering document, draw each entity of engineering drawing and determine each inter-entity position relation, and carries out the blanking operation.Described engineering document refers to the product design planning chart, and it comprises information such as product one-piece construction, size marking and each assembly matching relationship.Network can be intranet (Intranet), also can be the communication network of Internet (Internet) or other type.Database is used for storing the various information that the dynamic primitive concealment process is used or produced, and comprises engineering document information, entity information, and wherein entity information comprises that entity numbering, two entity intersecting point coordinate values and entity obtain information such as corresponding relation.
Wherein application server comprises that figure shelves split module, an entity generation module, a dynamic blanking module and a blanking reminding module.The figure shelves split module and are used for integrated engineering figure shelves are split into a plurality of independently unit.The entity generation module is used to draw each separate unit after the above-mentioned fractionation, and as a whole managing done in each unit in three views, promptly each independently the unit be an entity, pay a particular number with each entity.Dynamically the blanking module is used to carry out the blanking operation, will intersect the line segment blanking of being covered part in two entities.The blanking reminding module is used for sending in the information indicating hurdle and carrying out the blanking operation indicating after the user carries out mobile or deletion action, has avoided user's carelessness operation.
Wherein dynamically the blanking module also comprises a plurality of submodules, and a coordinate system is set up submodule, an entity obtains submodule, a coordinate figure comparison sub-module and a line segment blanking submodule.
General plane design drawing shelves all are to draw in three views, be front view, left view and vertical view, coordinate system is set up submodule is used for setting up each view in three range of views that the user determines two-dimensional coordinate system, it comprises X coordinate and Y coordinate, is used to represent that two intersect entity intersecting point coordinate value.Entity obtains the numbering that submodule is used to receive two entities that the user selectes, and obtains corresponding entity in other corresponding views according to this numbering, in order to two entity intersecting point coordinate values in the view of determining to get access to.Wherein the corresponding relation between the corresponding entity need pre-determine in the corresponding views, and this corresponding relation is stored in the database.Since represented in the front view two entities about and context, during selected in the ban front view, determine that its upper and lower relation just should obtain vertical view, this entity obtains submodule and can obtain corresponding entity in the vertical view at this moment, in like manner, when formerly selecting vertical view, obtain corresponding entity in the front view; When formerly selecting left view, obtain corresponding entity in the front view.The coordinate figure comparison sub-module is used for the more above-mentioned two entity intersecting point coordinate value sizes that get access to, and comparing result is stored in the database.Line segment blanking submodule is used for according to above-mentioned comparative result, to need the line segment blanking of blanking in the selected view, this blanking operation is not deletion or interrupts this line segment, and former entity is still an integral body, still be present in the figure shelves by the line segment of blanking, just be in not show state.
For achieving the above object, the present invention also provides a kind of dynamic primitive blanking method, and it comprises the steps: that (a) splits into a plurality of independently unit with integrated engineering figure shelves; (b) draw each separate unit after the above-mentioned fractionation, as a whole managing done in each unit in three view, promptly each independently the unit be an entity, pay a particular number with each entity; (c) carry out the blanking operation, will intersect the line segment blanking of being covered part in two entities; (d) in three range of views that the user determines, set up the two-dimensional coordinate system of each view, comprise X coordinate and Y coordinate; (e) receive the number information of two entities in the view that the user selectes, and be stored in the database; (f) numbering of two entities of selecting according to above-mentioned user is obtained the corresponding entity in the respective view, in order to determine the intersecting point coordinate value of two entities in this view that gets access to; (g) the intersecting point coordinate value size of more above-mentioned two entities that get access in vertical view mainly compares Y coordinate figure size, and comparative result is stored in the database; (h) according to above-mentioned comparative result, the entity that the Y coordinate figure is bigger in the view of determining to get access to is positioned at after the less entity of relative Y coordinate figure, the part line segment blanking that needs the entity that this Y coordinate figure is bigger to intersect in front view.
Dynamic primitive blanking system and method for the present invention can be realized dynamic primitive blanking according to the assembly relation of view, the line segment of being covered part in the view is hidden, rather than to the shearing of line segment, the integrality that can keep former figure shelves, it is simple to operate, for the editing and processing that the user is follow-up is provided convenience.
[description of drawings]
Fig. 1 is the hardware structure figure of dynamic primitive blanking of the present invention system.
Fig. 2 is the application server main software functional block diagram of dynamic primitive blanking of the present invention system.
Fig. 3 is the submodule figure of the dynamic blanking module of dynamic primitive blanking of the present invention system.
Fig. 4 is the integrated operation process flow diagram of dynamic primitive blanking method of the present invention.
Fig. 5 is the dynamic blanking operational flowchart of dynamic primitive blanking method of the present invention.
[embodiment]
Seeing also shown in Figure 1ly, is the hardware structure figure of dynamic primitive blanking of the present invention system.This dynamic primitive blanking system comprises that a plurality of client computers 10, a network 11, an application server 12, connect 13 and one database 14.Each client computer 10 has a user interface, carries out the associative operation of dynamic primitive blanking for the user, and is used for displayed map shelves treatment state.Client computer 10 links to each other with application server 12 by network 11.Application server 12 comprises that a plurality of software function modules are used for splitting engineering document, draw each entity of engineering drawing and determine each inter-entity position relation, and carries out the blanking operation.Described engineering document refers to the product design planning chart, and it comprises information such as product one-piece construction, size marking and each assembly matching relationship.Network 11 can be intranet (Intranet), also can be the communication network of Internet (Internet) or other type.Database 14 is used for storing the various information that the dynamic primitive concealment process is used or produced, and comprises engineering document information, entity information.Wherein entity is to be used to manage pel in the dynamic primitive blanking system and method for the present invention, and engineering document is split into each independently unit, and each is independently done as a whole managing in the unit in three views, and this independently is called entity in the unit.This entity information comprises that entity numbering, two entity intersecting point coordinate values and entity obtain information such as corresponding relation.Database 14 connects 13 by one and is connected with application server 12.Connecting 13 is that a database connects, as the open type data storehouse connect (OpenDatabase Connectivity, ODBC), or the Java database connect (Java DatabaseConnectivity, JDBC) etc.
Seeing also shown in Figure 2ly, is the application server main software functional block diagram of dynamic primitive blanking of the present invention system.Application server 12 of the present invention comprises that figure shelves split module 121, an entity generation module 122, one dynamic blanking module 123, a blanking reminding module 124.
The figure shelves split module 121 and are used for integrated engineering figure shelves are split into a plurality of independently unit.Entity generation module 122 is used to draw each separate unit after the above-mentioned fractionation, and as a whole managing done in each unit in three views, promptly each independently the unit be an entity, pay a particular number with each entity.Dynamically blanking module 123 is used to carry out the blanking operation, will intersect the line segment blanking of being covered part in two entities.This dynamic blanking module 123 comprises a plurality of submodules, and concrete function explanation and detailed blanking operation are referring to Fig. 3 explanation.Blanking reminding module 124 is used for sending in the information indicating hurdle and carrying out the blanking operation indicating after the user carries out mobile or deletion action, has avoided user's carelessness operation.
Seeing also shown in Figure 3ly, is the submodule figure of the dynamic blanking module of dynamic primitive blanking of the present invention system.This dynamic blanking module 123 comprises that a coordinate system is set up submodule 1231, an entity obtains submodule 1232, a coordinate figure comparison sub-module 1233 and a line segment blanking submodule 1234.
General plane design drawing shelves all are to draw in three views, be front view, left view and vertical view, coordinate system is set up submodule 1231 is used for setting up each view in three range of views that the user determines two-dimensional coordinate system, it comprises X coordinate and Y coordinate, is used to represent that two intersect entity intersecting point coordinate value.Entity obtains the numbering that submodule 1232 is used to receive two entities that the user selectes, and obtains corresponding entity in other corresponding views according to this numbering, in order to two entity intersecting point coordinate values in the view of determining to get access to.Wherein the corresponding relation between the corresponding entity need pre-determine in the corresponding views, and this corresponding relation is stored in the database 14.Since represented in the front view two entities about and context, when selecting front view in the ban, determine that its upper and lower relation just should obtain vertical view, this entity obtains submodule 1232 and can obtain corresponding entity in the vertical view at this moment, in like manner, when formerly selecting vertical view, obtain corresponding entity in the front view; When formerly selecting left view, obtain corresponding entity in the front view.Coordinate figure comparison sub-module 1233 is used for the more above-mentioned two entity intersecting point coordinate value sizes that get access to, and comparing result is stored in the database 14.Line segment blanking submodule 1234 is used for according to above-mentioned comparative result, to need the line segment blanking of blanking in the selected view, this blanking operation is not deletion or interrupts this line segment, and former entity is still an integral body, still be present in the figure shelves by the line segment of blanking, just be in not show state.
Seeing also shown in Figure 4ly, is the integrated operation process flow diagram of dynamic primitive blanking method of the present invention.At first, the figure shelves split module 121 integrated engineering figure shelves are split into a plurality of independently unit (step S300).Entity generation module 122 is drawn each separate unit after the above-mentioned fractionation, and as a whole managing done in each unit in three views, promptly each independently the unit be an entity, pay a particular number (step S301) with each entity.Dynamically blanking module 123 is carried out the blanking operation, will intersect the line segment blanking (step S302) of being covered part in two entities.Blanking reminding module 124 judges whether the user carried out mobile or deletion action (step S303), if carrying out, the user moved or deletion action, then blanking reminding module 124 sends in the information indicating hurdle and carries out the blanking operation indicating, remind the user to carry out the blanking operation, otherwise can't carry out next step operation (step S304).If the user does not carry out and moves or deletion action, then return step S301, continue to draw next entity.
Seeing also shown in Figure 5ly, is the dynamic blanking operational flowchart of dynamic primitive blanking method of the present invention.Coordinate system is set up submodule 1231 is set up each view in three range of views that the user determines two-dimensional coordinate system, and it comprises X coordinate and Y coordinate, is used to represent that two intersect entity intersecting point coordinate value (step S400).Entity obtains submodule 1232 and receives two entity number information in the front view that users select, and be stored in (step S401) in the database 14, the numbering that this entity obtains two entities that submodule 1232 selectes according to above-mentioned user is obtained the corresponding entity in the vertical view, in order to determine the intersecting point coordinate value (step S402) of two entities in the vertical view.The intersecting point coordinate value size of coordinate figure comparison sub-module 1233 more above-mentioned two entities that get access in vertical view mainly compares Y coordinate figure size, and comparative result is stored in (step S403) in the database 14.Line segment blanking submodule 1234 is according to above-mentioned comparative result, determine that the entity that the Y coordinate figure is bigger in the vertical view is positioned at after the less entity of relative Y coordinate figure, the part line segment blanking that needs the entity that this Y coordinate figure is bigger in front view, to intersect, this blanking operation is not deletion or interrupts this line segment, former entity is still an integral body, still be present in the figure shelves by the line segment of blanking, just be in not show state (step S404).This operating process is primarily aimed at the operation steps when selecting front view earlier, and the operation reason when earlier selected vertical view and left view is identical, and step is with reference to this flow process.