An intelligent drawing method for engineering plan and longitudinal section design drawings

By automatically reading line mileage data and setting drawing parameters through the AutoCAD secondary development program, intelligent drawing of engineering plan and longitudinal section design drawings is realized, solving the problems of multiple operating steps and low efficiency in existing technologies and improving design efficiency.

CN119622851BActive Publication Date: 2025-09-05FOSHAN RAIL TRANSIT DESIGN & RES INST CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411739600.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-29
Publication Date
2025-09-05
Estimated Expiration
2044-11-29

AI Technical Summary

Technical Problem

In the existing technology, the process of drawing engineering plan and longitudinal section design drawings requires manual calculation of the drawing range and setting of the viewport size, which leads to many operation steps and low efficiency, and designers need to do a lot of repetitive work.

Method used

Adopting AutoCAD secondary development program, the AutoCAD.NET API interface automatically reads line mileage data, sets drawing parameters, calculates and automatically arranges the drawing range, copies and aligns viewports, and realizes intelligent drawing of engineering plan and longitudinal section design drawings.

Benefits of technology

It greatly improves the efficiency of design drawing production, reduces manual operation steps, liberates the labor productivity of designers, and improves production efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119622851B_ABST
    Figure CN119622851B_ABST
Patent Text Reader

Abstract

The present invention provides an intelligent drawing method for engineering plan and longitudinal section design drawings. The method comprises the following steps: running the application software of an AutoCAD secondary development program and engineering plan and longitudinal section design scheme files to read line mileage data; then inputting the drawing mileage range of the engineering plan and longitudinal section design drawings and setting the drawing parameters of the engineering plan and longitudinal section design drawings; then calculating the vertex coordinates of the drawing range of the single-page plan and longitudinal section design drawings and automatically and continuously arranging the corresponding drawing drawing ranges; copying and generating the drawing layout in the layout window, and automatically aligning the viewport and the drawing drawing; the automated drawing method of the present invention greatly improves work efficiency, avoids manual steps such as drawing auxiliary lines, measuring lengths, drawing and rotating the drawing range in the CAD model space and layout space, which have many operation steps, reduces time consumption, avoids designers from doing a lot of repetitive work, liberates labor productivity, and improves production efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of traffic automation design, in particular to an intelligent drawing method for engineering plan and longitudinal section design drawings. Background Art

[0002] Currently, when engineering designers produce plan and longitudinal section drawings, they first need to manually measure the route mileage in the CAD model space to confirm the drawing range. They then calculate the drawing range based on the drawing scale and viewport size, and manually arrange the drawing range and plan compass for each drawing according to the route's direction. Finally, they copy the drawing layout, manually rotate and scale the drawing viewport within the layout according to the route's direction, and manually print the drawing in PDF format. This manual process involves numerous steps, such as drawing auxiliary lines, measuring lengths, and drawing and rotating the drawing range. This is time-consuming and requires a significant amount of repetitive work for engineering designers, wasting productivity and reducing production efficiency. Summary of the Invention

[0003] In response to the above problems, the present invention aims to intelligently produce plan and longitudinal section design drawings of urban road projects, solving the problems of the existing rail transit industry in design, which requires calculating the drawing range size based on multiple factors such as the drawing range, drawing scale, viewport size, etc., and manually performing subsequent steps, resulting in many operating steps, a lot of repetitive work, and low efficiency.

[0004] In order to solve the above problems, the present invention provides a method for the automated design and layout of rail transit shield tunnel section monitoring, which has good feasibility, specifically:

[0005] An intelligent drawing method for engineering plan and longitudinal section design drawings comprises the following steps:

[0006] S1. Running an AutoCAD secondary development program to automatically open the AutoCAD application software, wherein the AutoCAD secondary development program references an AutoCAD.NET API interface file, is capable of recognizing AutoCAD files in dwg, dws, dwt, and dxf formats, and reading file database information;

[0007] S2. Open the engineering plan and longitudinal section design files and read the line mileage data. The line mileage data is directly read from the engineering plan and longitudinal section design files in dwg, dws, dwt, or dxf formats using the AutoCAD secondary development program described in step S1.

[0008] S3. Input the mileage range for the project plan and longitudinal section design drawings. The mileage range for the drawing is expressed by selecting the starting line mileage and the ending line mileage based on the line mileage data described in step S2.

[0009] S4. Set the drawing parameters for the engineering plan and longitudinal section design drawings;

[0010] S5. Calculating vertex coordinates of a drawing range of a single-page planar design drawing according to the route mileage data and drawing parameters, and automatically and continuously arranging the drawing range of the single-page planar design drawing;

[0011] S6. Calculating vertex coordinates of the output range of the single-page longitudinal section design drawing according to the line mileage data and the output parameters, and automatically and continuously arranging the output range of the single-page longitudinal section design drawing;

[0012] S7. Copy and generate the drawing layout in the layout window, and automatically align the viewport and drawing.

[0013] Preferably, in step S4, the drawing parameters include the drawing range size of a single-page drawing in the model space and the overlapping length of the drawing ranges of adjacent drawings; the drawing range size of the single-page drawing includes the drawing range length W and the drawing width L; the drawing range overlapping length is the overlapping length L of the drawing ranges of adjacent drawings in the model space. R .

[0014] Preferably, step S5 specifically includes the following steps:

[0015] S51, calculating the vertex coordinates of the drawing output range of the first page of the graphic design drawing;

[0016] S52, looping and calculating the coordinates of the vertices of the output range of the i-th page of the graphic design drawing, where i is an integer greater than 1;

[0017] S53. Draw the plane design drawing output range and the compass one by one according to the vertex coordinates of the output range calculated in steps S51 and S52.

[0018] Preferably, the step S51 specifically includes the following steps:

[0019] S511, according to the mileage of the starting line and the mileage of the end line of the mileage range of step S3, obtain the corresponding point P on the line in the plane design drawing Q 、P Z ; Define P 1Q The starting point of the first page of graphic design drawing, P 1Q P is the distance along the line in the direction of small mileage Q For L R The point on the line is obtained according to the GetPointAtDist method of AutoCAD; the GetPointAtDist method is used to obtain a point on the line that is a specified distance away from a base point.

[0020] S512: When the difference between the mileage of the end line and the mileage of the starting line in the drawing mileage range in step S3 is not greater than the length L of the drawing range, only the first page drawing range needs to be arranged, and step S52 is skipped; define the point set {P′ 11 , P′ 12 ,……,P′ 1n}, the points in the set are points P on the line 1Q to P Z n+1 equally divided points, n is the azimuth angle recognition accuracy parameter of the map output range, which is a positive integer;

[0021] When the difference between the mileage of the end line and the mileage of the starting line in the mileage range of the map output in step S3 is greater than the length of the map output range L, the point set {P′ 11 , P′ 12 ,……,P′ 1n}, the points in the set are points P on the line 1Q to P′ 1Z The n+1 equal points of 1Z Point P 1Q The point on the line at the specified distance L along the direction of the maximum mileage is obtained according to the GetPointAtDist method of AutoCAD; if P′ 1Z Does not exist, that is, define P′ 1Z P Z ;

[0022] S513, the azimuth angle α1 of the first page of the plane design drawing output range is rotated according to the point set {P′ 11 , P′ 12 ,……,P′ 1n The azimuth of each point in} is calculated;

[0023] Define the vertex of the first page of graphic design drawing output range as P 11 、P 12 、P 13 、P 14 , the X-axis and Y-axis coordinates of the four vertices are based on point P 1Q The coordinates, the azimuth angle α1 of the output range of the first page of the plane design drawing, and the output range length W and output width L described in step S4 are calculated;

[0024] The X-axis, Y-axis and corresponding coordinate calculations all adopt the Cartesian plane rectangular coordinate system.

[0025] Preferably, the step S52 specifically includes the following steps:

[0026] S521, define the end point P of the output range of the plane design drawing on page i-1 (I-1)Z ; the P (i-1)ZThe route and point P within the mileage range of step S3 (i-1)3 、P (I-1)4 The intersection of the lines; when the number of intersections is not 1, that is, P (i-1)Z If it does not exist, it means that the mileage range of the drawing has been exceeded or the drawing scale needs to be increased, and the loop of step S52 is jumped out and the drawing range is stopped;

[0027] S522, when P (I-1)Z If there is only one value, continue to calculate the vertex coordinates of the output range of the plane design drawing on page i;

[0028] S523, define P iQ The starting point of the output range of the plane design drawing on page i is P (I-1)Z Specify the distance along the small mileage direction as the overlap length L of the output range R A point on the line;

[0029] S524, define the point set {P′ i1 , P′ i2 ,……,P′ in}, the points in the set are points P on the line iQ to P′ iZ The n+1 equal points of iz Point P iQ The point on the line at the specified distance L along the direction of the maximum mileage is obtained according to the GetPointAtDist method of AutoCAD; if P′ iZ Does not exist, that is, define P′ iZ P Z ;

[0030] S525, the azimuth angle α of the rotation of the i-th output range i According to the point set {P′ i1 , P′ i2 ,……,P′ in The azimuth of each point in} is calculated;

[0031] Define the vertex of the output range of the plane design drawing on page i as P i1 、P i2 、P i3 、P i4 , the X-axis and Y-axis coordinates of the four vertices are based on point P iQ Coordinates, azimuth angle α of the output range of the plane design drawing on page i i And the output range length W and output width L described in step S4 are calculated.

[0032] Preferably, in step S53, the drawing output range is represented by a polyline, and the drawing output range of the plane design drawing of page i is represented by points Pi1 、P i2 、P i3 、P i4 The compass is a block reference, and the compass needs to be inserted one by one according to the insertion point coordinates within the drawing range of each page of the graphic design drawing; the insertion point coordinates are calculated based on the vertex coordinates within the drawing range of the single page of the graphic design drawing.

[0033] Preferably, step S6 specifically includes the following steps:

[0034] S61. Obtain the starting point and end point of the mileage range for outputting the longitudinal section design drawing;

[0035] S62, calculating the vertex coordinates of the drawing range of the first page of the longitudinal section design drawing;

[0036] S63, looping and calculating the coordinates of the vertices of the drawing output range of the j-th page of the longitudinal section design drawing (j is an integer greater than 1);

[0037] S64. Draw all the longitudinal section design drawing output ranges one by one according to the vertex coordinates of the longitudinal section design drawing output range calculated in steps S62 and S63.

[0038] Preferably, step S7 specifically includes the following steps:

[0039] S71, copy and generate a layout according to the number of the single-page drawing output range in step S4;

[0040] S72, aligning the viewport with the output range described in step S4;

[0041] S73. Print all layouts using a printer and print styles to complete the drawing.

[0042] Compared with the prior art, the present invention has the following beneficial effects:

[0043] The present invention aims to achieve intelligent drawing of engineering plan and longitudinal section design drawings and designs a set of intelligent and automated drawing methods for engineering plan and longitudinal section design drawings, significantly improving work efficiency. The present invention provides an intelligent drawing method for engineering plan and longitudinal section design drawings. By reading line mileage data and setting relevant drawing parameters, the method can intelligently arrange the drawing range of engineering plan and longitudinal section design drawings, automatically copy and create drawing layouts, automatically align viewports, and automatically print drawings. This avoids the manual operation steps of drawing auxiliary lines, measuring lengths, drawing and rotating the drawing range in the CAD model space and layout space, which require many steps. This reduces time consumption, avoids designers from doing a lot of repetitive work, liberates labor productivity, and improves production efficiency.

[0044] The plan and longitudinal section design drawings for a 55-kilometer linear project, which would take about 10 working days to produce manually using existing production methods, can be automatically produced in just one working day using the methods and embodiments of the present invention, significantly improving production efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 This is a flow chart of an intelligent drawing method for engineering plan and longitudinal section design drawings of the present invention;

[0046] Figure 2 It is a structural diagram of embodiment 2 of the present invention. DETAILED DESCRIPTION

[0047] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the embodiments described are only 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 making creative work are within the scope of protection of the present invention. The preferred embodiments of the present invention are further described in detail below with reference to the drawings.

[0048] Example 1:

[0049] An intelligent drawing method for engineering plan and longitudinal section design drawings, combined with Figure 1 The flow chart of the method for intelligently producing engineering plan and longitudinal section design drawings of the present invention includes the following steps:

[0050] S1. Run the AutoCAD secondary development program to automatically open the AutoCAD application software; the AutoCAD secondary development program references the AutoCAD.NET API interface file, can recognize AutoCAD files including dwg, dws, dwt, and dxf formats, and read file database information.

[0051] S2. Open the engineering plan and longitudinal section design plan file and read the line mileage data; the line mileage data is directly read from the engineering plan and longitudinal section design plan dwg, dws, dwt, dxf format files based on the AutoCAD secondary development program in step S1.

[0052] S3. Input the mileage range of the engineering plan and longitudinal section design drawings; the mileage range of the drawing is represented by selecting the starting line mileage and the ending line mileage according to the line mileage data described in step S2.

[0053] S4. Set the drawing parameters for the project plan and longitudinal section design drawings.

[0054] In step S4, the drawing parameters include the drawing range size of a single-page drawing in the model space and the overlapping length of the drawing ranges of adjacent drawings. The drawing range size of a single-page drawing includes the drawing range length W and the drawing width L. The overlapping length of the drawing range is the overlapping length L of the drawing ranges of adjacent drawings in the model space. R .

[0055] S5. Calculate the vertex coordinates of the output range of the single-page plane design drawing according to the route mileage data and the output parameters, and automatically and continuously arrange the output range of the single-page plane design drawing.

[0056] Step S5 specifically includes the following steps:

[0057] S51, calculating the vertex coordinates of the output range of the first page of the graphic design drawing. Step S51 specifically includes the following steps:

[0058] S511, according to the mileage of the starting line and the mileage of the end line of the mileage range of step S3, obtain the corresponding point P on the line in the plane design drawing Q 、P Z ; Define P 1Q The starting point of the first page of graphic design drawing, P 1Q P is the distance along the line in the direction of small mileage Q For L R The point on the line is obtained according to the GetPointAtDist method of AutoCAD; the GetPointAtDist method is used to obtain a point on the line that is a specified distance away from a base point.

[0059] S512: When the difference between the mileage of the end line and the mileage of the starting line in the drawing mileage range in step S3 is not greater than the length L of the drawing range, only the first page drawing range needs to be arranged, and step S52 is skipped; define the point set {P′ 11 , P′ 12 ,……,P′ 1n}, the points in the set are points P on the line 1Q to P Z n+1 equally divided points, n is the azimuth angle recognition accuracy parameter of the map output range, which is a positive integer.

[0060] When the difference between the mileage of the end line and the mileage of the starting line in the mileage range of the map output in step S3 is greater than the length of the map output range L, the point set {P′ 11 , P′ 12 ,……,P′ 1n}, the points in the set are points P on the line 1Q to P′ 1Z The n+1 equally divided points of P′ 1Z Point P 1QThe point on the line at the specified distance L along the direction of the maximum mileage can be obtained using the GetPointAtDist method of AutoCAD. 1Z Does not exist, that is, define P′ 1Z P Z .

[0061] S513, the azimuth angle α1 of the first page of the plane design drawing output range is rotated according to the point set {P′ 11 , P′ 12 ,……,P′ 1n}The azimuth of each point is calculated.

[0062] Define the vertex of the first page of graphic design drawing output range as P 11 、P 12 、P 13 、P 14 , the X-axis and Y-axis coordinates of the four vertices are based on point P 1Q The coordinates, the azimuth angle α1 of the output range of the first page of the plane design drawing, and the output range length W and output width L described in step S4 are calculated.

[0063] The X-axis, Y-axis and corresponding coordinate calculations all adopt the Cartesian plane rectangular coordinate system.

[0064] S52, looping and calculating the coordinates of the vertices of the output range of the i-th page of the graphic design drawing, where i is an integer greater than 1. Step S52 specifically includes the following steps.

[0065] S521, define the end point P of the output range of the plane design drawing on page i-1 (i-1)Z The P (i-1)Z The route and point P within the mileage range of step S3 (i-1)3 、P (i-1)4 The intersection of the lines. When the number of intersections is not 1, that is, P (i-1)Z If it does not exist, it means that the mileage range of the drawing has been exceeded or the drawing scale needs to be increased, and the loop described in step S52 is jumped out to stop arranging the drawing range.

[0066] S522, when P (i-1)z When there is only one value, continue to calculate the vertex coordinates of the output range of the graphic design drawing on page i.

[0067] S523, define P iQ The starting point of the output range of the plane design drawing on page i is P (i-1)Z Specify the distance along the small mileage direction as the overlap length L of the output range R Points on the line.

[0068] S524, define the point set {P′ i1 , P′i2 ,……,P′ in}, the points in the set are points P on the line iQ to P′ iZ The n+1 equally divided points of P′ iZ Point P iQ The point on the line at the specified distance L along the direction of the maximum mileage is obtained according to the GetPointAtDist method of AutoCAD; if P′ iz Does not exist, that is, define P′ iZ P′ Z .

[0069] S525, the azimuth angle α of the rotation of the i-th output range i According to the point set {P′ i1 , P′ i2 ,……,P′ in}The azimuth of each point is calculated.

[0070] Define the vertex of the output range of the plane design drawing on page i as P i1 、P i2 、P i3 、P i4 , the X-axis and Y-axis coordinates of the four vertices are based on point P iQ Coordinates, azimuth angle α of the output range of the plane design drawing on page i i And the output range length W and output width L described in step S4 are calculated.

[0071] S53, according to the vertex coordinates of the drawing range calculated in steps S51 and S52, draw the drawing range and the compass of the plane design drawing one by one. In step S53, the drawing range is represented by a polyline. The drawing range of the plane design drawing of page i is represented by point P i1 、P i2 、P i3 、P i4 The compass is a block reference and needs to be inserted one by one according to the insertion point coordinates within the drawing range of each page of the graphic design drawing. The insertion point coordinates are calculated based on the vertex coordinates within the drawing range of the single page of the graphic design drawing.

[0072] S6, calculating the vertex coordinates of the output range of the single-page longitudinal section design drawing according to the line mileage data and the output parameters, and automatically and continuously arranging the output range of the single-page longitudinal section design drawing. Step S6 specifically includes the following steps:

[0073] S61. Obtain the starting point and end point of the mileage range of the longitudinal section design drawing.

[0074] S62. Calculate the vertex coordinates of the drawing range of the first page of longitudinal section design drawing.

[0075] S63. Calculate the vertex coordinates of the drawing range of the longitudinal section design drawing on page j in a loop (j is an integer greater than 1).

[0076] S64. Draw all the longitudinal section design drawing output ranges one by one according to the vertex coordinates of the longitudinal section design drawing output range calculated in steps S62 and S63.

[0077] S7, copying and generating the drawing layout in the layout window, and automatically aligning the viewport and the drawing for output. Step S7 specifically includes the following steps.

[0078] S71. Copy and generate a layout according to the number of the single-page drawing output range described in step S4.

[0079] S72. Align the viewport with the output range according to step S4.

[0080] S73. Print all layouts using a printer and print styles to complete the drawing.

[0081] The present invention aims to achieve intelligent drawing of engineering plan and longitudinal section design drawings and designs a set of intelligent and automated drawing methods for engineering plan and longitudinal section design drawings, significantly improving work efficiency. The present invention provides an intelligent drawing method for engineering plan and longitudinal section design drawings. By reading line mileage data and setting relevant drawing parameters, the method can intelligently arrange the drawing range of engineering plan and longitudinal section design drawings, automatically copy and create drawing layouts, automatically align viewports, and automatically print drawings. This avoids the manual operation steps of drawing auxiliary lines, measuring lengths, drawing and rotating the drawing range in the CAD model space and layout space, which require many steps. This reduces time consumption, avoids designers from doing a lot of repetitive work, liberates labor productivity, and improves production efficiency.

[0082] The plan and longitudinal section design drawings for a 55-kilometer linear project, which would take about 10 working days to produce manually using existing production methods, can be automatically produced in just one working day using the methods and embodiments of the present invention, significantly improving production efficiency.

[0083] Example 2

[0084] The present invention proposes an intelligent drawing system for engineering plan and longitudinal section design drawings, the structural diagram of which is as follows: Figure 2 As shown, the system includes:

[0085] The basic data input module is used to input the mileage data of the engineering plan and longitudinal section, the drawing range size of a single-page drawing, and the overlapping length of the drawing ranges of adjacent drawings.

[0086] The intelligent layout module for engineering plan and longitudinal section design drawings is used to automatically calculate and arrange the drawing range and plane compass along the route plan and longitudinal section design scheme.

[0087] The intelligent drawing module for project plan and longitudinal section design drawings automatically copies and generates a drawing layout, including the drawing viewport, drawing frame, title block, signature block, drawing description, legend, and drawing number information. The viewport is then aligned according to the drawing range and the drawing is printed.

[0088] The functions and implementation methods of each module in the intelligent drawing system for engineering plan and longitudinal section design drawings provided in Example 2 of the present invention have been introduced in detail in the above-mentioned Example 1, so they will not be elaborated here.

[0089] The above is a further detailed description of the present invention in conjunction with specific preferred embodiments, and the specific implementation of the present invention should not be considered to be limited to these descriptions. For those skilled in the art of the present invention, without departing from the concept of the present invention, several simple deductions or substitutions can be made, which should be considered to fall within the scope of protection of the present invention.

Claims

1. An intelligent drawing method for engineering plan and longitudinal section design drawings, characterized in that: The steps include: S1. Running an AutoCAD secondary development program to automatically open the AutoCAD application software, wherein the AutoCAD secondary development program references an AutoCAD.NET API interface file, is capable of recognizing AutoCAD files in dwg, dws, dwt, and dxf formats, and reading file database information; S2. Open the engineering plan and longitudinal section design files and read the line mileage data. The line mileage data is directly read from the engineering plan and longitudinal section design files in dwg, dws, dwt, or dxf formats using the AutoCAD secondary development program described in step S1. S3. Input the mileage range for the project plan and longitudinal section design drawings. The mileage range for the drawing is expressed by selecting the starting line mileage and the ending line mileage based on the line mileage data described in step S2. S4. Set the drawing parameters for the engineering plan and longitudinal section design drawings; S5. Calculating vertex coordinates of a drawing range of a single-page planar design drawing according to the route mileage data and drawing parameters, and automatically and continuously arranging the drawing range of the single-page planar design drawing; The step S5 specifically includes the following steps: S51, calculating the vertex coordinates of the drawing output range of the first page of the graphic design drawing; The step S51 specifically includes the following steps: S511, according to the mileage of the starting line and the mileage of the end line of the mileage range of step S3, obtain the corresponding points on the line in the plane design drawing respectively 、 ;definition This is the starting point for the first page of graphic design drawings. The distance along the line in the direction of small mileage for The point on the line is obtained according to the GetPointAtDist method of AutoCAD; the GetPointAtDist method is used to obtain a point on the line that is a specified distance from the base point; S512: When the difference between the mileage of the end line and the mileage of the starting line in the mileage range of step S3 is not greater than the length of the map range, When only the first page drawing output range needs to be arranged, step S52 is skipped; define the point set , the points in the set are points on the line arrive n+1 equally divided points, n is the azimuth angle recognition accuracy parameter of the map output range, which is a positive integer; When the difference between the mileage of the end line and the mileage of the starting line in the mileage range of the map in step S3 is greater than the length of the map range When defining the point set , the points in the set are points on the line arrive n+1 equally divided points; for point Specify the distance along the direction of the large mileage as the length of the plot range The point on the line is obtained according to the GetPointAtDist method of AutoCAD; if Does not exist, that is, definition for ; S513, the azimuth angle of rotation of the first page of the graphic design drawing output range According to the point set The azimuth of each point in the equation is calculated; Define the vertex of the first page of graphic design drawing output range as 、 、 、 , the X-axis and Y-axis coordinates of the four vertices are based on the point Coordinates, azimuth of the first page of graphic design drawing output range And the length of the output range in step S4 and plot width Calculated; The X and Y axes and their corresponding coordinates are calculated using the Cartesian plane rectangular coordinate system; S52, looping and calculating the coordinates of the vertices of the output range of the i-th page of the graphic design drawing, where i is an integer greater than 1; S53, drawing the plane design drawing output range and the compass one by one according to the vertex coordinates of the output range calculated in steps S51 and S52; S6. Calculating vertex coordinates of the output range of the single-page longitudinal section design drawing according to the line mileage data and the output parameters, and automatically and continuously arranging the output range of the single-page longitudinal section design drawing; S7. Copy and generate the drawing layout in the layout window, and automatically align the viewport and drawing.

2. The intelligent drawing method for engineering plan and longitudinal section design drawings according to claim 1 is characterized in that: In step S4, the drawing parameters include the drawing range size of a single-page drawing in the model space and the overlapping length of the drawing ranges of adjacent drawings; the drawing range size of the single-page drawing includes the drawing range length and plot width The overlapping length of the output range is the overlapping length of the output range of adjacent drawings in the model space. .

3. The intelligent drawing method for engineering plan and longitudinal section design drawings according to claim 1 is characterized in that: The step S52 specifically includes the following steps: S521, define the end point of the output range of the plane design drawing on page i-1 ; The lines and points within the mileage range of step S3 、 The intersection of the lines; When the number of intersections is not 1, that is, If it does not exist, it means that the mileage range of the drawing has been exceeded or the drawing scale needs to be increased, and the loop of step S52 is jumped out and the drawing range is stopped; S522, when If there is only one value, continue to calculate the vertex coordinates of the output range of the plane design drawing on page i; S523, Definition The starting point of the drawing range for the i-th page of graphic design drawings is Specify the distance along the small mileage direction as the overlapping length of the output range A point on the line; S524, define point set , the points in the set are points on the line arrive n+1 equally divided points; for point Specify the distance along the direction of the large mileage as the length of the plot range The point on the line is obtained according to the GetPointAtDist method of AutoCAD; if Does not exist, that is, definition for ; S525, the azimuth angle of rotation of the i-th output range According to the point set The azimuth of each point in the equation is calculated; Define the vertex of the output range of the plane design drawing on page i as 、 、 、 , the X-axis and Y-axis coordinates of the four vertices are based on the point Coordinates, azimuth of the output range of the plane design drawing on page i And the length of the output range in step S4 and plot width Calculated.

4. The intelligent drawing method for engineering plan and longitudinal section design drawings according to claim 1 is characterized in that: In step S53, the drawing range is represented by a polyline, and the drawing range of the plane design drawing of page i is represented by points 、 、 、 The compass is a block reference and needs to be inserted one by one according to the insertion point coordinates within the drawing range of each page of the plane design drawing; The insertion point coordinates are calculated based on the vertex coordinates of the drawing output range of the single-page graphic design drawing.

5. The intelligent drawing method for engineering plan and longitudinal section design drawings according to claim 1 is characterized in that: The step S6 specifically includes the following steps: S61. Obtain the starting point and end point of the mileage range for outputting the longitudinal section design drawing; S62, calculating the vertex coordinates of the drawing range of the first page of the longitudinal section design drawing; S63, looping and calculating the coordinates of the vertices of the output range of the j-th page of the longitudinal section design drawing, where j is an integer greater than 1; S64. Draw all the longitudinal section design drawing output ranges one by one according to the vertex coordinates of the longitudinal section design drawing output range calculated in steps S62 and S63.

6. The intelligent drawing method for engineering plan and longitudinal section design drawings according to claim 2 is characterized in that: The step S7 specifically includes the following steps: S71, copying and generating a layout according to the number of the output range of the single-page drawing in step S4; S72, aligning the viewport with the output range described in step S4; S73. Print all layouts using a printer and print styles to complete the drawing.

Citation Information

Patent Citations

  • Longitudinal section drawing method

    CN117708913A

  • Linear engineering rapid plotting method and system

    CN118965514A