Linear engineering rapid plotting method and system
By obtaining and sorting line pile numbers, calculating the size and rotation angle of the printing area, generating CAD script files, and automating the rotation and scaling of the viewport, the problem of inaccurate lines and low efficiency in linear engineering is solved, and linear engineering is realized Quick and accurate picture output.
Patent Information
- Application Number
- CN202411010175.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-26
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2044-07-26
AI Technical Summary
During the online drawing process of existing CAD technology, it is impossible to ensure that the line is located in the center of the drawing, and a lot of manual operations are required to lead to inefficiency. Especially when the line is too long, it requires repeated layout operations, which increases the work burden.
By obtaining the coordinates of the two-dimensional line pile numbers, sorting and simplifying the line plan, calculating the size and rotation angle of the printing area, generating a CAD script file to realize the rotation and scaling of the viewport, automating the graph production process, and reducing manual operations.
It improves the accuracy and efficiency of map production, reduces repetitive labor, can be applied more accurately in projects such as rail transit, and achieves rapid map production of lines.
Smart Images

Figure CN118965514A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of CAD, and in particular to a fast drawing method and system for linear engineering. Background Art
[0002] Linear projects refer to railways, highways, oil and gas pipelines, channels, pipelines, urban integrated pipe networks, transmission lines and cableway projects. The length of linear projects often exceeds 10,000 meters, but the width is less than 100 meters. The aspect ratio is very large, and the plan needs to be printed in sections.
[0003] In addition to the large aspect ratio, the direction of linear engineering is restricted by routing, terrain and other conditions. Its line type is often not a straight line, and there will be turns, curves and avoidance. In order to make the line as close to the center of the drawing as possible, the direction of the drawing needs to be rotated, and the rotation direction of each drawing is also different.
[0004] The existing CAD drawing method is: ① Determine the size and scale of the viewport according to the size of the drawing format; ② In the model space, draw the printing area after scaling (the image in the printing area will be displayed in the viewport); ③ According to the direction of the line, translate and rotate the printing area to make the line located in the center of the printing area; ④ To ensure the continuity of the printing area, a certain overlapping area should be reserved between adjacent printing areas, and a compass should be inserted in the printing area; ⑤ In the layout space, establish a user coordinate system (UCS) in the viewport, adjust the direction of the view (PLAN), and zoom the view (ZOOM) to make the viewport coincide with the printing area in the model.
[0005] The existing drawing output method requires manual determination of the printing area, and cannot ensure that the line is accurately located in the center of the drawing; the compass is often arranged at the corners of the printing area, and there is a certain overlapping area between adjacent drawings. If the layout is unreasonable, multiple compasses may appear in one drawing; when the model is complex, a series of operations in the layout viewport will take up a lot of memory and reduce work efficiency; when the line is too long, the relevant layout operations need to be repeated dozens or even hundreds of times, which is repetitive work. Summary of the invention
[0006] The present invention proposes a method for fast drawing of linear engineering. The purpose of the present invention is to utilize vector information of CAD drawing to digitize and program the drawing process, thereby improving the drawing efficiency and accuracy.
[0007] The technical solution of the present invention is as follows:
[0008] A linear engineering rapid drawing method comprises the following steps:
[0009] Step S101: Simplify the route plan by obtaining the coordinates of the two-dimensional route stakes (including the starting point and the end point of the project) and sorting the obtained stakes according to the route advance direction.
[0010] Step S102: Determine the drawing output method, drawing format, viewport size, and set an appropriate scale.
[0011] Step S103: Calculate the size of the printing area according to the viewport size and scale. Filter out all the piles that should be included in the printing area of each drawing according to the starting pile number. To ensure the continuity of the printing area, the starting pile number of the next drawing should be the same as the ending pile number of the previous drawing.
[0012] Step S104: Calculate the rotation angle and the geometric center of the print area according to the coordinates of the pile number in the print area.
[0013] Step S105: Generate a CAD script file based on the information in step S102 and step S104 to realize the programmable viewport rotation, view translation and zoom, so as to achieve the purpose of rapid drawing.
[0014] In the preferred embodiment of the present invention, the step S101 proposes to abstract the continuous route plan into discrete stakes, and arrange the stakes in the order of the route (representing the actual mileage) (denoted as P i ). The lines between the stakes can be regarded as a simplified line plane and serve as the basis and nodes for the subsequent printing area division.
[0015] The pile numbers are usually set at equal intervals (representing the actual length, without considering chain breaks).
[0016] For straight segments, the connecting lines between pile numbers can be accurately represented; for curved segments (circular curves and transition curves), there will be certain errors in length and transverse direction, and the errors are related to the pile number interval s and the curve radius R.
[0017] The length error is: Δs = s-2Rsin(s / 2R)≈s 3 / (24R 2 )
[0018] The lateral error is: Δd = R-Rcos(s / 2R)≈s 2 / (8R)
[0019] Generally speaking, the density of pile number setting is related to the minimum plane curve radius of the line. For example, the minimum curve radius of a rail transit project is 300 meters, and piles are set every 100 meters. The maximum length error is 0.5 meters, and the maximum lateral error of the curve section is 4.2 meters, which are all within an acceptable range.
[0020] Preferably, the step S102 has two output modes: fixed format mode, i.e. all drawings adopt a uniform format size, which is convenient for subsequent batch printing; floating format mode (keep the width of the drawing unchanged, refer to GB / T 14689 to lengthen the drawing), i.e. one drawing is as long as possible, which can greatly reduce the number of drawings. Refer to GB / T 18229 to set the output ratio.
[0021] Preferably, in step S103, the length and width of the printing area are calculated according to the drawing mode, viewport size and scale (in floating format mode, only the width is calculated). To reflect the situation at both ends of the line, the longitudinal extension distance D is set. x Similarly, set the horizontal translation distance D y (For environmental assessment projects, D y should be slightly larger than the evaluation range).
[0022] In fixed format mode, all stakes in the printing area are filtered according to the length and width of the printing area;
[0023] In floating format mode, all the pile numbers in the printing area are screened according to the width of the printing area, and the required minimum printing format is calculated.
[0024] To ensure the continuity of the center line, the starting pile number of the next drawing should be the same as the ending pile number of the previous drawing.
[0025] Preferably, in step S104, based on the screened pile numbers, the smallest rectangle containing all pile numbers can be easily drawn, and its rotation angle and geometric center can be calculated; in the floating format mode, the minimum format length corresponding to each drawing should also be calculated.
[0026] Preferably, in step S105, the CAD layout operation command stream is saved in the form of a script file including but not limited to a script file, and each layout operation should include at least the following four commands:
[0027] Command 1: Draw the rotated viewport according to the viewport position and size determined in step S102 (in floating format mode, the viewport length is determined in step S104) and the rotation angle determined in step S104;
[0028] Command 2: Set the center of the print area in the viewport and the scale of the viewport according to the geometric center calculated in step S104 and the scale determined in step S102;
[0029] Command 3: Reset the rotated viewport to the normal position;
[0030] Command 4: Draw or insert a rotated compass at a specified position according to the rotation angle determined in step S104.
[0031] A linear engineering rapid drawing system, including the following modules:
[0032] M1: Data input module, used to receive data exported from CAD files and obtain coordinate information of CAD objects from them;
[0033] M2: Data processing module, used to sort the coordinate data obtained in M1 to meet the requirements of subsequent automatic calculation;
[0034] M3: Result generation module, which selects stake numbers according to the drawing requirements and calculates their rotation angle and geometric center based on the selected stake numbers;
[0035] M4: Result export module, used to output the results generated by M3 in the form of script files for CAD reading to achieve rapid drawing output.
[0036] Compared with the prior art, the present invention has the following beneficial technical effects:
[0037] 1. The present invention proposes a method for fast drawing of linear engineering, which simplifies the line plane model by pile number and serves as the basis for subsequent segmentation. According to the drawing setting, the printing range is determined, the pile number corresponding to each drawing is intercepted, and the line is located in the center of the drawing by rotating and scaling the viewport in the layout space. The accuracy of the printing area division is improved, and it can be effectively applied in linear engineering projects such as rail transportation and highways.
[0038] 2. The present invention outputs results in the form of scripts, which can replace repeated manual operations.
[0039] 3. All commands only involve layout space and do not modify (or rely on) the model, which means that all layout operations can be completed in a blank CAD file, which can greatly improve layout efficiency.
[0040] 4. The present invention proposes two drawing output methods, which can achieve batch printing or reduce the number of drawings, thereby improving practicality. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:
[0042] Figure 1 This is a flowchart of the linear engineering rapid drawing method of the present invention.
[0043] Figure 2 This is a flowchart of sorting pile numbers according to the direction of travel proposed by the present invention
[0044] Figure 3 This is a schematic diagram of sorting pile numbers in Example 1.
[0045] Figure 4 This is a flowchart of the fast output of images in the fixed format mode of the present invention.
[0046] Figure 5 It is the minimum rectangular diagram corresponding to the pile number set
[0047] Figure 6 This is a flowchart of the fast drawing in the floating format mode of the present invention
[0048] Figure 7 This is a flowchart of layout view operation.
[0049] Figure 8 This is an example of the layout of the printing area in a fixed format mode for a highway project.
[0050] Fig. 9 This is an example of the layout of the printing area in floating format for a highway project.
[0051] Fig.10 It is the format size recommended by GB / T 14689
[0052] Fig.11 It is the drawing ratio recommended by GB / T 18229. DETAILED DESCRIPTION
[0053] The present invention is described in detail below in conjunction with specific embodiments. The following embodiments will help those skilled in the art to further understand the present invention, but are not intended to limit the present invention in any form. It should be noted that, for those of ordinary skill in the art, several changes and improvements can also be made without departing from the concept of the present invention. These all belong to the protection scope of the present invention.
[0054] In CAD (computer-aided design), pile number is an important concept, which is mainly used to identify and distinguish different pile foundations. Pile number is widely used in the design and construction of linear projects such as highways, railways, long-distance pipelines, and electricity. The following is a detailed explanation of pile number in CAD:
[0055] Pile numbers refer to the unified numbering of the designed foundation piles before construction to facilitate construction. The numbers are unique and non-repetitive. These numbers are used to identify and distinguish multiple "piles" so that the location and attributes of each pile can be accurately identified during construction, management and maintenance.
[0056] The role of pile number
[0057] Identify location: The pile number can clearly identify the specific location of each pile in the linear project, which is crucial for positioning, measurement and recording during construction.
[0058] Easy to manage: Through the stake number, it is convenient to manage and track the construction status of stakes, including construction progress, quality problems, maintenance records, etc.
[0059] Improve efficiency: In CAD, by automatically or manually numbering the stakes, the drawing and management efficiency can be greatly improved, and human errors can be reduced.
[0060] In linear projects such as highways, the stake number is usually combined with the milestone system and expressed in the form of "K kilometers ± meters". For example, the stake number at the starting point is k0+000, and there will be a stake number mark every certain distance (such as 100 meters). This representation method makes the stake number unique and continuous, facilitating understanding and use by construction personnel and management personnel. In CAD software, the "Text" tool or "Dimension" tool can be used to number the stakes. The specific operation steps include opening the CAD software, creating a new drawing, setting the scale, drawing the position of the stakes, and using the "Text" tool to input the stake number, etc. If it is necessary to modify the position or number of the stakes that have been drawn, the "Move" tool or "Text" tool can be used for corresponding adjustments.
[0061] The stake number in CAD is the result of uniformly numbering the designed foundation stakes before construction, used to identify and distinguish different pile foundations. It has the characteristics of uniqueness, continuity, and easy management, and is widely used in the linear engineering design of multiple fields. In CAD software, various tools and methods can be used to edit and manage the stake number to improve the drawing and management efficiency.
[0062] Example 1 Sort the stake numbers
[0063] Generally speaking, the stake numbers can be sorted according to the actual mileage corresponding to the stake numbers. If the stake numbers cannot be matched with the corresponding mileage, the Figure 2 process can be referred to for sorting the stake numbers, and the implementation effect can be seen in Figure 3 .
[0064] Step S201: Assume that there are N stake numbers in the plan view, denoted as P j (1≤j≤N), the project starting point is denoted as P0, and let i = 0.
[0065] Step S202: Calculate the distance in turn, denoted as l j (i<j≤N).
[0066] Step S203: Use the sorting algorithm to rearrange P j in ascending order of l j (i<j≤N).
[0067] Step S204: Set the adjacent stake number determination value, denoted as X0, that is, two stake numbers with a distance less than X0 are considered adjacent. Since there are long chains in actual projects, its value can be slightly larger than the adjacent stake number distance. Calculate successively Denoted as x j .
[0068] When x j < X0, continue the calculation until j > N, and go to Step S205;
[0069] If x j > X0, it means that P j and P j-1 are not adjacent. At this time, let i = j - 1, that is, starting from P j-1 , return to Step S202.
[0070] Step S205: Denote the end point of the project as P N+1 .
[0071] Example 2 Quick drawing in fixed format mode
[0072] If the fixed format mode is selected, the flowchart is shown in Figure 4 .
[0073] Step S401: Set the drawing format with reference to GB / T 14689, and set the viewport size. Set the drawing scale with reference to GB / T 18229, denoted as p. The viewport size is l0×b0. Therefore, the length L0 = l0 / p and width B0 = b0 / p of the printing range can be calculated.
[0074] Step S402: To reflect the situations at both ends of the line, set the longitudinal extension distance D x , and similarly, to reflect the areas on both sides of the line, set the horizontal translation distance D y .
[0075] Step S403: Used to determine the stake numbers that each drawing should contain.
[0076] Let the starting stake number within the printing area of the m-th drawing be denoted as P i , and the ending stake number be denoted as P j . For all stakes within the printing area, the corresponding minimum rectangle is a rectangle with the line connecting P i and P j as the x-axis. Therefore, its rotation angle can be rounded as needed, and the actual rotation angle is denoted as α m . At this time, the length and width of the corresponding minimum rectangle are denoted as L m and B m , and the geometric center coordinates are denoted as (x C,m , y C,m ).
[0077] like Figure 5 The figure shows the linear engineering on both sides D y The smallest rectangle corresponding to the area. The lengths of its left, right, top and bottom extensions are respectively recorded as: ΔL l,m , ΔL r,m , ΔB u,m and ΔB d,m , whose value is related to the tilt angle and the actual rotation angle α m The difference is related to the relationship:
[0078]
[0079] ΔB u,m =D y |cos(α u,m -α m )|
[0080] ΔB d,m =D y |cos(α d,m -α m )|
[0081] To simplify the calculation process, the upper and lower expansion widths can be simplified to: ΔB u,m =ΔB d,m =D y .
[0082] To filter all the pile numbers in the printing area, it is necessary to satisfy P i ~P j Satisfy the judgment requirements and P i ~P j+1 The judgment requirements are not met. The judgment conditions are as follows:
[0083] First drawing: L m +max(D x ,ΔL l,m )+ΔL r,m ≤L0 and D m +2D y ≤B0;
[0084] Other drawings: L m +ΔL l,m +ΔL r,m ≤L0 and D m +2D y ≤B0 (Note: In fixed format mode, because the length of the output drawing is fixed, the extension length at the end of the last drawing may be less than D x of).
[0085] Step S404: Calculate the center of the print area of the viewport. The geometric center of the print area is denoted as (x0,m ,y 0,m ), is to focus on the area (both sides of the line centerline D y The inner area) is arranged at the center of the printing area, and a longitudinal offset ΔL is introduced x,m and lateral offset ΔL y,m . The relationship satisfies:
[0086] x 0,m =x c,m +ΔL x,m cos(α m )-ΔL y,m sin(α m )
[0087] y 0,m =y c,m +ΔL x,m sin(α m )+ΔL y,m cos(α m )
[0088] Where: Longitudinal offset of the first drawing: ΔL x,1 =(ΔL r,1 -max(D x ,ΔL l,1 )) / 2,
[0089] Last drawing: ΔL x,m =(L0-L m -ΔL l,1 ) / 2
[0090] Other drawings: ΔL x,m =(ΔL r,m -ΔL l,m ) / 2;
[0091] ΔL y Generally it is set to 0 and can be adjusted as required.
[0092] Step S405: Generate a script file based on the rotation angle and print area center data calculated in step S404 and referring to step S105.
[0093] Example 3: Fast drawing in floating format mode
[0094] If you select floating format mode, see the flowchart Figure 6 .
[0095] Step S601: Set the base format and base viewport size according to Table 1 of GB / T 14689. The extended format is obtained by increasing the short side of the basic format by an integer multiple. Set the output ratio according to Table 1 of GB / T 18229. The base viewport size is denoted as l0×b0, and the length of the extended viewport is obtained by increasing the short side of the basic format by an integer multiple, denoted as l 0,n , the length of the extended viewport is l0+nl 0,n .
[0096] Taking a horizontal A3 drawing as an example, its base format is A4, and its extended format is A4×(n+2) (n is an integer). The base viewport size is l0×b0, and in the extended format, the viewport size is (l0+210n)×b0.
[0097] Step S602: Same as step S402, set D x and D y .
[0098] Step S603: used to determine the pile numbers that each drawing should include.
[0099] Same as step S403, calculate the actual rotation angle α of each drawing m , the length and width of the corresponding minimum rectangle are denoted as L m and B m , the geometric center coordinates are denoted as (x C,m ,y C,m ), the left and right extension length of the drawing ΔL l,m , ΔL r,n .
[0100] To filter all the pile numbers in the printing area, it is necessary to satisfy P i ~P j Satisfy the judgment requirements and P i ~P j+1 Does not meet the judgment requirements. Judgment conditions: D m +2D y ≤B0.
[0101] Step S604: Determine the increased length of the drawing.
[0102] Length of the first drawing: (l0+nl 0,n ) / p≥L m +max(D x ,ΔL l,m )+ΔL r,m ;
[0103] The length of the last drawing: (l0+nl 0,n ) / p≥L m +ΔL l,m +max(Dx ,ΔL r,m );
[0104] The lengths of the remaining drawings are: (l0+nl 0,n ) / p≥L m +ΔL l,m +ΔL r,m .
[0105] Step S605: Calculate the print area center (x 0,m ,y 0,m ), same as step S404. The longitudinal offset of the last drawing is modified to ΔL x,m =(max(ΔL r,m ,D x )-ΔL l,m ) / 2.
[0106] Step S606: Generate a script file based on the rotation angle and print area center data calculated in step S605 and referring to step S105.
[0107] Each layout operation should contain at least the following 4 commands, and its flow chart is as follows Figure 7 shown.
[0108] Step S701: Draw the rotated viewport.
[0109] Step S702: Set the center and scale of the viewport.
[0110] Step S703: Return the viewport to the normal position.
[0111] Step S704: insert a compass.
[0112] The print areas of a highway project in fixed format and floating format, see Figure 8 and Fig. 9 .
[0113] The protection content of the present invention is not limited to the above embodiments. Without departing from the spirit and scope of the present invention, changes and advantages that can be thought of by those skilled in the art are included in the present invention and are protected by the attached claims.
Claims
1. A method for rapid drawing of linear engineering, characterized in that: The following steps are involved: Step S101: exporting and sorting the stake numbers of the line plane; Step S102: setting the printing mode, format, printing area and ratio; Step S103: Filter the pile numbers within the printing range of each drawing: calculate the size of the printing area according to the viewport size and the scale, and filter out all the pile numbers that should be included in the printing area of each drawing according to the starting pile number. The starting pile number of the next drawing should be the same as the ending pile number of the previous drawing. Step S104: Calculate the rotation angle and the geometric center of the print area according to the coordinates of the pile number in the print area; Step S105: Generate a CAD script file for rapid drawing according to the printing mode, format, printing area and ratio, the rotation angle of the printing area and the pile geometric center.
2. A linear engineering rapid drawing method according to claim 1, characterized in that: The said sorting of pile numbers specifically includes: Step S201: Assume that there are N stake numbers in the plan view, denoted as P j (1≤j≤N), the starting point of the project is recorded as P0, and i=0; Step S202: Calculate The distance, denoted as l j (i <j≤N); Step S203: Use a sorting algorithm to sort l j in ascending order of P j (i < j ≤ N) and rearrange them; Step S204: Set the pile number adjacent judgment value, recorded as X0, that is, two pile numbers with a distance less than X0 are considered adjacent. The value of the pile number adjacent judgment value can be slightly larger than the distance between adjacent pile numbers. Note it as x j ; When x j <When X is less than 0, continue the calculation until j > N, and go to step S205; If x j >X0, it means P j With P j-1 Not adjacent, let i = j-1, that is, P j-1 As the starting point, return to step S202; Step S205: The end point of the project is recorded as P N+1 .
3. A linear engineering rapid drawing method according to claim 2, characterized in that: In the step S101, the connection lines between the stakes are straight line segments, and the connection lines between the stakes can be regarded as simplified line planes, and used as the basis and nodes for subsequent printing area division.
4. A linear engineering rapid drawing method according to claim 2, characterized in that: In step S101, for the line between the pile numbers as a curve segment, the length error and the lateral error are related to the pile number interval s and the curve radius R, specifically: The length error is: Δs=S--2Rsin(s / 2R)≈s 3 / (24R 2 ) The lateral error is: Δd = R-Rcos(s / 2R)≈s 2 / (8R).
5. A linear engineering rapid drawing method according to claim 1, characterized in that: If the fixed format mode is selected, the linear engineering fast drawing methods include: Step S401: Set the drawing format and viewport size according to GB / T 14689, set the output ratio according to GB / T 18229, record it as p, the viewport size is l0×b0, and calculate the length L0=I0 / p and width B0=b0 / p of the printing range; Step S402: Setting the longitudinal extension distance D x , Set the horizontal translation distance D y ; Step S403: Determine the pile numbers that each drawing should include, specifically: Let the starting point number in the printing area of the mth drawing be P i , the end pile number is denoted as P j For all piles in the printing area, the corresponding minimum rectangle is P i and P j Connect the line to the rectangle as the x-axis to get the rotation angle Rotation Angle Round up as required to get the actual rotation angle, denoted as α m At this time, the length and width of the corresponding minimum rectangle are recorded as L m and B m , the geometric center coordinates are denoted as (x C,m ,y C,m ); Linear Engineering Both Sides D y The lengths of the left, right, top, and bottom extensions of the smallest rectangle corresponding to the area are recorded as: ΔL l,m , ΔL r,m , ΔB u,m and ΔB d,m The relationship is: ΔB u,m =D y |cos(α u,m -a m )| ΔB d,m =D y |cos(α d,m -a m )| If you need to simplify the calculation process, the upper and lower expansion widths are simplified to: ΔB u,m =ΔB d,m =D y ; To filter all the pile numbers in the printing area, it is necessary to satisfy P i ~P j Satisfy the judgment requirements and P i ~P j+1 Does not meet the judgment requirements, the judgment conditions are: First drawing: L m +max(D x , ΔL l,m )+ΔL r,m ≤L0 and D m +2D y ≤B0; Other drawings: L m +ΔL l,m +ΔL r,m ≤L0 and D m +2D y ≤B0; Step S404: Calculate the center of the print area of the viewport. The geometric center of the print area is denoted as (x 0,m ,y 0,m ) satisfies the relation: x 0,m =x c,m +ΔL x,m cos(a m )-ΔL y,m sin(a m ) and 0,m =and c,m +ΔL x,m sin(α m )+ΔL y,m cos(α m ) Where: Longitudinal offset of the first drawing: ΔL x,1 =(ΔL r,1 -max(D x , ΔL l,1 )) / 2, Last drawing: ΔL x,m =(L0-L m -ΔL l,1 ) / 2 Other drawings: ΔL x,m =(ΔL r,m -ΔL I,m ) / 2; Step S405: Based on the rotation angle and the printing area center calculated in step S404, refer to step S105 to generate a CAD script file for rapid drawing.
6. A linear engineering rapid drawing method according to claim 1, characterized in that: If the floating format mode is selected, the linear engineering fast drawing methods include: Step S601: Set the base format with reference to Table 1 in GB / T 14689, and set the base viewport size. The extended format is obtained by increasing the short side of the basic format by an integer multiple. Set the output ratio with reference to Table 1 in GB / T18229. The base viewport size is recorded as I0×b0. The length of the extended viewport is obtained by increasing the short side of the basic format by an integer multiple, recorded as I 0,n , the length of the extended viewport is I0+nl 0,n ; Step S602: Setting the longitudinal extension distance D x , Set the horizontal translation distance D y Step S603: Determine the pile numbers that each drawing should include, including: Calculate the actual rotation angle α of each drawing m , the length and width of the corresponding minimum rectangle are denoted as L m and B m , the geometric center coordinates are denoted as (x C,m ,y C,m ), the left and right extension length of the drawing ΔL l,m , ΔL r,m ; To filter all the pile numbers in the printing area, it is necessary to satisfy P i ~P j Satisfy the judgment requirements and P i ~P j+1 Does not meet the judgment requirements, judgment conditions: D m +2D y ≤B0; Step S604: Determine the increased length of the drawing: Length of the first drawing: (I0+nl 0,n ) / p≥L m +max(D x , ΔL l,m )+ΔL r,m ; The length of the last drawing: (I0+nl 0,n ) / p≥L m +ΔL l,m +max(D x , ΔL r,m ); The length of other drawings is: (I0+nl 0,n ) / p≥L m +ΔL l,m +ΔL r,m ; Step S605: Calculate the center of the print area of the viewport. The geometric center of the print area is denoted as (x 0,m ,y 0,m ) satisfies the relation: x 0,m =x c,m +ΔL x,m cos(a m )-ΔL y,m sin(a m ) and 0,m =and c,m +ΔL x,m sin(α m )+ΔL y,m cos(α m ) Where: Longitudinal offset of the first drawing: ΔL x,1 =(ΔL r,1 -max(D x , ΔL l,1 )) / 2, The vertical offset of the last drawing is modified as follows: ΔL x,m =(max(ΔL r,m ,D x )-ΔL l,m ) / 2; Other drawings: ΔL x,m =(ΔL r,m -ΔL I,m) / 2; Step S606: Generate a script file based on the rotation angle and the printing area center calculated in step S605 and referring to step S105.
7. A linear engineering rapid drawing method according to claim 1, characterized in that: In the step S105, in the CAD layout operation command stream of the CAD script file, each layout operation should contain at least the following four commands: Command 1: Draw the rotated viewport according to the viewport position and size determined in step S102 and the rotation angle determined in step S104; Command 2: Set the center of the print area in the viewport and the scale of the viewport according to the geometric center calculated in step S104 and the scale determined in step S102; Command 3: Reset the rotated viewport to the normal position; Command 4: Draw or insert a rotated compass at a specified position according to the rotation angle determined in step S104.
8. A linear engineering rapid drawing system, characterized in that: Includes the following modules: M1: Data input module, used to receive data exported from CAD files and obtain coordinate information of CAD objects from them; M2: Data processing module, used to sort the coordinate data obtained in M1 to meet the requirements of subsequent automatic calculation; M3: Result generation module, which selects stake numbers according to the drawing requirements and calculates their rotation angle and geometric center based on the selected stake numbers; M4: Result export module, used to output the results generated by M3 in the form of script files for CAD reading to achieve fast drawing output.
Citation Information
Patent Citations
BIM-based river channel type linear project design modeling method
CN108614950A
AutoCAD layout-based automatic framing method for survey delimited graphs
CN110083875A
Road center line and stake mark identification method and device
CN111985366A
Design drawing rapid typesetting method based on AutoCAD
CN113051885A
Intelligent CAD drawing framing method and system and readable storage medium
CN114911433A
Cited By
Project plane and longitudinal section design drawing proportion automatic adjustment drawing method
CN119312430A
Engineering plane and longitudinal section design drawing intelligent drawing method
CN119622851A
An intelligent drawing method for engineering plan and longitudinal section design drawings
CN119622851B
