Summary of the invention
Based on this, be necessary the problem for the shortcoming of prior art, provide a kind of based on the disposal route of CAD platform to the wire harness of electronic product.
A kind of based on the disposal route of CAD platform to the wire harness of electronic product, this disposal route may further comprise the steps:
S1: draw drawing; Comprise drafting connector and topological diagram, setting connector parameter, set the take-off point parameter, reach the preseting length parameter; This connector comprises contiguous block and block attached, and this topological diagram comprises branch's piece and length block; Set described connector parameter on described contiguous block and the block attached, described branch piece arranges the take-off point parameter, and described length block arranges length parameter, and described each contiguous block has corresponding wire size parameter;
S2: short dot is set; Calculate the shortest short dot of electric wire overall length that makes this wire size between the plural identical wire size, and the short dot that goes out that will calculate is generated as short-circuit block automatically;
S3: data are processed and statistics output; Seek out all identical wire sizes according to described connector parameter, according between each identical wire size the route of process calculate circuit and length between this identical wire size in conjunction with short dot and length parameter, and each parameter of each wire size and the length that calculates are listed as into material table output.
Further, among the described step S2, when the short dot between the identical wire size is a plurality of, partial short circuit point selection deletion, other electric wires that automatically will connect this deleted short dot are moved on on another short dot.
Further, connector parameter described in the described step S1 comprises location parameter, terminal parameters and electric wire parameter, and described location parameter is arranged in the block attached, and described terminal parameters and electric wire parameter are arranged in the contiguous block.
Further, the electric wire parameter of described contiguous block comprises the information of described wire size.
Further, the drafting drawing among the described step S1 is that the figure that will have now first in the drawing converts corresponding contiguous block, block attached, branch's piece and length block to, and then replenishes the parameter that lacks.
A kind of based on the disposal route of CAD platform to the wire harness of electronic product, this disposal route may further comprise the steps:
S1: draw drawing; Comprise drafting connector and topological diagram, setting connector parameter, set the take-off point parameter, reach the preseting length parameter; This connector comprises contiguous block and block attached, and this topological diagram comprises branch's piece and length block; Set described connector parameter on described contiguous block and the block attached, described branch piece arranges the take-off point parameter, and described length block arranges length parameter, and described each contiguous block has corresponding wire size parameter;
S2: data are processed and statistics output; Seek out all identical wire sizes according to described connector parameter, calculate the shortest circuit and shortest length between this identical wire size according to the length parameter of correspondence, and each parameter of each wire size and the length that calculates are listed as into material table output.
Further, connector parameter described in the described step S1 comprises location parameter, terminal parameters and electric wire parameter, and described location parameter is arranged on the block attached, and described terminal parameters and electric wire parameter are arranged on the contiguous block.
Further, described step S2 also comprises when only having two wire sizes identical, makes inspection to all parameters of contiguous block with these two wire sizes are whether identical.
Further, the drafting drawing among the described step S1 is that the figure that will have now first in the drawing converts corresponding contiguous block, block attached, branch's piece and length block to, and then replenishes the parameter that lacks.
Further, described connector comprises several grids, and described contiguous block is arranged in the corresponding grid.
The present invention is based on the CAD platform to the disposal route of the wire harness of electronic product, by the property parameters of piece directly is set at the CAD drawing platform, calculate rapidly the overall length of different wire harness, and list the material table lattice for producers, need not to use external data base, accurate quick.
Embodiment
For further understanding feature of the present invention, technological means and the specific purposes that reach, function, resolve the advantages and spirit of the present invention, by below in conjunction with accompanying drawing and embodiment detailed description of the present invention being further understood.
The secondary development of invention thought of the present invention for carrying out at the CAD platform, the LISP of using CAD to carry is weaved into the various command module, and uses in conjunction with the original order of CAD.
See also Fig. 1 to Fig. 7, the specific embodiment of the present invention may further comprise the steps:
S1: draw drawing; This step comprises drafting connector and topological diagram, setting connector parameter, sets the take-off point parameter, reaches the preseting length parameter, and each content is specific as follows:
A: described drafting connector 10 and topological Figure 20; The shape of described connector 10 can be that rectangle, circle or other are irregularly shaped.Described connector 10 comprises some grids 11, is used for inserting having the contiguous block 12 that connects parameter.Every a connector 10 also comprises block attached 14, is mainly used in inserting location parameter and other parameters such as the title of this connector 10.Described topological Figure 20 is wiring diagram, to connect each connector 10.The take-off point of described topological Figure 20 is provided with branch's piece 21, is provided with length block 25 between described connector 10 and adjacent take-off point or adjacent two take-off points.In the present invention, the implication of piece refers to the piece of CAD definition, has property parameters and the optionally display part or all parameter that can revise.
B: set the connector parameter, set the take-off point parameter, reach the preseting length parameter; Described connector parameter, take-off point parameter, length parameter are to realize by the parameter of setting contiguous block 12 and block attached 14, branch's piece 21, length block 25 respectively.
As shown in Figure 2 to Figure 3, described connector 10 has nine contiguous blocks 12, and each contiguous block 12 has included terminal parameters and electric wire parameter.The electric wire parameter refers to connect wire size, diameter, color etc. the parameter of electric wire of the corresponding terminal of this connector; Terminal parameters refers to connector position, terminal hole position, corresponding reed etc. parameter under should the terminal of electric wire.Illustrate one of them contiguous block 12(305/1.0B1), Fig. 2 shows that this electric wire parameter is that wire size is 305, diameter is that 1.0mm, color are black (the B regulation represents black); The display end subparameter is as representing that connector position is P1, Kong Weiwei 6 etc. under this terminal among Fig. 3.In the present embodiment, the electric wire parameter 305/1.0B1 of these 12 display parts of contiguous block, other connects parameter hides and arranges, and can make things convenient for greatly so that the user uses intuitively, debugging.
In like manner, 14 display part subsidiary parameter of the described block attached of every a connector 10, as position P1, the function of this connector " connect the ceiling wire harness ", title " sheath " etc., more parameter can be made modification by double-clicking this block attached 14 of editor.
As shown in Figure 4, branch's piece 21 of described topological Figure 20 represents that by one or two concentric circles and cross its parameter mainly represents the position of this take-off point, and such as these branch's piece 21 expressions are nodes that a position is defined as J01.
As shown in Figure 5, described length block 25 only shown a length numeral, the parameter in it comprise the first endpoint location, the second endpoint location, and the first end points and the second end points between length.P1, the second end points title J01, and length 1300 such as the first end point title of this length block 25 among Fig. 5, expression be that the position is that the connector of P1 and the distance of the take-off point that this position is J01 are 1300.
Be appreciated that ground, step S1 of the present invention draws drawing except the mode of direct each piece of drafting, also can be by coming changing in the existing drawing, and conversion method is that the generic graphic that do not possess piece similar to Fig. 1 is converted into the figure that has piece among the present invention.The fulcrum that is converted to block attached, topological diagram such as the mark that the electric wire parameter in the connector in client's original figure is converted to contiguous block, connector be automatically converted to branch's piece, and the digital conversion of expression length be length block, the piece after these conversions all has certain basic parameter; Then the piece supplementary parameter after optionally will changing, as replenish the parameter that lacks at the contiguous block after the conversion and block attached, replenish the parameter that lacks at the branch's piece after the conversion, the length block after conversion is replenished the parameter that lacks;
S2: short dot is set; When the meaning of short dot of the present invention refers to that the contiguous block with identical wire size 12 in the different connectors 10 is more than two, because identical wire size all needs line between any two, the loop of may forming section repeating, need to select a rational binding site, the circuit that repeats is merged into one, and this point is short dot.The present invention is according to the diverse location of the contiguous block 12 with identical wire size, to all take-off points on the route of process be assumed to be short dot after formed overall length calculate, draw more afterwards that take-off point of the shortest circuit of overall length as short dot.Contiguous block 12(305/1.0B1 for example) connector 12 in P1, P2, P6 position all has, the program that sets is arranged on short dot on the take-off point J01 according to the shortest principle, and automatically generate short-circuit block S1 and be placed on this short dot, this short-circuit block S1 is provided with corresponding parameter.Simultaneously, export the parameter of this short-circuit block S1 such as the form of Fig. 6 and judge that for the user this table can show the relevant connection of short dot.If a plurality of short dots appear in same wire size in the drawing of complexity, and the user is because the factor of cost thinks that certain short dot does not need, the user then can delete this short dot, and the electric wire that program can be automatically will arrive this point according to user's deletion moves on to fast another point and goes short circuit to guarantee that institute's live wire of same group is in same current potential.Be appreciated that ground, short dot in the drawing processing that has, can't occur or not need to arrange short dot, so the step of this S2 and non-essential.
S3: data are processed and statistics output
When short dot not being set, be skips steps S2, connector 10 and topological Figure 20 of directly drawing according to step S1, read the parameter of the length block 25 of the parameter of branch's piece 21 of the subsidiary parameter of the block attached 14 of the terminal parameters of contiguous block 12 of each connector 10 and electric wire parameter, each connector 10, topological Figure 20, topological Figure 20, automatically calculate the overall length of identical wire size.
When short dot being set, connector 10 and topological Figure 20 of directly drawing according to step S1, S2, read the parameter of the length block 25 of the parameter of branch's piece 21 of the subsidiary parameter of the block attached 14 of the terminal parameters of contiguous block 12 of each connector 10 and electric wire parameter, each connector 10, topological Figure 20, topological Figure 20, the parameter of short dot, automatically calculate identical wire size and save the later overall length of short dot repeating part, and with the required material form of the automatic generation of each parameter, as shown in Figures 7 and 8.
Be appreciated that ground, in the process that data are processed among this step S3, the present invention also carries out debugging to the parameter among the step S1; According to working as the contiguous block that only has two identical wire sizes, other parameters of the contiguous block of the wire size that this is identical such as color, diameter be necessary identical principle also, so only have two and parameter not simultaneously when identical wire size occurring, then automatically send the generation miscue, to reach error-disable function.
The present invention is based on the CAD platform to the disposal route of the wire harness of electronic product, by the property parameters of piece directly is set at the CAD drawing platform, calculate rapidly the overall length of different wire harness, and list the material table lattice for producers, need not to use external data base.Wherein, because the length of each section electric wire is by length block 25 definition, need not to draw according to actual ratio, draw with revise all very convenient.The material form of deriving can also be directly changed into the Excel form by setting except can directly automatically drawing out for the engineering staff in CAD, efficient and convenient.
Further, the automatic generation of described short dot has been avoided manually removing to seek short dot in a plurality of loops of complicated drawing, and is fast and simple, saves very much manpower.
The above embodiment has only expressed several embodiment of the present invention, and it describes comparatively concrete and detailed, but can not therefore be interpreted as the restriction to claim of the present invention.Should be pointed out that for the person of ordinary skill of the art without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.