Rapid drawing method and system for cable trench of railway traction substation
Through software technology based on ODA graphics engine, the existing cable trench plane drawing methods are solved, and the rapid drawing and modification of cable trench in railway traction substations is achieved, and design efficiency and accuracy are improved.
Patent Information
- Application Number
- CN202411745583.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-02
- Publication Date
- 2025-04-15
AI Technical Summary
The existing cable trench plane drawing methods are inefficient, difficult to modify, and rely on commercial CAD software. Due to the compatibility of software version and operating system, it is difficult to achieve network deployment and promotion.
Using software technology based on the ODA graphics engine and supporting CAD geometric constraint algorithm, rapid drawing and modification are achieved through methods such as convention and definition, generation of channels, connecting channels, generating cover plates and modifying cable trenches.
It realizes the efficiency of rapid drawing and modification of cable trenches, has high customization and flexibility, is highly applicable, and improves design efficiency and accuracy.
Smart Images

Figure CN119830488A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of drawing algorithms, and in particular to a method and system for quickly drawing a cable trench in a railway traction substation. Background Art
[0002] All kinds of cables for equipment in traction substations are laid in cable trenches, which are covered channels used to lay and replace power or telecommunication cable facilities. If the cable trench is not laid properly, cables are prone to crossover, insufficient turning radius, and inadequate isolation measures for high and low voltage cables during laying, which will lead to overall chaos in cable construction, reduce the level of safe cable operation, and affect the construction process level of the entire substation. Therefore, in order to ensure that the cable trench is set reasonably and the process is beautiful, it is necessary to draw a cable trench plane before construction. The trench is usually represented as two parallel straight line segments in the plane drawing. The straight line segments represent the edge lines of the trench, one straight line segment is the inner edge line, and the other straight line segment is the outer edge line.
[0003] In the early days, the plan drawing method of cable trenches was manual drawing. Manual drawing means that the designer directly copied the cable trench in the existing CAD drawings and then manually modified the design. This method has low drawing efficiency and is not easy to modify. Therefore, the existing plan drawing method of cable trenches is software-assisted drawing. Software-assisted drawing uses commercial CAD graphics software based on AutoCAD secondary development (such as Haochen CAD and other software or self-developed plug-ins such as Tianzheng Electric) to draw cable trenches using its cable trench plan drawing and modification functions. Existing commercial CAD graphics software is drawn on the base map of buildings, structures and electrical equipment (manually drawn by CAD). The information design data of existing buildings, structures and electrical equipment is recognized by the designer before the cable trench design is carried out. Because this method needs to rely on commercial CAD software platforms such as AutoCAD, it is affected by the software version and operating system compatibility. The development and use are slightly complicated, and it is difficult to achieve network deployment and release, which is not convenient for promotion and use.
[0004] Therefore, the existing cable trench plane drawing method has the problem of poor applicability. Summary of the invention
[0005] The technical problem to be solved by the present invention is to overcome the shortcomings of the above-mentioned prior art and provide a method and system for quickly drawing a cable trench in a railway traction substation with strong applicability.
[0006] In order to solve the above technical problems, the present invention provides a method for quickly drawing a cable trench in a railway traction substation, including: agreement and definition: agreeing on the trench shape, the positive direction of the trench, and the trench width, and defining the concepts of the trench centerline, the outer sideline, the inner sideline, the L-shaped connection, the T-shaped connection, and the cross-shaped connection; generating a trench: generating a trench centerline based on the concept of the trench centerline, generating the outer sideline and the inner sideline by offsetting the trench centerline to obtain the trench, repeating the process to obtain multiple trenches, and designing the multiple trenches according to actual needs; connecting trenches: according to the concepts of L-shaped connection, T-shaped connection, and cross-shaped connection, the trenches that need to be connected among the multiple trenches after arrangement are L-shaped, T-shaped, or cross-shaped; generating a cover plate: generating a cover plate according to the trench path and the preset cover plate width to obtain a cable trench; cable trench modification: modifying the cable trench.
[0007] As a further improvement of the present invention: in the conventions and definitions, it is agreed that the channel shape is a straight line segment; the positive direction of the channel is agreed to be from the starting point of the channel to the end point of the channel; and the channel width is agreed to be the distance between the outer side line and the inner side line of the channel.
[0008] As a further improvement of the present invention: in the said conventions and definitions, the said channel centerline is defined as a straight line segment from the center of the starting end to the center of the ending end of the channel; the said outer edge line is defined as an edge line in the clockwise direction of the said channel centerline vector; the said inner edge line is defined as an edge line in the counterclockwise direction of the said channel centerline vector; the said L-shaped connection is defined as the starting ends or the ending ends of two channels are directly connected; the said T-shaped connection is defined as the starting end or the ending end of one channel is connected to the middle section of another channel; the said X-shaped connection is defined as the middle sections of two channels are cross-connected.
[0009] As a further improvement of the present invention: in the generated channel, the outer side line and the inner side line are generated by offsetting the channel center line, including: making auxiliary lines to obtain the outer side line starting point, the inner side line starting point, the outer side line end point and the inner side line end point; connecting the outer side line starting point and the outer side line end point to obtain the outer offset line of the channel center line, i.e. the outer side line, and connecting the inner side line starting point and the inner side line end point to obtain the inner offset line of the channel center line, i.e. the inner side line.
[0010] As a further improvement of the present invention: in the connecting channel, connecting the channel in an L-shape includes: making the end point of the inner side line and the end point of the outer side line of one channel intersect with the starting point of the inner side line and the starting point of the outer side line of another channel respectively; generating auxiliary lines to obtain two center indentation points; generating auxiliary lines according to the positions of the two center indentation points to obtain four chamfer points; the four chamfer points are respectively located on the outer side lines and the inner side lines of the two channels; and rounding or chamfering the connection between the two channels according to the positions of the four chamfer points.
[0011] Preferably, the chamfer includes: obtaining the center point of the circle at the same time when generating auxiliary lines according to the positions of the two center indentation points to obtain four chamfer points; a first arc, namely, an outer chamfer curve, is made with the center point of the circle as the center and the inner turning radius as the radius passing through the two chamfer points on the outer side lines of the two channels; a second arc, namely, an inner chamfer curve, is made with the center point of the circle as the center and the sum of the inner turning radius and the channel width as the radius passing through the two chamfer points on the inner side lines of the two channels.
[0012] Preferably, the chamfer includes: connecting the two chamfer points on the outer side lines of the two channels with a line segment to obtain an outer chamfer line; offsetting the outer chamfer line inward by the sum of the channel width value and the corner compensation value to obtain an intermediate inner chamfer line; calculating the two intersection points of the intermediate inner chamfer line and the inner side lines of the two channels, namely the chamfer points of the inner side lines; connecting the two chamfer points of the inner side lines with a line segment to obtain an inner chamfer line.
[0013] As a further improvement of the present invention: the T-shaped connection includes a starting point external connection, a starting point internal connection, an end point external connection and an end point internal connection.
[0014] As a further improvement of the present invention: in the cable trench modification, the modification includes translation, stretching and rotation.
[0015] The present invention also provides a railway traction substation cable trench rapid drawing system based on the above-mentioned railway traction substation cable trench rapid drawing method, including: a storage module, used to store data; a data reading module, used to read the base map of buildings, structures and electrical equipment and obtain information design data, integrate and analyze the information design data as the boundary conditions for generating or modifying the cable trench; a data calculation module, used to perform data calculation when the trench is generated; a construction module, used to generate trenches, connect trenches, and generate covers; a display module, used to display the base map of the layout of the buildings, structures and electrical equipment read by the data reading module.
[0016] The beneficial effects of the present invention are as follows: the method and system for quickly drawing the cable trench of a railway traction substation provided by the present invention are relatively fast and have strong applicability. The drawing method and system do not need to rely on commercial CAD drawing software such as AutoCAD, and can be implemented by using software technology based on the ODA graphics engine and the supporting CAD geometric constraint algorithm. The drawing method and system can quickly draw the cable trench of a railway substation, are highly customizable and flexible, and have strong applicability. The method and system are somewhat groundbreaking, and provide specific ideas and logic for drawing methods such as reproducible generation of trenches, fillets, chamfers, and generation of covers. At present, there is no mature cable trench drawing method and system. The method can efficiently generate and connect trenches and their covers, and can accurately process the connections. The method not only improves the design efficiency, but also greatly enhances the accuracy and reliability of the design. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 It is a principle block diagram of the present invention;
[0018] Figure 2 A schematic diagram of a channel generated in the present invention;
[0019] Figure 3 A schematic diagram of generating the offset in the present invention;
[0020] Figure 4 A schematic diagram for generating an L-shaped connection;
[0021] Figure 5 A schematic diagram of another stage of L-shaped connection generation;
[0022] Figure 6 for Figure 5 A schematic diagram of the local enlarged structure at M in the middle;
[0023] Figure 7 This is a schematic diagram for generating rounded corners;
[0024] Figure 8 A schematic diagram of another stage of rounding;
[0025] Fig. 9 This is a schematic diagram of generating a chamfer;
[0026] Fig.10 It is a schematic diagram of the overall structure of a single-side chamfer;
[0027] Fig.11 It is a schematic diagram of the overall structure of double-sided chamfering;
[0028] Fig.12 A schematic diagram for generating the external connection of the starting point;
[0029] Fig.13A schematic diagram of the generation of another stage of connecting the starting point externally;
[0030] Fig.14 A schematic diagram for generating connections within the starting point;
[0031] Fig.15 A schematic diagram for generating external connections for the end point;
[0032] Fig.16 A schematic diagram for generating connections within the endpoint;
[0033] Fig.17 This is a schematic diagram of a situation where a T-shaped connection requires special treatment;
[0034] Fig.18 This is a schematic diagram of another situation where a T-shaped connection requires special treatment;
[0035] Fig.19 This is a schematic diagram of the generation of a cross-connection;
[0036] Fig. 20 A schematic diagram of another stage of the generation of the cross-shaped connection;
[0037] Fig.21 Schematic diagram of generating a cover plate for an L-shaped channel with a single-side chamfer in an orthogonal case;
[0038] Fig. 22 Schematic diagram of generating a cover plate for an L-shaped channel with double-sided chamfers in an orthogonal case;
[0039] Fig.23 It is a schematic diagram of generating a cover plate for a T-shaped channel in an orthogonal case;
[0040] Fig.24 It is a schematic diagram of generating a cover plate for a cross-shaped channel in an orthogonal case;
[0041] Fig.25 Schematic diagram of generating cover plate for T-shaped channel in non-orthogonal case;
[0042] Fig.26 Schematic diagram of generating a cover plate for a non-orthogonal cross channel
[0043] Fig. 27 Schematic diagram of the trench end cover treatment. DETAILED DESCRIPTION
[0044] The present invention will be further described in detail below through specific implementation modes in conjunction with the accompanying drawings.
[0045] The definitions or explanations of the relevant terms involved in this application are as follows: (1) Information design data: including spatial location information, equipment names, etc. in buildings, structures and electrical equipment. (2) All the symbols in the drawings in this application are as follows Figure 1 As shown, a dotted line is used to represent the channel centerline, a solid line segment is used to represent the sideline, and a large triangle is used on the channel centerline to represent the positive direction of the channel (the same direction as the channel centerline vector).
[0046] The present invention provides a method for quickly drawing a railway traction substation cable trench, comprising:
[0047] S1. Agreement and Definitions:
[0048] S101. Agree on the channel shape, channel positive direction, and channel width; the channel shape is agreed to be a straight line segment and cannot be a curved line; the channel positive direction is agreed to be from the channel starting point (one end) to the channel end point (the other end); the channel width is agreed to be the distance between the outer sideline and the inner sideline of the channel; the outer sideline and the inner sideline are collectively referred to as sidelines;
[0049] S102, define the concepts of channel centerline, outer sideline, inner sideline, L-shaped connection, T-shaped connection and cross-shaped connection; define the channel centerline as a straight line segment from the center of the channel start end to the center of the channel end; define the outer sideline as the sideline in the clockwise direction of the channel centerline vector ( Figure 1 The inner side line is defined as the side line in the counterclockwise direction of the channel center line vector ( Figure 1 L in the middle); L-shaped connection is defined as the starting ends or ending ends of two channels are directly connected; the connection results in an L-shaped channel; T-shaped connection is defined as the starting end or ending end of one channel is connected to the middle section of another channel; the connection results in a T-shaped channel; X-shaped connection is defined as the middle sections of two channels are cross-connected, and the connection results in a X-shaped channel.
[0050] S2, generating channel:
[0051] S201, generating a channel centerline based on the concept of a channel centerline; specifying a channel start point (StartPoint) and a channel end point (EndPoint) to generate a channel centerline (CenterLine);
[0052] S202, generating an outer side line (OuterLine) and an inner side line (InnerLine) by offsetting the center line of the channel, wherein the offset distance is E / 2, and E is the channel width value, thereby obtaining the channel;
[0053] like Figure 2 , Figure 3 As shown, generating the outer sideline and the inner sideline by offsetting the channel centerline includes: drawing auxiliary lines to obtain the outer sideline starting point, the inner sideline starting point, the outer sideline end point and the inner sideline end point; connecting the outer sideline starting point and the outer sideline end point to obtain the outer offset line of the channel centerline, i.e., the outer sideline, and connecting the inner sideline starting point and the inner sideline end point to obtain the inner offset line of the channel centerline, i.e., the inner sideline. Specifically:
[0054] S2021, draw a perpendicular line through the starting point of the channel center line to obtain a first perpendicular line L1;
[0055] S2022, draw a first circle with the starting point of the channel centerline as the center and the channel width E as the diameter;
[0056] S2023, two intersection points of the first perpendicular line L1 and the first circle are respectively an outer sideline starting point A and an inner sideline starting point B;
[0057] S2024, repeat the above steps at the end point of the channel centerline to obtain the outer sideline end point A' and the inner sideline end point B'; that is, draw a perpendicular line to the channel centerline through the end point of the channel centerline to obtain a second perpendicular line L2; draw a second circle with the end point of the channel centerline as the center and the channel width E as the diameter; the two intersection points of the second perpendicular line L2 and the second circle are the outer sideline start point A' and the inner sideline start point B' respectively;
[0058] S2025, connecting the outer sideline starting point A and the outer sideline end point A' to obtain the outer offset line AA' of the channel centerline, i.e., the outer sideline, and connecting the inner sideline starting point B and the inner sideline end point B' to obtain the inner offset line BB' of the channel centerline, i.e., the inner sideline.
[0059] S203, repeating the process to obtain a plurality of channels, and designing the plurality of channels according to actual needs, wherein the design is to arrange the plurality of channels into a required shape, and the arrangement method includes translation, stretching and rotation;
[0060] S3, connecting channels: according to the concepts of L-shaped connection, T-shaped connection and cross-shaped connection, the channels to be connected among the arranged multiple channels are connected in L-shaped connection, T-shaped connection or cross-shaped connection;
[0061] (a) If Figures 4 to 11 As shown, the L-shaped connection of the channels includes: making the end point of the inner side line and the end point of the outer side line of one channel intersect with the start point of the inner side line and the start point of the outer side line of another channel respectively; generating auxiliary lines to obtain two center indentation points; generating auxiliary lines according to the positions of the two center indentation points to obtain four chamfering points; the four chamfering points are respectively located on the outer side lines and the inner side lines of the two channels; and chamfering or beveling the connection of the two channels according to the positions of the four chamfering points. Specifically:
[0062] S311, one of the two channels is designated as channel X1, and the other channel is designated as channel X2, so that the center line of channel X1 intersects with the center line of channel X2 at point O1, the end point of the inner side line of channel X1 intersects with the starting point of the inner side line of channel X2 at point A7, and the end point of the outer side line of channel X1 intersects with the starting point of the outer side line of channel X2 at point A8;
[0063] If the inner side lines of the channel X1 and the channel X2 do not intersect with the inner side lines and / or the outer side lines do not intersect with the outer side lines, the inner side lines and / or the outer side lines of the channel X1 and the channel X2 are extended to intersect with each other. Figure 5 , Figure 6 As shown in the figure, the outer side lines of channel X1 and channel X2 do not intersect, so the inner side lines of channel X1 and channel X2 are extended to intersect at point A7. Then, the lines of channel X1 and channel X2 except the side lines and center lines are interrupted and deleted. Since all the intersection points of the side lines of channel X1 and channel X2 can be obtained based on the coordinates of the starting and ending points of the center line and its geometric parameters, it is sufficient to delete the connecting lines based on the intersection points, so the deletion is based on coordinate calculation. Figure 6 As shown, by deleting line segment A7A8, line segment A2A5, line segment A1A6, line segment A3O1, line segment A4O1, line segment A5A8 and line segment A6A8, we can get Figure 4 .
[0064] S312, such as Figure 7 As shown, the angle θ between the positive direction of the channel centerline of channel X1 and the positive direction of the channel centerline of channel X2, i.e., the turning angle, is calculated, and the inner turning angle is set to R, where R is a custom adjustable parameter and its value is determined according to actual needs;
[0065] S313, calculate the centerline turning radius R from the inner turning radius R ′ , R ′ =R+E / 2;
[0066] S314, according to R ′ Calculate the chamfer distance d of the center line, d = (R + E / 2) / taA9 (θ / 2);
[0067] S315, draw a circle with O1 as the center and d as the radius, and the intersection point A10 of the circle with the channel center line of the channel X1 and the intersection point A9 with the channel center line of the channel X2 are the center indentation points;
[0068] S316, a third perpendicular line L3 is obtained by drawing a perpendicular line through A10 to the center line of the channel, a fourth perpendicular line L4 is obtained by drawing a perpendicular line through A9 to the center line of the channel, and an intersection point A11 of the third perpendicular line L3 and the inner side line of the channel X1, an intersection point A12 of the third perpendicular line L3 and the outer side line of the channel X1, an intersection point A13 of the fourth perpendicular line L4 and the inner side line of the channel X2, and an intersection point A14 of the fourth perpendicular line L4 and the outer side line of the channel X2 are chamfer points of the inner and outer side lines;
[0069] S317, rounding or chamfering the connection between the channel X1 and the channel X2;
[0070] like Figure 8As shown, the principle of chamfering is to generate an arc through two known points and a radius. The chamfering includes: obtaining the center point of the circle at the same time when generating auxiliary lines according to the positions of the two center indentation points to obtain four chamfering points; the first arc, which is the outer chamfering curve, is made with the center point of the circle as the center and the inner turning radius as the radius to pass through the two chamfering points on the outer side lines of the two channels; the second arc, which is the inner chamfering curve, is made with the center point of the circle as the center and the sum of the inner turning radius and the channel width as the radius to pass through the two chamfering points on the inner side lines of the two channels. Specifically:
[0071] (1) With the intersection point O2 of the third perpendicular line L3 and the fourth perpendicular line L4 as the center and the inner turning radius R as the radius, a first arc, i.e., an outer chamfer curve, is made through the intersection points A12 and A14;
[0072] (2) With the intersection O2 of the third perpendicular line L3 and the fourth perpendicular line L4 as the center and the sum of the inner turning radius R and the channel width E as the radius, a second arc, i.e., the inner chamfer curve, is made through the intersection A11 and the intersection A12.
[0073] like Fig. 9 As shown, the chamfering includes: connecting two chamfering points on the outer side lines of two channels with a line segment to obtain an outer chamfering line; offsetting the outer chamfering line inward by the sum of the channel width value and the corner compensation value to obtain an intermediate inner chamfering line; calculating the two intersection points of the intermediate inner chamfering line and the inner side lines of the two channels, namely the chamfering points of the inner side lines; connecting the chamfering points of the two inner side lines with a line segment to obtain an inner chamfering line. Specifically:
[0074] (1) Connect the intersection points A12 and A14 to obtain the outer chamfer line, and reset the end point of the outer edge line of the channel X1 to A12 and the starting point of the outer edge line of the channel X2 to A14;
[0075] (2) Offset the outer chamfer line by -(E+k) value, where a negative value indicates an inward offset, E is the channel width, and k is the corner compensation value, which is 150 mm by default, to obtain the middle inner chamfer line;
[0076] (3) Calculate and obtain the intersection point A15 of the middle inner chamfer line and the inner side line of the channel X1, and the intersection point A16 of the middle inner chamfer line and the inner side line of the channel X2. The intersection points A15 and A16 are the chamfer points of the inner side lines.
[0077] (4) Connect the intersection points A15 and A16 to obtain the inner chamfer line, and at the same time reset the end point of the inner side line of the channel X1 to A15 and the starting point of the inner side line of the channel X2 to A16.
[0078] If the channel X1 is orthogonal to the channel X2, the L-shaped connection includes a single-sided chamfer (such as Fig.10 As shown) and double-sided chamfer (as shown Fig.11There are two types of arrangements (as shown). Single-sided chamfering means that the corresponding side with a turning angle of 90° is rounded or beveled, and the corresponding side with a turning angle of 270° is not chamfered; double-sided chamfering means that the corresponding side with a turning angle of 90° and the corresponding side with a turning angle of 270° are both rounded or beveled.
[0079] (ii) T-shaped connection includes starting point external connection, starting point internal connection, end point external connection and end point internal connection. The connection method of T-shaped connection is: decompose the T-shaped connection into two L-shaped connections, generate them by L-shaped connection method, and only perform relevant calculations on the inner and outer side lines where the two channels intersect.
[0080] (1) Starting point external connection, such as Fig.12 , Fig.13 As shown:
[0081] ① One of the two channels is called channel X3, and the other channel is called channel X4; the starting point of the center line of channel X4 intersects the center line of channel X3 at point O3;
[0082] ② Calculate the angle θ1 between the positive direction of the channel centerline of channel X3 and the positive direction of the channel centerline of channel X4, i.e. the turning angle; obtain θ2 in the same way;
[0083] ③ Calculate the centerline turning radius R1 and R2 from the inner turning radius. The calculation method is the same as S313;
[0084] ④ Calculate the chamfer distance d1 of the center line according to the center line turning radius, and obtain the chamfer distance d2 in the same way, using the same calculation method as S314;
[0085] ⑤ Draw a circle with point O3 as the center and d1 as the radius (which can also be regarded as a circle generated with point O3 as the center and d2 as the radius). The intersection point B5 of the circle and the channel centerline of channel X3 and the intersection point B6 of the circle and the channel centerline of channel X4 are the center indentation points; the intersection point B7 of the circle and the channel centerline of channel X3 and the intersection point B6 of the circle and the channel centerline of channel X4 are also the center indentation points;
[0086] ⑥ A perpendicular line is drawn through point B5 to the center line of channel X3, and the intersection of the perpendicular line and the outer side line of channel X3 is point B1. A perpendicular line is drawn through point B6 to the center line of channel X4, and the intersection of the perpendicular line and the outer side line of channel X4 is point B2. Points B1 and B2 are chamfer points of the outer side lines of channels X3 and X4;
[0087] Repeat the above steps for point B6 and point B7 to obtain the chamfer point B3 of the outer side line of channel X3 and the chamfer point B4 of the inner side line of channel X4;
[0088] ⑦ According to the four chamfering points, the outer side line of the channel X3 and the inner and outer side lines of the channel X4 are interrupted and the inner and outer side lines of the intersection of the two are deleted. The calculation method is the same as S311;
[0089] ⑧ The connection between the channel X3 and the channel X4 is rounded or chamfered, and the calculation method is the same as S317 to generate the chamfer line B1B2 and the chamfer line B3B4. Fig.12 , Fig.13 Corner rounding shown.
[0090] (2) Connection within the starting point, such as Fig.14 As shown:
[0091] ① One of the two channels is called channel X5, and the other channel is called channel X6; the starting point of the center line of channel X5 intersects with the center line of channel X6 at point O4;
[0092] ② Calculate the angle θ3 between the positive direction of the channel centerline of channel X6 and the positive direction of the channel centerline of channel X5, i.e. the turning angle; obtain θ4 in the same way;
[0093] ③ Calculate the centerline turning radius R3 and R4 from the inner turning radius. The calculation method is the same as S313;
[0094] ④ Calculate the chamfer distance d3 of the center line according to the center line turning radius, and obtain the chamfer distance d4 in the same way, using the same calculation method as S314;
[0095] ⑤ Draw a circle with O4 as the center and d3 as the radius (which can also be regarded as a circle generated with O4 as the center and d4 as the radius). The intersection point B13 of the circle and the channel centerline of channel X6 and the intersection point B12 of the circle and the channel centerline of channel X5 are the center indentation points; the intersection point B14 of the circle and the channel centerline of channel X6 and the intersection point B12 of the circle and the channel centerline of channel X5 are also the center indentation points;
[0096] ⑥ A perpendicular line is drawn through point B13 to the center line of channel X6. The intersection of the perpendicular line and the inner side line of channel X6 is point B8. A perpendicular line is drawn through point B12 to the center line of channel X5. The intersection of the perpendicular line and the inner side line of channel X5 is point B9. Points B8 and B9 are chamfer points of the inner side lines of channels X5 and X6.
[0097] Repeat this step for point B14 and point B12 to obtain chamfer point B10 of the inner side line of channel X6 and chamfer point B11 of the outer side line of channel X5;
[0098] ⑦ According to the four chamfering points, the inner side line of the channel X6 and the inner and outer side lines of the channel X5 are interrupted and the inner and outer side lines of the intersection of the two are deleted. The calculation method is the same as S311;
[0099] ⑧ The connection between the channel X6 and the channel X5 is rounded or chamfered, and the calculation method is the same as S317, generating chamfer lines B8B9 and chamfer lines B10B11. Fig.14 Corner rounding shown.
[0100] (3) End point outer join, such as Fig.15 As shown:
[0101] ① One of the two channels is referred to as channel X7, and the other channel is referred to as channel X8; the end point of the center line of channel X8 intersects the center line of channel X7 at point O5;
[0102] ② Calculate the angle θ5 between the positive direction of the channel centerline of channel X6 and the positive direction of the channel centerline of channel X5, i.e. the turning angle; obtain θ6 (not shown in the figure) in the same way;
[0103] ③ Calculate the centerline turning radius R5 and R6 from the inner turning radius. The calculation method is the same as S313;
[0104] ④ Calculate the chamfer distance d5 of the center line according to the center line turning radius, and obtain the chamfer distance d6 (not shown in the figure) in the same way, the calculation method is the same as S314;
[0105] ⑤ Draw a circle with O5 as the center and d5 as the radius (which can also be regarded as a circle generated with O5 as the center and d6 as the radius). The intersection point B15 of the circle and the channel centerline of channel X7 and the intersection point B16 of the circle and the channel centerline of channel X8 are the center indentation points; the intersection point B21 of the circle and the channel centerline of channel X7 and the intersection point B16 of the circle and the channel centerline of channel X8 are also the center indentation points;
[0106] ⑥ A perpendicular line is drawn through point B15 to the center line of channel X7. The intersection of the perpendicular line and the outer side line of channel X7 is point B17. A perpendicular line is drawn through point B16 to the center line of channel X8. The intersection of the perpendicular line and the inner side line of channel X8 is point B18. Points B17 and B18 are chamfer points of the outer side line of channel X7 and the inner side line of channel X8, respectively.
[0107] Repeat the above operation for point B21 and point B16 to obtain chamfer point B19 of the outer edge line of channel X7 and chamfer point B20 of the outer edge line of channel X8;
[0108] ⑦ According to the four chamfering points, the outer edge line of the channel X7 and the inner and outer edge lines of the channel X8 are interrupted and the inner and outer edge lines of the intersection of the two are deleted. The calculation method is the same as S311;
[0109] ⑧ The connection between the channel X7 and the channel X8 is rounded or chamfered, and the calculation method is the same as S317 to generate chamfer lines B17B18 and chamfer lines B19B20. Fig.15Corner rounding shown.
[0110] (4) Connection within the endpoint, such as Fig.16 As shown:
[0111] ① One of the two channels is referred to as channel X10, and the other channel is referred to as channel X9. The end point of the center line of channel X10 intersects the center line of channel X9 at point O6;
[0112] ② Calculate the angle θ7 between the positive direction of the channel centerline of channel X9 and the positive direction of the channel centerline of channel X10, i.e. the turning angle; obtain θ8 in the same way;
[0113] ③ Calculate the centerline turning radius R7 and R8 from the inner turning radius using the same calculation method as S313;
[0114] ④ Calculate the chamfer distance d7 of the center line according to the center line turning radius, and obtain the chamfer distance d8 (not shown in the figure) in the same way, the calculation method is the same as S314;
[0115] ⑤ Draw a circle with O6 as the center and d7 as the radius (which can also be regarded as a circle generated with O6 as the center and d8 as the radius). The intersection point B22 of the circle and the channel centerline of channel X9 and the intersection point B23 of the circle and the channel centerline of channel X10 are the center indentation points; the intersection point B28 of the circle and the channel centerline of channel X9 and the intersection point B23 of the circle and the channel centerline of channel X10 are also the center indentation points;
[0116] ⑥ A perpendicular line is drawn through point B22 to the center line of channel X9, and the intersection of the perpendicular line and the inner side line of channel X9 is point B24; a perpendicular line is drawn through point B23 to the center line of channel X10, and the intersection of the perpendicular line and the outer side line of channel X10 is point B25. Points B24 and B25 are chamfer points of the outer side lines of channels X9 and X9, respectively;
[0117] Repeat the above operation for point B28 and point B23 to obtain chamfer point B27 of the inner side line of channel X9 and chamfer point B26 of the inner side line of channel X10;
[0118] ⑦ According to the four chamfering points, the outer edge line of the channel X9 and the inner and outer edge lines of the channel X10 are interrupted and the inner and outer edge lines of the intersection of the two are deleted. The calculation method is the same as S311;
[0119] ⑧ The connection between the channel X9 and the channel X10 is rounded or chamfered to generate chamfer lines B24B25 and chamfer lines B27B26. Fig.16 Corner rounding shown.
[0120] (5) It should be noted that there are two situations in the implementation of T-connection that require special treatment:
[0121] Take the starting point outer connection as an example to illustrate:
[0122] ① Such as Fig.17 As shown, the starting point of channel X4 is O7, and the center line of channel X4 intersects with the center line of channel X3 at point O3. At this time, the connection logic is an external connection with O3 as the starting point.
[0123] ② If Fig.18 As shown, the starting point of channel X4 is O8, and the center line of channel X4 does not intersect with the center line of channel X3, as shown in the figure below. At this time, the center line of channel X4 is extended according to its opposite vector and intersects with the center line of channel X3 to point O3. At this time, the connection logic is the starting point external connection with O3 as the starting point.
[0124] The above processing method is also followed for the starting point inner join, the end point outer join, and the end point inner join.
[0125] (III) The connection method of the ten-shaped connection is: decompose the T-shaped connection into four L-shaped connections, and generate them using the L-shaped connection method.
[0126] like Fig.19 , Fig. 20 As shown:
[0127] S331, the center line of channel X12 intersects with the center line of channel X11 at point O9;
[0128] S332, calculate the angle θ9 between the positive direction of the channel centerline of the channel X11 and the positive direction of the channel centerline of the channel X12, i.e., the turning angle, and obtain θ10 (not shown in the figure), θ11 (not shown in the figure), and θ12 (not shown in the figure) in the same way;
[0129] S333, calculating the centerline turning radius R9 from the inner turning radius, the calculation method is the same as S313;
[0130] S334, calculating the chamfer distance d9 of the center line according to the center line turning radius, and obtaining the chamfer distances d10, d11, and d12 in the same way, using the same calculation method as S314;
[0131] S335, draw a circle with O9 as the center and d9 as the radius (which can also be regarded as a circle generated with O6 as the center and d10, d11 or d12 as the radius), the intersection point C9 of the circle with the channel centerline of channel X11, and the intersection point C12 of the channel centerline of channel X12 are the center indentation points; the intersection point C9 of the circle with the channel centerline of channel X11, and the intersection point C10 of the channel centerline of channel X12 are also the center indentation points; the intersection point C11 of the circle with the channel centerline of channel X11, and the intersection point C10 of the channel centerline of channel X12 are also the center indentation points; the intersection point C11 of the circle with the channel centerline of channel X11, and the intersection point C12 of the channel centerline of channel X12 are also the center indentation points;
[0132] S336, draw a perpendicular line through C9 to the center line of the channel, and the intersection of the perpendicular line and the inner side line of the channel X11 is point C2; draw a perpendicular line through C12 to the center line of the channel, and the intersection of the perpendicular line and the outer side line of the channel X12 is point C1, C2 and C1 are the chamfer points of the outer side lines of the channels X11 and X12 respectively; repeat the above steps for point C9 and point C10 to obtain chamfer points C3 and C4; repeat the above steps for point C11 and point C10 to obtain chamfer points C6 and C5; repeat the above steps for point C11 and point C12 to obtain chamfer points C7 and C8;
[0133] S337, interrupting the inner and outer edges of the channel X11 and the channel X12 according to all the chamfering points and deleting the inner and outer edges of the intersecting parts of the two;
[0134] S338, rounding or chamfering the connection between the channel X11 and the channel X12 to generate chamfer lines C1C2, C4C3, C8C7, and C5C6, which are rounded corners in the figure.
[0135] S4. Generate cover plate:
[0136] Generate a cover plate according to the channel path and a preset cover plate width W to obtain a cable trench;
[0137] Usually, the paths of the two channels are orthogonal. In special cases, the paths of the two channels are not orthogonal. Therefore, the methods of generating cover plates for L-shaped, T-shaped, and X-shaped channels are described from the two categories of orthogonal and non-orthogonal paths of the two channels. For the convenience of description, one of the two channels is called channel X and the other channel is called Y. X and Y are only aliases and do not limit the specific structure of the channel. The chamfers in the following examples are all chamfers, but the channels with rounded corners are also generated using the same method.
[0138] When the paths of the two channels are orthogonal:
[0139] (I) L-shaped channel
[0140] (1) Fig.21 As shown, the method for generating a cover plate of an L-shaped channel with a single-side chamfer includes:
[0141] ① The center line of channel Y intersects with the center line of channel X at point O;
[0142] ②First, select a channel at random, here we select channel X, and generate cover plates one by one from one side of point O along the side line RT to the other end. The length of the cover plate is equal to the width of the channel;
[0143] ③ Then generate the cover plate of channel Y, also starting from the side of point O. However, since the cover plate of channel X has been generated, it is necessary to use the side line RT as the boundary, make the length direction of the cover plate parallel to the line segment RT, and generate the cover plates one by one along the side line RT to the other end. The side line RT will be deleted when the channel is generated, but its data can be retained in the database and used as the starting line for generating the cover plate of channel Y.
[0144] (2) Fig. 22 As shown, the method for generating a cover plate of an L-shaped channel with double-sided chamfers includes:
[0145] ① The center line of channel Y intersects with the center line of channel X at point O; R and B are the corner points;
[0146] ②First, select a channel at random, here we select channel X, take R as the base point, draw a perpendicular line of channel X and intersect it at the other side to get point T, take RT as the boundary surface and generate cover plates one by one towards the other end of channel X. The length of the cover plate is equal to the channel width, and the width of the cover plate is the preset value;
[0147] ③ Take R as the base point, draw a perpendicular line to the other bevel side SC, and intersect it at point S; due to the existence of the corner compensation value k, when the k value is large enough, the length of the bevel side SC is less than the line segment RB. At this time, the perpendicular line and SC do not intersect, and k needs to be reduced until they intersect; the length of the cover plate is equal to the sum of the channel width W and the corner compensation value k, and the width of the cover plate is the preset value;
[0148] ④ Generate cover plates one by one towards the other side of the channel at the corner with line segment RS as the boundary. At this time, the cover plate width is the sum of the channel width W and the corner compensation value k. When generating the last cover plate, if the cover plate exceeds the channel length at the corner, delete this cover plate.
[0149] ⑤ Take B as the base point, draw a perpendicular line to channel Y and intersect it at the other side to get point C. Take BC as the boundary surface and generate cover plates one by one along the center line of channel Y. The length of the cover plates is equal to the channel width.
[0150] (ii) Fig.23 As shown, the method for generating a cover plate of a T-shaped channel includes:
[0151] (1) The center line of channel Y intersects the center line of channel X at point O;
[0152] (2) Select the longer channel from the two channels to generate the cover plate first. Here, channel X is selected. With O as the base point, cover plates are generated at both ends of channel X along the positive direction of the channel and the opposite direction of the positive direction of the channel. The length of the cover plate is equal to the width of the channel.
[0153] (3) Generate the cover plate for channel Y, also starting from the side of point O. However, since the cover plate of channel X has been generated, the side line RT needs to be used as the boundary. Make the length direction of the cover plate parallel to the side line RT, and generate the cover plates one by one along the channel center line along the side line RT. The side line RT will be deleted when the channel is generated, but its data can be retained in the database and used as the starting line for generating the cover plate of channel Y.
[0154] (III) Fig.24 As shown, the method for generating a cover plate with a ten-shaped channel includes:
[0155] (1) The center line of channel Y intersects the center line of channel X at point O;
[0156] (2) Select the longer channel from the two channels to generate the cover plate first. Here, channel X is selected. With O as the base point, cover plates are generated at both ends of channel X along the positive direction of the channel and the opposite direction of the positive direction of the channel. The length of the cover plate is equal to the width of the channel.
[0157] Step (1) and step (2) are the same as steps (1) and step (2) of the method for generating a cover plate with a T-shaped channel.
[0158] (3) Generate the cover plate for channel Y, also starting from the side of point O. However, since the cover plate of channel X has been generated, it is necessary to use the side lines RT and UQ as boundaries, make the length direction of the cover plate parallel to the side lines RT and UQ, and generate the cover plates one by one along the positive direction of the channel and the opposite direction of the positive direction of the channel respectively. RT and UQ are the side lines of channel X. Since they are deleted when the channel is generated, their data can be retained in the database and used here as the starting lines for generating the cover plate of channel Y on both sides. The length of the cover plate is equal to the width of the channel.
[0159] When the paths of the two channels are not orthogonal:
[0160] (i) The method of generating the cover plate of the L-shaped channel is the same as the method of generating the cover plate of the L-shaped channel with double chamfers in the orthogonal case;
[0161] (ii) Fig.25 As shown, the method for generating a cover plate of a T-shaped channel includes:
[0162] (1) The center line of channel Y intersects the center line of channel X at point O;
[0163] (2) Select the longer channel from the two channels to generate the cover plate first. Here, channel X is selected. With O as the base point, cover plates are generated at both ends of channel X along the positive direction of the channel and the opposite direction of the positive direction of the channel. The length of the cover plate is equal to the width of the channel.
[0164] (3) To generate a cover plate for another channel Y, first compare the lengths of the inner and outer edges of channel Y, select the intersection point V on the shorter edge as the base point and draw a perpendicular line to the longer edge. The perpendicular line intersects the longer edge at point U, and uses line segment UV as the boundary. The length direction of the cover plate is made parallel to line segment UV, and the cover plates are generated one by one along the positive direction of the channel, adhering to the inner and outer edges of channel Y.
[0165] (III) Fig.26 As shown, the method for generating a cover plate with a ten-shaped channel includes:
[0166] (1) The center line of channel Y intersects the center line of channel X at point O;
[0167] (2) Select the longer channel from the two channels to generate the cover plate first. Here, channel X is selected. With O as the base point, cover plates are generated at both ends of channel X along the positive direction of the channel and the opposite direction of the positive direction of the channel. The length of the cover plate is equal to the width of the channel.
[0168] (3) When generating a cover plate for channel Y, first compare the lengths of the inner and outer sides of channel Y, select the intersection point V on the shorter side as the base point, and draw a perpendicular line to the longer side. The perpendicular line intersects with the longer side at point U; select the intersection point P on the shorter side as the base point and draw a perpendicular line to the longer side. The perpendicular line intersects with the longer side at point N; use line segments UV and PN as boundaries, make the length direction of the cover plate parallel to UV and PN, and generate cover plates one by one along the positive direction of the channel and the opposite direction of the positive direction of the channel toward the two ends of channel Y.
[0169] It should be noted that the cover plate generated at the end of the channel needs to be processed, such as Fig. 27 As shown, it includes: defining the width value of the cover as w, when w<W (standard width of the cover), deleting this cover and adjusting the channel to the nearest cover.
[0170] S5. Cable trench modification: Modify the cable trench, which involves operations such as translation, stretching, and rotation.
[0171] The present invention also provides a railway traction substation cable trench rapid drawing system based on the above-mentioned railway traction substation cable trench rapid drawing method, including: a storage module for storing data; a data reading module for reading the base map of buildings, structures and electrical equipment and obtaining information design data, integrating and analyzing the information design data and using it as the boundary conditions for generating or modifying the cable trench. Through digital means, designers can quickly generate a cable trench design scheme that meets the requirements according to the actual conditions of the buildings and electrical equipment, greatly reducing the workload of designers; a data calculation module for performing data calculation when the trench is generated, and the real-time calculation amount is not large; a construction module for generating trenches, connecting trenches, and generating cover plates; a display module for displaying the base map of the layout of the buildings, structures and electrical equipment read by the data reading module, and designing the path of the trench on the above-mentioned base map. The drawing method and system can be realized by using software technology means based on the ODA graphics engine and the supporting CAD geometric constraint algorithm.
Claims
1. A method for quickly drawing a cable trench in a railway traction substation, characterized in that: include: Conventions and definitions: Conventions are made on channel shape, channel positive direction, and channel width, and the concepts of channel centerline, outer sideline, inner sideline, L-shaped connection, T-shaped connection, and cross-shaped connection are defined; Generate channel: Generate channel centerline based on the concept of channel centerline, generate outer sideline and inner sideline by offsetting the channel centerline, and obtain channel, repeat the process to obtain multiple channels, and design multiple channels according to actual needs; Connecting channels: connecting the channels to be connected in an L-shaped connection, a T-shaped connection or a cross-shaped connection among the plurality of channels arranged in the arrangement according to the concepts of L-shaped connection, T-shaped connection and cross-shaped connection; Generate cover plate: Generate cover plate according to the channel path and preset cover plate width to obtain cable trench; Cable trench modification: Modify the cable trench.
2. A method for quickly drawing a cable trench in a railway traction substation according to claim 1, characterized in that: In the convention and definition, it is agreed that the channel shape is a straight line segment; It is agreed that the positive direction of the channel is from the starting point of the channel to the end point of the channel; The channel width is defined as the distance between the outer side line and the inner side line of the channel.
3. A method for quickly drawing a cable trench in a railway traction substation according to claim 1, characterized in that: In the conventions and definitions, the channel centerline is defined as a straight line segment from the center of the starting end of the channel to the center of the ending end; The outer sideline is defined as the sideline in the clockwise direction of the channel centerline vector; The inner side line is defined as the side line in the counterclockwise direction of the channel center line vector; The L-shaped connection is defined as the starting ends or the ending ends of the two channels being directly connected; The T-shaped connection is defined as the connection between the starting end or the ending end of one channel and the middle section of another channel; The middle sections of the two channels defining the cross connection are cross-connected.
4. A method for quickly drawing a cable trench in a railway traction substation according to claim 1, characterized in that: In the generated channel, generating the outer sideline and the inner sideline by offsetting the channel centerline includes: Draw auxiliary lines to obtain the outer sideline starting point, inner sideline starting point, outer sideline end point and inner sideline end point; The outer offset line of the channel center line is obtained by connecting the outer sideline starting point and the outer sideline end point, and the inner offset line of the channel center line is obtained by connecting the inner sideline starting point and the inner sideline end point.
5. The method for quickly drawing a cable trench in a railway traction substation according to claim 1 is characterized in that: In the connecting channel, connecting the channel in an L-shape comprises: Make the end point of the inner sideline and the end point of the outer sideline of one channel intersect with the start point of the inner sideline and the start point of the outer sideline of another channel respectively; Generate auxiliary lines to get two center indent points; Generate auxiliary lines according to the positions of the two center indentation points to obtain four chamfering points; the four chamfering points are respectively located on the outer side lines and the inner side lines of the two channels; The connection between the two channels is rounded or chamfered according to the positions of the four chamfering points.
6. A method for quickly drawing a cable trench in a railway traction substation according to claim 5, characterized in that: The rounded corners include: When the auxiliary lines are generated according to the positions of the two center indentation points to obtain the four chamfering points, the center point of the circle is obtained at the same time; A first arc having a center point as the center and an inner turning radius as the radius passing through the two chamfer points on the outer side lines of the two channels, namely, an outer chamfer curve; A second arc having the center point as the center and the sum of the inner turning radius and the channel width as the radius passing through the two chamfer points on the inner side lines of the two channels is the inner chamfer curve.
7. A method for quickly drawing a cable trench in a railway traction substation according to claim 5, characterized in that: The chamfer angle includes: Connect the two chamfer points on the outer side lines of the two channels with a line segment to obtain an outer chamfer line; The outer chamfer line is shifted inward by the sum of the channel width value and the angle compensation value to obtain a middle inner chamfer line; Calculate and obtain two intersection points of the middle inner chamfer line and the inner side lines of the two channels, namely, the chamfer points of the inner side lines; The inner chamfer line is obtained by connecting the chamfer points of the two inner side lines with a line segment.
8. The method for quickly drawing a cable trench in a railway traction substation according to claim 1 is characterized in that: The T-shaped connection includes a start point external connection, a start point internal connection, an end point external connection and an end point internal connection.
9. The method for quickly drawing a cable trench in a railway traction substation according to claim 1, characterized in that: In the cable trench modification, the modification includes translation, stretching and rotation.
10. A railway traction substation cable trench rapid drawing system based on the railway traction substation cable trench rapid drawing method according to any one of claims 1 to 9, characterized in that: include: A storage module, used for storing data; Data reading module, used to read the base map of buildings, structures and electrical equipment and obtain information design data, integrate and analyze the information design data as the boundary conditions for generating or modifying the cable trench; A data calculation module, used for performing data calculation when the channel is generated; A construction module for generating channels, connecting channels, and generating covers; The display module is used to display the base map of the layout of the building, the structure and the electrical equipment read by the data reading module.