Method and device for rapidly generating dike reinforcement cross-section diagram based on AutoCAD secondary development
By establishing a basic database and using AutoCAD.NET secondary development technology, batch drawing and modification of embankment reinforcement design is realized, and the problem of low drawing and modification efficiency in the existing technology is solved, design efficiency is improved and standardization is achieved.
Patent Information
- Application Number
- CN202411594489.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-09
- Publication Date
- 2025-03-28
AI Technical Summary
In the design of embankment reinforcement, the drawing and modification efficiency are low, and a lot of repetitive work is required when the basic data is changed to extend the design cycle.
By establishing three basic databases for measurement, geology and water level for embankment reinforcement design, a logical relationship for data tracking based on pile numbers is formulated, and using AutoCAD.NET secondary development technology, batch generation of terrain lines, layer information and water level information for each pile number is realized. At the same time, parameterized processing of dike reinforcement measures to achieve batch generation and modification.
It greatly improves the efficiency of drawing and modification, reduces repetitive work caused by changes in basic data, shortens the design cycle, and realizes the program and standardization of the cross-sectional drawing of the dike reinforcement design.
Smart Images

Figure CN119720315A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of water conservancy engineering design, and in particular to a method and a device for quickly generating a levee reinforcement cross-section diagram based on AutoCAD secondary development. Background Art
[0002] The levee project is a linear project, which is characterized by long levee lines, multiple sections and heavy workload. The reinforcement design of the levee is different from that of the new levee. It requires the combination of many basic data such as surveying, geology and hydrology, starting from the drawing of topographic lines, the addition of geological soil layer information and the marking of water level information. Different reinforcement measures are taken according to the dangerous situation, including anti-seepage walls, mixing piles, filling grouting, pressure relief wells and riprap. The design workload is heavy.
[0003] At present, conventional CAD drawing methods are used for drawing, which faces a huge workload and requires a large number of designers for a long time. In addition, since the design process involves a lot of basic data (surveying, geology and hydrology), once the basic data needs to be changed, it will bring a lot of repetitive work, further extending the design cycle.
[0004] Therefore, how to invent a method for quickly generating embankment reinforcement cross-section diagrams and improve the efficiency of drawing and modification has become an urgent problem to be solved. Summary of the invention
[0005] To this end, the present invention provides a method and device for quickly generating cross-section drawings of levee reinforcement based on AutoCAD secondary development, by establishing three basic databases of measurement, geology and water level for levee reinforcement design, formulating a logical relationship for data tracking based on pile numbers, and using AutoCAD.NET secondary development technology to realize batch generation of measured topographic lines, layer information and water level information for each pile number. At the same time, once the basic data changes, only the corresponding basic database needs to be changed and the command of AutoCAD.NET secondary development needs to be re-entered to complete the drawing modification, which greatly improves the efficiency of drawing and modification.
[0006] In order to achieve the above object, the present invention provides the following technical solution: a method for quickly generating a levee reinforcement cross-section diagram based on secondary development of AutoCAD, comprising:
[0007] The field measurement data are sorted to obtain a measurement database; based on the data in the measurement database, the layer corresponding to the pile number text is obtained through AutoCAD layer technology, and the current topographic lines of the embankment sections are generated in batches;
[0008] Processing the geological longitudinal section data according to a set corresponding principle so that the geological longitudinal section data matches the set layer and generates a geological information database;
[0009] The water level information in the embankment reinforcement cross-section diagram is sorted into a set water level file according to the embankment pile number from small to large, and a water level information database is generated;
[0010] Read the geological information database and the water level information database according to the section pile number, and generate geological information and water level information corresponding to the section pile number in batches;
[0011] Parameterize the embankment reinforcement measures to obtain parameterized data of the reinforcement measures;
[0012] By reading the reinforcement measure parameterized data of the cross section, reinforcement measures are generated in batches.
[0013] As a preferred solution for the method of quickly generating embankment reinforcement cross-section drawings based on AutoCAD secondary development, in the process of processing the geological longitudinal section data according to the set corresponding principle to match the geological longitudinal section data with the set layer, the elements of the geological longitudinal section data are polylines and straight lines; the soil layer below the polylines and the straight lines is the set geological soil layer, and the layer corresponding to the set geological soil layer is matched with the polylines and the straight lines corresponding to the set geological soil layer to match the geological longitudinal section data with the set layer.
[0014] As a preferred solution for the method of quickly generating embankment reinforcement cross-section drawings based on the secondary development of AutoCAD, in the process of arranging the water level information in the embankment reinforcement cross-section drawings into the set water level file according to the embankment pile numbers from small to large, and generating the water level information database, the water level information in the embankment reinforcement cross-section drawings includes: design water level, design low water level and highest spiral.
[0015] As a preferred solution for the rapid generation method of levee reinforcement cross-section diagram based on AutoCAD secondary development, in the process of parameterizing the levee reinforcement measures, the levee reinforcement measures include: anti-seepage wall, mixing piles, filling grouting, pressure relief well and riprap;
[0016] The parameters of the parametric processing of the cut-off wall include: baseline distance, cut-off wall thickness, wall bottom elevation and remarks;
[0017] The parameters of the mixing pile parametric processing include: baseline distance, construction platform elevation, reserved width of the construction platform, number of pile rows, row spacing, pile bottom elevation, excavation slope ratio, backfill slope ratio and remarks;
[0018] The parameters of the backfill grouting parameterization process include: long-distance baseline, short-distance baseline, grouting bottom elevation and remarks;
[0019] The parameters of the relief well parametric processing include: baseline distance, bottom hole elevation and remarks;
[0020] The parameters of riprap parametric processing include: elevation of starting point, width of starting platform, riprap slope ratio, platform spacing, secondary platform width and remarks.
[0021] As a preferred solution for the method of quickly generating cross-section drawings of embankment reinforcement based on the secondary development of AutoCAD, batch deletion or modification of reinforcement measures is achieved by deleting or modifying parameters of the parametric data of the reinforcement measures.
[0022] The present invention also provides a device for quickly generating a dike reinforcement cross-section diagram based on the secondary development of AutoCAD, and the method for quickly generating a dike reinforcement cross-section diagram based on the secondary development of AutoCAD comprises:
[0023] The module for generating the current topographic lines of the levee sections is used to sort out the field measurement data to obtain the measurement database; according to the data in the measurement database, the layer corresponding to the pile number text is obtained through the AutoCAD layer technology, and the current topographic lines of the levee sections are generated in batches;
[0024] A geological information database generation module is used to process geological longitudinal section data according to a set corresponding principle, so that the geological longitudinal section data matches the set layer and generates a geological information database;
[0025] A water level information database generation module is used to organize the water level information in the embankment reinforcement cross-section diagram into a set water level file according to the embankment pile number from small to large, and generate a water level information database;
[0026] A section pile number geological and water level information generation module is used to read the geological information database and the water level information database according to the section pile number, and batch generate geological information and water level information corresponding to the section pile number;
[0027] The reinforcement measure parameterization processing module is used to perform parameterization processing on the embankment reinforcement measures and obtain parameterization data of the reinforcement measures;
[0028] The reinforcement measure generation module is used to generate reinforcement measures in batches by reading the reinforcement measure parameterization data of the section.
[0029] As a preferred solution for a device for quickly generating cross-section diagrams of embankment reinforcement based on secondary development of AutoCAD, in the geological information database generation module, in the process of processing the geological longitudinal section data according to the set corresponding principle to match the geological longitudinal section data with the set layer, the elements of the geological longitudinal section data are polylines and straight lines; the soil layer below the polylines and the straight lines is the set geological soil layer, and the layer corresponding to the set geological soil layer is matched with the polylines and the straight lines corresponding to the set geological soil layer to match the geological longitudinal section data with the set layer.
[0030] As a preferred solution for the device for quickly generating embankment reinforcement cross-section drawings based on the secondary development of AutoCAD, in the water level information database generation module, in the process of arranging the water level information in the embankment reinforcement cross-section drawing into the set water level file according to the embankment pile numbers from small to large, and generating the water level information database, the water level information in the embankment reinforcement cross-section drawing includes: design water level, design low water level and highest spiral.
[0031] As a preferred solution of the device for quickly generating cross-section diagrams of levee reinforcement based on the secondary development of AutoCAD, in the parameterized processing module of the reinforcement measures, in the process of parameterized processing of the levee reinforcement measures, the levee reinforcement measures include: anti-seepage wall, mixing pile, filling grouting, pressure relief well and riprap;
[0032] The parameters of the parametric processing of the cut-off wall include: baseline distance, cut-off wall thickness, wall bottom elevation and remarks;
[0033] The parameters of the mixing pile parametric processing include: baseline distance, construction platform elevation, reserved width of the construction platform, number of pile rows, row spacing, pile bottom elevation, excavation slope ratio, backfill slope ratio and remarks;
[0034] The parameters of the backfill grouting parameterization process include: long-distance baseline, short-distance baseline, grouting bottom elevation and remarks;
[0035] The parameters of the relief well parametric processing include: baseline distance, bottom hole elevation and remarks;
[0036] The parameters of riprap parametric processing include: elevation of starting point, width of starting platform, riprap slope ratio, platform spacing, secondary platform width and remarks.
[0037] As a preferred solution for the device for quickly generating cross-section diagrams of embankments based on the secondary development of AutoCAD, in the reinforcement measure generation module, batch deletion or modification of reinforcement measures is achieved by deleting or modifying parameters of the parametric data of the reinforcement measures.
[0038] The invention has the following advantages: arranging the field measurement data to obtain the measurement database; obtaining the layer corresponding to the pile number text according to the data in the measurement database through the AutoCAD layer technology, and generating the current terrain lines of the levee section in batches; processing the geological longitudinal section data according to the set corresponding principle, so that the geological longitudinal section data matches the set layer, and generating the geological information database; arranging the water level information in the levee reinforcement section diagram into a set water level file according to the levee pile number from small to large, and generating the water level information database; reading the geological information database and the water level information database according to the section pile number, and generating the geological information and water level information corresponding to the section pile number in batches; performing parameterized processing on the levee reinforcement measures to obtain the parameterized data of the reinforcement measures; and generating the reinforcement measures in batches by reading the parameterized data of the reinforcement measures of the section. The present invention establishes three basic databases of survey, geology and water level for levee reinforcement design, formulates a logical relationship for data tracking based on the pile number, and uses the AutoCAD.NET secondary development technology to realize the batch generation of topographic lines, layer information and water level information for each pile number. Once the basic data changes, there is no need to manually modify them one by one. It is only necessary to change the corresponding basic database, delete the elements in batches, and re-enter the command of the AutoCAD.NET secondary development to complete the drawing modification. The present invention parameterizes five common reinforcement measures for levees. Designers only need to organize all parameters into Parameterized_Section.CSV files according to the pile number in a fixed format and order. Through the command of the AutoCAD.NET secondary development, the reinforcement measures are added in batches, and there is no need to design and draw one by one, which greatly improves the design efficiency. At the same time, the present invention standardizes and standardizes the text style, line type, annotation style, annotation style, elevation style, filling style and drawing methods of various reinforcement measures. The cross-sectional drawing of the levee reinforcement design produced by the present invention is unified in form, reasonable in layout, and beautiful, realizing the proceduralization and standardization of the cross-sectional drawing of the levee reinforcement design. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the implementation methods of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for the implementation methods or the description of the prior art. Obviously, the drawings in the following description are only exemplary, and for ordinary technicians in this field, other implementation drawings can be derived from the provided drawings without creative work.
[0040] The structures, proportions, sizes, etc. illustrated in this specification are only used to match the contents disclosed in the specification so as to facilitate understanding and reading by persons familiar with the technology. They are not used to limit the conditions under which the present invention can be implemented, and therefore have no substantial technical significance. Any structural modification, change in proportion or adjustment of size shall still fall within the scope of the technical contents disclosed in the present invention without affecting the effects and purposes that can be achieved by the present invention.
[0041] Figure 1 A schematic flow chart of a method for rapidly generating a levee reinforcement cross-section diagram based on AutoCAD secondary development provided in Example 1 of the present invention;
[0042] Figure 2 It is a schematic diagram of the main elements of parameterized embankment reinforcement design in the embankment reinforcement cross-section diagram rapid generation method based on AutoCAD secondary development provided in Example 1 of the present invention; wherein ① is the topographic line; ② is the water level information; ③ is the soil layer information; ④ is the embankment top control line; ⑤ is the anti-seepage wall; ⑥ is the filling grouting; ⑦ is the pressure relief well; ⑧ is the mixing pile; ⑨ is the riprap; ⑩ is the elevation scale;
[0043] Figure 3 A schematic diagram of the survey, geological and hydrological databases in the method for quickly generating a levee reinforcement cross-section diagram based on AutoCAD secondary development provided in Example 1 of the present invention;
[0044] Figure 4 The parameter meaning and schematic diagram of the cut-off wall in the method for quickly generating a cross-section diagram of a dike reinforcement based on AutoCAD secondary development provided in Example 1 of the present invention;
[0045] Figure 5 The meaning and schematic diagram of the parameters of the mixing pile in the method for quickly generating a cross-section diagram of a dike reinforcement based on the secondary development of AutoCAD provided in Example 1 of the present invention;
[0046] Figure 6 The meaning and schematic diagram of the parameters of filling grouting in the method for quickly generating a cross-section diagram of a dike reinforcement based on the secondary development of AutoCAD provided in Example 1 of the present invention;
[0047] Figure 7 The parameter meaning and schematic diagram of the pressure relief well in the method for quickly generating a dike reinforcement cross-section diagram based on AutoCAD secondary development provided in Example 1 of the present invention;
[0048] Figure 8 The parameter meaning and schematic diagram of riprap in the method for quickly generating cross-section diagrams of embankment reinforcement based on AutoCAD secondary development provided in Example 1 of the present invention;
[0049] Fig. 9A schematic diagram of a CSV file in which embankment reinforcement parameters of sections of various pile numbers are input into a method for quickly generating embankment reinforcement cross-section diagrams based on AutoCAD secondary development provided in Example 1 of the present invention;
[0050] Fig.10 This is a schematic diagram of the architecture of the device for quickly generating cross-section diagrams of embankments reinforcement based on AutoCAD secondary development provided in Example 2 of the present invention. DETAILED DESCRIPTION
[0051] The following is a description of the implementation of the present invention by specific embodiments. People familiar with the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0052] Example 1
[0053] See also Figure 1 Embodiment 1 of the present invention provides a method for quickly generating a dike reinforcement cross-section diagram based on AutoCAD secondary development, comprising the following steps:
[0054] S1. Arrange the field measurement data to obtain a measurement database; obtain the layer corresponding to the pile number text through AutoCAD layer technology according to the data in the measurement database, and batch generate the current topographic lines of the embankment section;
[0055] S2, processing the geological longitudinal section data according to the set corresponding principle, so that the geological longitudinal section data matches the set layer, and generating a geological information database;
[0056] S3, sorting the water level information in the embankment reinforcement cross-section diagram into a set water level file according to the embankment pile number from small to large, and generating a water level information database;
[0057] S4, reading the geological information database and the water level information database according to the section pile number, and batch generating geological information and water level information corresponding to the section pile number;
[0058] S5, parameterizing the embankment reinforcement measures to obtain parameterized data of the reinforcement measures;
[0059] S6. Batch generate reinforcement measures by reading the reinforcement measure parameterized data of the section.
[0060] In this embodiment, in step S1, the field measurement data is sorted to obtain a measurement database; based on the data in the measurement database, the layer corresponding to the pile number text is obtained through AutoCAD layer technology, and the current topographic lines of the embankment sections are generated in batches;
[0061] Specifically, the measurement data provided by the measurement professionals can be simply organized to serve as a measurement database, such as Figure 3 As shown, the specific data format is as follows:
[0062] "Pile number,
[0063] Distance, Elevation, Description
[0064] Distance, elevation, stake number
[0065] Distance, Elevation, Description
[0066] Next pile number,
[0067] Distance, Elevation, Description
[0068] Distance, elevation, next stake number
[0069] Distance, Elevation, Description
[0070] ……”.
[0071] By checking whether the data in the third column is empty, the file can be segmented according to the pile number; by checking whether the description text in the third column includes the pile number content, the reference elevation point can be located, and the reference elevation point can be further used to confirm the position of the dike top control line.
[0072] In this embodiment, Figure 2 ① is the terrain line, including: pile number (text), surface line (polyline), reference elevation (text) and description of each measuring point (text). AutoCAD layer technology is used to associate the pile number with the surface line and reference elevation, that is, to generate a layer corresponding to the pile number text, and set the surface line and reference elevation to this layer.
[0073] In this embodiment, in step S2, the geological longitudinal section data is processed according to the set corresponding principle, so that the geological longitudinal section data matches the set layer, and a geological information database is generated;
[0074] Specifically, the geological longitudinal section provided by the geology major is processed with polylines and straight lines as the main elements. According to the principle that the soil layer below the line is a certain geological soil layer, the line is set to the corresponding layer of the soil layer. All the polylines and straight lines in the geological longitudinal section are assigned to the layer of the corresponding soil layer.
[0075] Save all the line segments and polylines of the processed geological longitudinal section as text in the following format, see Figure 3 , the data format is as follows:
[0076] "Number of line segments n, number of polylines m
[0077] 2. Soil layer
[0078] x1,y1
[0079] x2,y2
[0080] …
[0081] 2. Soil layer
[0082] xn,yn
[0083] xn,yn
[0084] The number of nodes k of polyline 1, soil layer
[0085] jd1(x,y)
[0086] …
[0087] jdk(x,y)
[0088] The number of nodes j of polyline 2, soil layer
[0089] jd1(x,y)
[0090] …
[0091] jdj(x,y)
[0092] ……”.
[0093] In this embodiment, in step S3, the water level information in the levee reinforcement cross-section diagram is sorted into a set water level file according to the levee pile number from small to large, and a water level information database is generated;
[0094] Specifically, the hydrology department will provide the design water level, design low water level and highest spiral water level information that need to be marked in the embankment reinforcement section diagram. The three water level information will be sorted into a water level .CSV file according to the embankment pile number from small to large, as a water level information database, see Figure 3 , the data format is as follows:
[0095] "Pile number (from small to large), design flood level, design low water level, highest snail water level
[0096] ……”.
[0097] In this embodiment, in step S4, the geological information database and the water level information database are read according to the section pile number, and the geological information and water level information corresponding to the section pile number are generated in batches;
[0098] Specifically, Figure 2 ② in the middle is the top control line of the embankment. According to the reference elevation points (x0, y0) of each section, a CENTER2 line type straight line is generated and marked as "top control line of the embankment", that is, the baseline. The parameterization of all reinforcement measures takes this baseline as the baseline.
[0099] The generation of the dike top control line and related annotations in CAD.NET includes two parts: one is the straight line and the other is the multi-leader. The straight line is used to draw the "dike top control line" and the multi-leader is used for annotation. The straight line can be directly generated using the Line library function in CAD.NET, and the multi-leader needs to be generated through the MLeader library function, which is derived as follows:
[0100] "CreateMLeader_sub(Point3d startPt,Point3d endPt,string cha,doublehi)
[0101] Point3d startPt is the marking starting point;
[0102] Point3d endPt is the marking starting point;
[0103] string cha is the content that needs to be marked;
[0104] Double hi is the text height".
[0105] Figure 2 ③ is the water level information. The water level information is generated according to the pile number. Using the pile number and water level .CSV file, three water level information at different pile numbers are obtained through interpolation.
[0106] First read the water level .CSV file and find the interval corresponding to the pile number zh that needs to be interpolated, as follows:
[0107] Pile number zh1, design flood level sjsw1, design low water level ksw1, maximum flood level ylx1.
[0108] Pile number zh2, design flood level sjsw2, design low water level ksw2, maximum flood level ylx2.
[0109] Through linear interpolation, the design flood level, design low water level and highest water level with screws corresponding to the pile number are obtained. The linear interpolation formula is as follows:
[0110]
[0111] Figure 2④ in the middle is the soil layer information. The soil layer information is read according to the pile number. A vertical straight line is generated at the specified pile number in the database. By finding the intersection of the straight line and all the lines in the geological information database and their corresponding layers, the distribution information of the soil layers at different pile numbers is obtained, and the corresponding pattern filling is established based on the soil layer information.
[0112] Pattern filling needs to be derived from the following function through the library function Hatch in CAD.NET:
[0113] "CreatePolylineAndHatch(string hh,Polylinepp,int ColorIndex)
[0114] string hh is the fill style name;
[0115] Polylinepp is the closed polyline of the filling range;
[0116] int ColorIndex is the color of the pattern fill.
[0117] The corresponding rules of filling style names and soil layers are: QG02 plain fill, Q113 loam, QB05 silty clay, QD04 silty loam, QB09 silty silty clay, QF10 gravel, Q110 silty sand, QD07 sandy loam, QB05 clay.
[0118] Figure 2 In the middle, (⑩) is the elevation scale. The scale range is determined according to the soil thickness and adopts a zebra pattern with a step length of 5m.
[0119] In this embodiment, in step S5, the embankment reinforcement measures are parameterized to obtain parameterized data of the reinforcement measures;
[0120] Specifically, in the process of parameterizing the embankment reinforcement measures, the embankment reinforcement measures include: anti-seepage wall, mixing piles, filling grouting, pressure relief wells and riprap;
[0121] Among them, Figure 4 As shown in the figure, the parameters of the parameterized processing of the cut-off wall include: baseline distance, cut-off wall thickness, wall bottom elevation and remarks.
[0122] The two nodes at the bottom of the anti-seepage wall can be determined through the three parameters of baseline distance -x1, anti-seepage wall thickness k, and wall bottom elevation y. It is necessary to extend it vertically to the terrain line. Here, the library function Polyline.GetClosestPointTo in CAD.NET is needed to find the closest point on the polyline from a certain point along a certain direction.
[0123] The coordinates of the two nodes at the bottom of the anti-seepage wall are (x0-x1-k / 2, y1) and (x0-x1+k / 2, y1). They are derived into the following function:
[0124] "Polyline.GetClosestPointTo(Point3dgivenPoint,Vector3ddirection,boolextend);
[0125] givenPoint is the coordinates of the two nodes at the bottom of the cut-off wall;
[0126] Direction is the direction to find the nearest point. For the cut-off wall, it is vertical, and (0,1) is the vertical unit vector;
[0127] "extend" indicates whether to extend, the default value is false".
[0128] The return value of the library function Polyline.GetClosestPointTo is the two endpoints at the top of the cut-off wall.
[0129] In this embodiment, Figure 5 As shown in the figure, the parameters of the parametric processing of mixing piles include: baseline distance, construction platform elevation, reserved width of the construction platform, number of pile rows, row spacing, pile bottom elevation, excavation slope ratio, backfill slope ratio and remarks.
[0130] According to the baseline distance -x2 and the construction platform elevation y2, the position 1 of the construction platform can be determined, and the coordinates are (x0-x2, y2).
[0131] According to the number of pile rows nz, the row spacing jpj and the reserved width dx of the construction platform, the position 2 of the construction platform is determined, and the coordinates are (x0-x2-dx*2-(nz-1)*jpj,y2). (The reference elevation point of the section is the base point, the left is negative and the right is positive)
[0132] Use the parameters excavation slope ratio PB1 and excavation slope ratio PB2 to draw the contour lines of excavation and backfill:
[0133] If position 1 is below the terrain line, the direction vector in the library function Polyline.GetClosestPointTo is (PB1,1);
[0134] If position 1 is above the terrain line, the direction vector in the library function Polyline.GetClosestPointTo is (PB1, -1);
[0135] If position 2 is above the terrain line, the direction vector in the library function Polyline.GetClosestPointTo is (-PB2,-1);
[0136] If position 2 is below the terrain line, the direction vector in the library function Polyline.GetClosestPointTo is (-PB2,1).
[0137] In this embodiment, Figure 6 As shown, the parameters of the parameterized processing of filling grouting include: long-distance baseline, short-distance baseline, grouting bottom elevation and remarks.
[0138] According to the three parameters of long-distance baseline -x3, short-distance baseline -x4, and grouting bottom elevation y3, the two points at the bottom of the filling grouting are (x0-x3, y3) and (x0-x4, y3). Since the default spacing of the filling grouting is 1m, the coordinates of all points at the bottom of the filling grouting are obtained at intervals of 1m. Through the same operation as the anti-seepage wall, the library function Polyline.GetClosestPointTo is used with direction (0,1) to obtain the coordinates of the corresponding points of all points at the bottom of the filling grouting on the terrain line, and complete the drawing of the filling grouting line.
[0139] In this embodiment, Figure 7 As shown in the figure, the parameters of the relief well parameterization processing include: baseline distance, bottom hole elevation and remarks.
[0140] The parameter principle of the pressure relief well is similar to that of the cut-off wall, and is processed by referring to the parameter processing process of the cut-off wall.
[0141] In this embodiment, Figure 8 As shown, the parameters of the riprap parameterization processing include: elevation of the starting point, width of the starting platform, riprap slope ratio, platform spacing, secondary platform width and remarks.
[0142] The specific implementation steps are as follows:
[0143] In the model space, use the elevation y4 of the starting point to create a new point (x0, y4), use the library function Polyline.GetClosestPointTo with the direction (-1, 0) to obtain the coordinates of the starting point (x5, y4);
[0144] Through the width of the launching platform kd1, the coordinates of another point on the launching platform are obtained (x5-kd1, y4);
[0145] Through the platform spacing dy and the vector (-BP,-1), the coordinates of a point on the secondary platform are obtained (x6-dy*BP,y4-dy);
[0146] Through the secondary platform width kd2, get the coordinates of another point on the secondary platform (x6-dy*BP-kd2,y4-dy);
[0147] Finally, use the library function Polyline.GetClosestPointTo with direction (-BP,-1) to obtain the intersection of the riprap contour line and the terrain line.
[0148] In this embodiment, in step S6, reinforcement measures are generated in batches by reading the reinforcement measure parameterized data of the cross section.
[0149] Specifically, five common reinforcement measures for embankments are parameterized, and all parameters are sorted into a Parameterized_Section.CSV file in a fixed format and order according to the pile number, such as Fig. 9 shown.
[0150] Among them, the parameterized reinforcement measures are modularized, and the generation of parameterized reinforcement measures is completed according to different derived functions. The modular functions corresponding to the five reinforcement measures are as follows:
[0151] "fangshengqiang(string[,]canshu,DBTexttt,Polyline pl,double[]kongzhi); / / Anti-seepage wall;
[0152] chongtian_guanjiang(string[,]canshu,DBTexttt,Polylinepl,double[]kongzhi); / / Filling grouting;
[0153] jiaobanzhuang(string[,]canshu,DBTexttt,Polylinepl,double[]kongzhi); / / mixing pile;
[0154] jianyajin(string[,]canshu,DBTexttt,Polylinepl,double[]kongzhi); / / Decompression well;
[0155] paoshi(string[,]canshu,DBTexttt,Polylinepl,double[]kongzhi); / / Throwing stones;
[0156] canshu is a parameterized array;
[0157] tt is the reference elevation point text;
[0158] pl is the topographic line of each section;
[0159] kongzhi is a drawing control array, which is used to control the direction, style and font height of each element in the drawing.
[0160] In addition, you can also use Figure 4-Figure 8 The operation interface completes the addition of reinforcement for each embankment.
[0161] Figure 2 ⑤⑥⑦⑧⑨ in it are to call the modular function effects respectively to generate anti-seepage wall, filling grouting, pressure relief well, mixing pile and riprap respectively.
[0162] In this embodiment, the reinforcement measures are deleted or modified in batches by performing parameter deletion or modification processing on the reinforcement measure parameterized data.
[0163] In summary, the present invention organizes the field measurement data to obtain a measurement database; according to the data in the measurement database, the layer corresponding to the pile number text is obtained through the AutoCAD layer technology, and the current terrain lines of the embankment section are generated in batches; the geological longitudinal section data is processed according to the set corresponding principle, so that the geological longitudinal section data matches the set layer, and a geological information database is generated; the water level information in the embankment reinforcement section diagram is sorted into a set water level file according to the embankment pile number from small to large, and a water level information database is generated; the geological information database and the water level information database are read according to the section pile number, and the geological information and water level information corresponding to the section pile number are generated in batches; the embankment reinforcement measures are parameterized to obtain reinforcement measure parameterized data; and reinforcement measures are generated in batches by reading the reinforcement measure parameterized data of the section. The present invention establishes three basic databases of survey, geology and water level for levee reinforcement design, formulates a logical relationship for data tracking based on the pile number, and uses the AutoCAD.NET secondary development technology to realize the batch generation of topographic lines, layer information and water level information for each pile number. Once the basic data changes, there is no need to manually modify them one by one. It is only necessary to change the corresponding basic database, delete the elements in batches, and re-enter the command of the AutoCAD.NET secondary development to complete the drawing modification. The present invention parameterizes five common reinforcement measures for levees. Designers only need to organize all parameters into Parameterized_Section.CSV files according to the pile number in a fixed format and order. Through the command of the AutoCAD.NET secondary development, the reinforcement measures are added in batches, and there is no need to design and draw one by one, which greatly improves the design efficiency. At the same time, the present invention standardizes and standardizes the text style, line type, annotation style, annotation style, elevation style, filling style and drawing methods of various reinforcement measures. The cross-sectional drawing of the levee reinforcement design produced by the present invention is unified in form, reasonable in layout, and beautiful, realizing the proceduralization and standardization of the cross-sectional drawing of the levee reinforcement design.
[0164] It should be noted that the method of the embodiment of the present disclosure can be performed by a single device, such as a computer or a server. The method of the present embodiment can also be applied in a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present disclosure, and the multiple devices will interact with each other to complete the described method.
[0165] It should be noted that the above describes some embodiments of the present disclosure. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0166] Example 2
[0167] See also Fig.10 Embodiment 2 of the present invention also provides a device for quickly generating a dike reinforcement cross-section diagram based on the secondary development of AutoCAD, comprising:
[0168] The module 001 for generating the current topographic lines of the dike sections is used to sort out the field measurement data to obtain the measurement database; according to the data in the measurement database, the layer corresponding to the pile number text is obtained through the AutoCAD layer technology, and the current topographic lines of the dike sections are generated in batches;
[0169] The geological information database generation module 002 is used to process the geological longitudinal section data according to the set corresponding principle, so that the geological longitudinal section data matches the set layer and generates a geological information database;
[0170] The water level information database generation module 003 is used to sort the water level information in the embankment reinforcement cross-section diagram into a set water level file according to the embankment pile number from small to large, and generate a water level information database;
[0171] The section pile number geological and water level information generation module 004 is used to read the geological information database and the water level information database according to the section pile number, and batch generate the geological information and water level information corresponding to the section pile number;
[0172] The reinforcement measure parameterization processing module 005 is used to perform parameterization processing on the embankment reinforcement measures to obtain parameterized data of the reinforcement measures;
[0173] The reinforcement measure generation module 006 is used to generate reinforcement measures in batches by reading the reinforcement measure parameterization data of the section.
[0174] In this embodiment, in the geological information database generation module 002, in the process of processing the geological longitudinal section data according to the set corresponding principle to match the geological longitudinal section data with the set layer, the elements of the geological longitudinal section data are polylines and straight lines; the soil layer below the polylines and the straight lines is the set geological soil layer, and the layer corresponding to the set geological soil layer is matched with the polylines and the straight lines corresponding to the set geological soil layer to match the geological longitudinal section data with the set layer.
[0175] In this embodiment, in the water level information database generation module 003, in the process of arranging the water level information in the embankment reinforcement cross-section diagram into the set water level file according to the embankment pile number from small to large, and generating the water level information database, the water level information in the embankment reinforcement cross-section diagram includes: design water level, design low water level and highest spiral.
[0176] In this embodiment, in the reinforcement measure parameterization processing module 005, in the process of parameterization processing of the embankment reinforcement measures, the embankment reinforcement measures include: anti-seepage wall, mixing piles, filling grouting, pressure relief well and riprap;
[0177] The parameters of the parametric processing of the cut-off wall include: baseline distance, cut-off wall thickness, wall bottom elevation and remarks;
[0178] The parameters of the mixing pile parametric processing include: baseline distance, construction platform elevation, reserved width of the construction platform, number of pile rows, row spacing, pile bottom elevation, excavation slope ratio, backfill slope ratio and remarks;
[0179] The parameters of the backfill grouting parameterization process include: long-distance baseline, short-distance baseline, grouting bottom elevation and remarks;
[0180] The parameters of the relief well parametric processing include: baseline distance, bottom hole elevation and remarks;
[0181] The parameters of riprap parametric processing include: elevation of starting point, width of starting platform, riprap slope ratio, platform spacing, secondary platform width and remarks.
[0182] In this embodiment, in the reinforcement measure generation module 006, the reinforcement measures are deleted or modified in batches by performing parameter deletion or modification processing on the reinforcement measure parameterized data.
[0183] It should be noted that the information interaction, execution process and other contents between the modules of the above-mentioned system are based on the same concept as the method embodiment in Example 1 of the present application, and the technical effects they bring are the same as those of the method embodiment of the present application. For specific contents, please refer to the description in the method embodiment shown above in the present application, and will not be repeated here.
[0184] Example 3
[0185] Embodiment 3 of the present invention provides a non-transitory computer-readable storage medium, in which a program code for a method for quickly generating a cross-sectional diagram of a dike reinforcement based on the secondary development of AutoCAD is stored. The program code includes instructions for executing embodiment 1 or any possible implementation thereof, a method for quickly generating a cross-sectional diagram of a dike reinforcement based on the secondary development of AutoCAD.
[0186] The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center that includes one or more available media. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)).
[0187] Example 4
[0188] Embodiment 4 of the present invention provides an electronic device, including: a memory and a processor;
[0189] The processor and the memory communicate with each other via a bus; the memory stores program instructions that can be executed by the processor, and the processor calls the program instructions to execute the method for quickly generating embankment reinforcement cross-section drawings based on AutoCAD secondary development of Example 1 or any possible implementation thereof.
[0190] Specifically, the processor can be implemented by hardware or by software. When implemented by hardware, the processor can be a logic circuit, an integrated circuit, etc.; when implemented by software, the processor can be a general-purpose processor implemented by reading software codes stored in a memory. The memory can be integrated in the processor or can be located outside the processor and exist independently.
[0191] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable systems. The computer instructions can be stored in a computer-readable storage medium, or transmitted from a computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center.
[0192] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing system, they can be concentrated on a single computing system, or distributed on a network composed of multiple computing systems, and optionally, they can be implemented by a program code executable by a computing system, so that they can be stored in a storage system and executed by the computing system, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0193] Although the present invention has been described in detail above by general description and specific embodiments, it is obvious to those skilled in the art that some modifications or improvements can be made to the present invention. Therefore, these modifications or improvements made without departing from the spirit of the present invention all belong to the scope of protection claimed by the present invention.
Claims
1. A method for quickly generating cross-section diagrams of embankment reinforcement based on secondary development of AutoCAD, characterized in that: include: Organize the field measurement data to obtain the measurement database; According to the data in the survey database, the layer corresponding to the pile number text is obtained through AutoCAD layer technology, and the current topographic lines of the embankment sections are generated in batches; Processing the geological longitudinal section data according to a set corresponding principle so that the geological longitudinal section data matches the set layer and generates a geological information database; The water level information in the embankment reinforcement cross-section diagram is sorted into a set water level file according to the embankment pile number from small to large, and a water level information database is generated; Read the geological information database and the water level information database according to the section pile number, and generate geological information and water level information corresponding to the section pile number in batches; Parameterize the embankment reinforcement measures to obtain parameterized data of the reinforcement measures; By reading the reinforcement measure parameterized data of the cross section, reinforcement measures are generated in batches.
2. The method for quickly generating embankment reinforcement cross-section diagrams based on AutoCAD secondary development according to claim 1 is characterized in that: In the process of processing the geological longitudinal section data according to the set corresponding principle to match the geological longitudinal section data with the set layer, the elements of the geological longitudinal section data are polylines and straight lines; the soil layer below the polylines and the straight lines is the set geological soil layer, and the layer corresponding to the set geological soil layer is matched with the polylines and the straight lines corresponding to the set geological soil layer to match the geological longitudinal section data with the set layer.
3. The method for quickly generating embankment reinforcement cross-section diagrams based on AutoCAD secondary development according to claim 2 is characterized in that: In the process of arranging the water level information in the embankment reinforcement cross-section diagram into the set water level file according to the embankment pile numbers from small to large to generate the water level information database, the water level information in the embankment reinforcement cross-section diagram includes: design water level, design low water level and highest spiral.
4. The method for quickly generating embankment reinforcement cross-section diagrams based on AutoCAD secondary development according to claim 3 is characterized in that: In the process of parameterizing the dike reinforcement measures, the dike reinforcement measures include: cut-off wall, mixing piles, backfill grouting, relief wells and riprap; The parameters of the parametric processing of the cut-off wall include: baseline distance, cut-off wall thickness, wall bottom elevation and remarks; The parameters of the mixing pile parametric processing include: baseline distance, construction platform elevation, reserved width of the construction platform, number of pile rows, row spacing, pile bottom elevation, excavation slope ratio, backfill slope ratio and remarks; The parameters of the backfill grouting parameterization process include: long-distance baseline, short-distance baseline, grouting bottom elevation and remarks; The parameters of the relief well parametric processing include: baseline distance, bottom hole elevation and remarks; The parameters of riprap parametric processing include: elevation of starting point, width of starting platform, riprap slope ratio, platform spacing, secondary platform width and remarks.
5. The method for quickly generating embankment reinforcement cross-section diagrams based on AutoCAD secondary development according to claim 4 is characterized in that: Batch deletion or modification of reinforcement measures is achieved by performing parameter deletion or modification processing on the reinforcement measure parameterized data.
6. A device for quickly generating cross-section diagrams of dike reinforcement based on secondary development of AutoCAD, adopting a method for quickly generating cross-section diagrams of dike reinforcement based on secondary development of AutoCAD as claimed in any one of claims 1 to 5, characterized in that: include: The module for generating the current topographic lines of the levee sections is used to sort out the field measurement data to obtain the measurement database; according to the data in the measurement database, the layer corresponding to the pile number text is obtained through the AutoCAD layer technology, and the current topographic lines of the levee sections are generated in batches; A geological information database generation module is used to process geological longitudinal section data according to a set corresponding principle, so that the geological longitudinal section data matches the set layer and generates a geological information database; A water level information database generation module is used to organize the water level information in the embankment reinforcement cross-section diagram into a set water level file according to the embankment pile number from small to large, and generate a water level information database; A section pile number geological and water level information generation module is used to read the geological information database and the water level information database according to the section pile number, and batch generate geological information and water level information corresponding to the section pile number; The reinforcement measure parameterization processing module is used to perform parameterization processing on the embankment reinforcement measures and obtain parameterization data of the reinforcement measures; The reinforcement measure generation module is used to generate reinforcement measures in batches by reading the reinforcement measure parameterization data of the section.
7. The device for quickly generating cross-section diagrams of dike reinforcement based on AutoCAD secondary development according to claim 6 is characterized in that: In the geological information database generation module, in the process of processing the geological longitudinal section data according to the set corresponding principle to match the geological longitudinal section data with the set layer, the elements of the geological longitudinal section data are polylines and straight lines; the soil layer below the polylines and the straight lines is the set geological soil layer, and the layer corresponding to the set geological soil layer is matched with the polylines and the straight lines corresponding to the set geological soil layer to match the geological longitudinal section data with the set layer.
8. The device for quickly generating cross-section diagrams of dike reinforcement based on AutoCAD secondary development according to claim 7 is characterized in that: In the water level information database generation module, in the process of arranging the water level information in the embankment reinforcement cross-section diagram into the set water level file according to the embankment pile number from small to large, and generating the water level information database, the water level information in the embankment reinforcement cross-section diagram includes: design water level, design low water level and highest spiral.
9. The device for quickly generating cross-section diagrams of dike reinforcement based on AutoCAD secondary development according to claim 8 is characterized in that: In the reinforcement measure parameterization processing module, in the process of parameterization processing of the embankment reinforcement measures, the embankment reinforcement measures include: anti-seepage wall, mixing piles, filling grouting, pressure relief well and riprap; The parameters of the parametric processing of the cut-off wall include: baseline distance, cut-off wall thickness, wall bottom elevation and remarks; The parameters of the mixing pile parametric processing include: baseline distance, construction platform elevation, reserved width of the construction platform, number of pile rows, row spacing, pile bottom elevation, excavation slope ratio, backfill slope ratio and remarks; The parameters of the backfill grouting parameterization process include: long-distance baseline, short-distance baseline, grouting bottom elevation and remarks; The parameters of the relief well parametric processing include: baseline distance, bottom hole elevation and remarks; The parameters of riprap parametric processing include: elevation of starting point, width of starting platform, riprap slope ratio, platform spacing, secondary platform width and remarks.
10. The device for quickly generating cross-section diagrams of dike reinforcement based on AutoCAD secondary development according to claim 9 is characterized in that: In the reinforcement measure generation module, batch deletion or modification of reinforcement measures is achieved by performing parameter deletion or modification processing on the reinforcement measure parameterized data.
Citation Information
Cited By
Rail transit shield tunnel end reinforcement design method, system, equipment and medium
CN120509077A