A method for quickly drawing power line map or geographical roadmap
A method for quickly drawing power line map or geographical roadmap
 CN 101,086,787 A
 Filed: 06/07/2007
 Published: 12/12/2007
 Est. Priority Date: 06/07/2007
 Status: Active Application
First Claim
1. , the method for a kind of quick drafting power circuit figure or geographical wiring diagram is characterized in that drawing step is as follows:
 A) Xo, Yo are set for drawing the starting point of coordinate in length and breadth of circuit in plotting file, X1, Y1 are set for drawing the circuit terminal point of coordinate in length and breadth, R, W, H, L1, five system variables of L2 are set again;
wherein R represents radius of a circle, the width of W representative table case, the height of H representative table case, L1 represents the length of every section on main line, L2 represents the length of entrance line, between two circles, between circle and the table case or justify and transformer between line segment be one grade, carry out the quick drafting of line pattern by the setting of five variablees of dynamic adjustment;
B) when carrying out QuickDraw, draw earlier main line, and then draw entrance line, draw main line or entrance line and change by keyboard, menu options or by the drawing button;
C) enter the function of drawing main line after, the reconnaissance left button of clicking the mouse according to the circuit needs, first electric pole will be drawn in click place by system;
Click the electric pole of just having drawn again, this electric pole is with selected, and rolling mouse is just drawn main line then, does not press any key of mouse during rolling mouse;
D) drafting of line mains.
Chinese PRB Reexamination
Abstract
A quick power route or geographical route drawing method starts with the setting of Xo, Yo as the coordinate starting points, terminal of the coordinates, then the R, W, H, L1, L2 to show the five system variables, with R representing the radius, W the width of the case, H the height of the case, L1 the length of each segment, L2 the length of the under line, with segments between the circles, circle and case, circle and the transformer as shifts, through dynamic adjustment of the five variables for quick drawing; then draws the main lines and later the under lines through drawing knob or menu selection or keyboard for switch, the drawing of the main segment selecting the left key of the mouse with an electric pole drawn, and the next electric pole with the moving of the mouse to complete the drawing without pressing any keys. It is effective and high in speed, improved in quality and reduced in labor.

5 Citations
Electric power communication network graph standardized software  
Patent #
CN 103,136,768 A
Filed 11/25/2011

Current Assignee

Real time monitoring and analyzing technology for power line damage  
Patent #
CN 1,392,518 A
Filed 04/13/2002

Current Assignee

Manufacturing method of plaster type pole number  
Patent #
CN 1,657,725 A
Filed 02/20/2004

Current Assignee

Threedimensional stereoscopic perspective view automatic Drafting method  
Patent #
CN 85,106,870 A
Filed 09/17/1985

Current Assignee

Wiring pattern drawing formation method and circuit board manufactured by using the same  
Patent #
US 20060154074A1
Filed 12/20/2005

Current Assignee
N/A

3 Claims

1. , the method for a kind of quick drafting power circuit figure or geographical wiring diagram is characterized in that drawing step is as follows:

A) Xo, Yo are set for drawing the starting point of coordinate in length and breadth of circuit in plotting file, X1, Y1 are set for drawing the circuit terminal point of coordinate in length and breadth, R, W, H, L1, five system variables of L2 are set again;
wherein R represents radius of a circle, the width of W representative table case, the height of H representative table case, L1 represents the length of every section on main line, L2 represents the length of entrance line, between two circles, between circle and the table case or justify and transformer between line segment be one grade, carry out the quick drafting of line pattern by the setting of five variablees of dynamic adjustment;B) when carrying out QuickDraw, draw earlier main line, and then draw entrance line, draw main line or entrance line and change by keyboard, menu options or by the drawing button; C) enter the function of drawing main line after, the reconnaissance left button of clicking the mouse according to the circuit needs, first electric pole will be drawn in click place by system;
Click the electric pole of just having drawn again, this electric pole is with selected, and rolling mouse is just drawn main line then, does not press any key of mouse during rolling mouse;D) drafting of line mains.


2. the method for quick drafting power circuit figure according to claim 1 or geographical wiring diagram is characterized in that
I) the shelves number of drawing calculates: 
Suppose that the mouse current location is LL to the distance between the center of circle of selected circle, so shelves number n=LL/ (L1+2*R), round numerical value gets final product, wherein L1, R are above mentioned predefined system variables;
LL can try to achieve by the range formula between 2 in the coordinate system;LL＝
sqrt((X1Xo) ^{2}+(Y1Yo) ^{2})Wherein sqrt asks the arithmetic square root function, and X1, Y1 are the coordinates of current mouse table position, Xo, Yo be selected, as the centre coordinate of the circle of starting point; The quantity of shelves equates with the quantity of wanting draw circles and line segment, before the coordinate of determining central coordinate of circle that each is round and line segment twoendpoint, and line between 2 of definite starting point of elder generation and the mouse current locations and the angle between the Xaxis, computing formula is as follows; COS(A)＝
(X1Xo)/LLA=acos (COS (A)) * 180/M_PI;
The unit of angle is degree, the antisurplus profound function of acosDetermine angle;
the if (A=A+2* (180AA) of Y1＞
Yo) according to 2 positions relation then;If (A＞
354A＜
6) AA=0;
Press zero degree when angle is very little and handle the circuit of so easy drafting level, perpendicular line;Else if (A＞
84﹠
amp;
﹠
amp;
A＜
96) A=90;
Identical with other drawing instrument, by cooperate drafting level or horizontal path with keyboard;Else if (A＞
174﹠
amp;
﹠
amp;
A＜
186) A=180;
The speed that influence is drawn, disposal route is that abovementioned dual mode all provides;Else if (A＞
264﹠
amp;
﹠
amp;
A＜
276) A=270;
Select to make by the user with mode;A=A*M_PI/180;
// be converted into radian;Ii) central coordinate of circle is definite; Definite formula of n central coordinate of circle is as follows; X1=Xo+ (R*2*n+L1*n) * COS (A) L1 is the length of main line, and R is the radius of a circle of representative electric pole After y1=Yo(R*2*n+L1*n) * SIN (A) determines central coordinate of circle and radius, draw all circles by the simple cycle statement; Iii) determine each line segment starting point and terminal point coordinate; The calculating of n line segment starting point coordinate; TL=2*R* (0.5+n1)+L1* (n11) calculates the distance of n line segment starting point to the drawing starting point Xq=Xo+TL*COS (A) starting point X Coordinate Calculation Yq=YoTL*SIN (A) starting point Y Coordinate Calculation N line segment terminal point coordinate; TL=2*R* (0.5+n1)+n line segment terminal point of L1*n1 is to drawing starting point distance calculation Xz=Xo+TL*COS (A) terminal point X Coordinate Calculation Yz=YoTL*SIN (A) terminal point Y Coordinate Calculation Determine that the two ends coordinate draws out this line segment, draw all circles by a loop statement; Iv) will click new circle from new pointrendering main line, after this circle is selected, former selected circle will be cancelled selected state, and new circle will be used as the starting point of drawing; The v) drafting of entrance line; The drawing process and the main line of entrance line are similar, but because when drawing entrance line, what be connected with line segment is the table case, and the starting point of first line segment links to each other with circle, setting line segment is intersecting point coordinate with the limit that the table case intersects, and determines the starting point of each line segment and the coordinate of terminal point.


3. the method for quick drafting power circuit figure according to claim 1 or geographical wiring diagram is characterized in that showing determining of case coordinate and two end points coordinates of line segment;

The centre coordinate of table case calculates identical with the calculating of circle, and the coordinate of supposing table case center is x1, y1, and the wide and height of table case is W, H, the upper left corner coordinate of showing case so for (x1W/2, y1H/2), lower right corner coordinate is (x1+W/2, y1+H/2), can draw out the table case at an easy rate thus; Calculate line segment and the C language subfunction of showing the case intersecting point coordinate; bool_fastcall?AutoLinkRect(int?ox，
int?oy，
?TRect?R1，
int?LRSide，
POINT*PP，
floatA){ HRGN?HRgn1，
HRgn2；POINT?Pos1[4]，
Pos2[4]；POINT?PRO； if(A＞
＝
360)A＝
A360；float?AA＝
M_PI*A/180；if(A＝
＝
90){PP＞
x＝
ox；if(LRSide＝
＝
1)PP＞
y＝
R1.Bottom；else?PP＞
y＝
R1.top；
return?true；} else?if(A＝
＝
270){PP＞
x＝
ox；if(LRSide＝
＝
1)PP＞
y＝
R1.Top；else?PP＞
y＝
R1.Bottom；
return?true；} PRO.x＝
(R1.left+R1.right)/2；
PRO.y＝
(R1.Top+R1.Bottom)/2；if(A＜
45A＞
315(A＞
135&
&
A＜
225)){Pos1[0].x＝
ox；
Pos1[0].y＝
oy2；Pos1[1].x＝
PRO.x；
Pos1[1].y＝
PRO.y2；Pos1[2].x＝
PRO.x；
Pos1[2].y＝
PRO.y+2；Pos1[3].x＝
ox；
Pos1[3].y＝
oy+2；} else{ Pos1[0].x＝
ox2；
Pos1[0].y＝
oy；Pos1[1].x＝
PRO.x2；
Pos1[1].y＝
PRO.y；Pos1[2].x＝
PRO.x+2；
Pos1[2].y＝
PRO.y；Pos1[3].x＝
ox+2；
Pos1[3].y＝
oy；} HRgn1＝
CreatePolygonRgn(Pos1，
4，
ALTERNATE)；Pos2[0].x＝
R1.Left2；
Pos2[0].y＝
R1.top；Pos2[1].x＝
R1.Left+2；
Pos2[1].y＝
R1.top；Pos2[2].x＝
R1.left+2；
Pos2[2].y＝
R1.Bottom；Pos2[3].x＝
R1.Left2；
Pos2[3].y＝
R1.Bottom；HRgn2＝
CreatePolygonRgn(Pos2，
4，
ALTERNATE)；int?kkk＝
CombineRgn(HRgn2，
HRgn2，
HRgn1，
RGN_AND)；if(kkk＞
1){if(A＞
270A＜
90){if(LRSide＝
＝
1)PP＞
x＝
R1.left；else?PP＞
x＝
R1.right；} else{ if(LRSide＝
＝
1)PP＞
x＝
R1.right；else?PP＞
x＝
R1.Left；} PP＞
y＝
0.5+oy1.0*(PP＞
xox)*tan(AA)；} else{ Pos2[0].x＝
R1.Left；
Pos2[0].y＝
R1.Bottom2；Pos2[1].x＝
R1.Right；
Pos2[1].y＝
R1.Bottom2；Pos2[2].x＝
R1.Right；
Pos2[2].y＝
R1.Bottom+2；Pos2[3].x＝
R1.Left；
Pos2[3].y＝
R1.Bottom+2；DeleteObject(HRgn2)； HRgn2＝
CreatePolygonRgn(Pos2，
4，
ALTERNATE)；kkk＝
CombineRgn(HRgn2，
HRgn2，
HRgn1，
RGN_AND)；if(kkk＞
1){if(LRSide＝
＝
1)PP＞
y＝
R1.Bottom；else?PP＞
y＝
R1.top；PP＞
x＝
ox+1.0*(oyPP＞
y)/tan(AA)；} else{ Pos2[0].x＝
R1.Left；
Pos2[0].y＝
R1.Top2；Pos2[1].x＝
R1.Right；
Pos2[1].y＝
R1.Top2；Pos2[2].x＝
R1.Right；
Pos2[2].y＝
R1.Top+2；Pos2[3].x＝
R1.Left；
Pos2[3].y＝
R1.Top+2；HRgn2＝
CreatePolygonRgn(Pos2，
4，
ALTERNATE)；kkk＝
CombineRgn(HRgn2，
HRgn2，
HRgn1，
RGN_AND)；if(kkk＞
1){if(LRSide＝
＝
1)PP＞
y＝
R1.Top；else?PP＞
y＝
R1.Bottom；PP＞
x＝
ox+1.0*(oyPP＞
y)/tan(AA)；} else{ Pos2[0].x＝
R1.Right2；
Pos2[0].y＝
R1.top；Pos2[1].x＝
R1.Right+2；
Pos2[1].y＝
R1.top；Pos2[2].x＝
R1.Right+2；
Pos2[2].y＝
R1.Bottom；Pos2[3].x＝
R1.Right2；
Pos2[3].y＝
R1.Bottom；HRgn2＝
CreatePolygonRgn(Pos2，
4，
ALTERNATE)；kkk＝
CombineRgn(HRgn2，
HRgn2，
HRgn1，
RGN_AND)；if(kkk＞
1){if(LRSide＝
＝
1)PP＞
x＝
R1.Right；else?PP＞
x＝
R1.Left；PP＞
y＝
oy(PP＞
xox)*tan(AA)；} } } } DeleteObject(HRgn1)； DeleteObject(HRgn2)； return?true； }。

Specification(s)