Engineering plane and longitudinal section design drawing intelligent drawing method

By developing an intelligent drawing method in AutoCAD, the drawing range of rail transit design drawings is automatically calculated and arranged, the problem of low design efficiency in the existing technology is solved, and efficient automation of design work is achieved.

CN119622851AActive Publication Date: 2025-03-14FOSHAN RAIL TRANSIT DESIGN & RES INST CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In the design of the rail transit industry, the size of the graph range is manually calculated based on multiple elements and performed manual operations, resulting in many operation steps, many repetitive labor, and low efficiency.

Method used

It provides an intelligent drawing method for engineering plane and longitudinal section design drawings. Through the AutoCAD secondary development program, it automatically reads line mileage data, sets drawing parameters, calculates the vertex coordinates of the drawing range, automatically arranges and copys the drawing layout, automatically aligns the viewports and prints the drawings.

Benefits of technology

It greatly improves the design work efficiency, reduces manual operation steps, avoids repetitive labor, and improves production efficiency. In specific examples, the design work of a 55-kilometer length was shortened from the original 10 working days to 1 working day.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119622851A_ABST
    Figure CN119622851A_ABST
Patent Text Reader

Abstract

The invention provides an intelligent drawing method for engineering plane and longitudinal section design drawings, which comprises the following steps of: running application software of an AutoCAD secondary development program and an engineering plane and longitudinal section design scheme file, and reading line mileage data; then inputting a drawing mileage range of the engineering plane and longitudinal section design drawing, and setting drawing parameters of the engineering plane and longitudinal section design drawing; calculating drawing output range vertex coordinates of single-page plane and longitudinal section design drawings, automatically and continuously arranging corresponding drawing output ranges, copying and generating a drawing layout in a layout window, and automatically aligning viewports and drawing output; according to the automatic drawing method, the working efficiency is greatly improved, the steps of manual auxiliary line drawing, length measuring, drawing, drawing range rotating and the like which are carried out in a CAD model space and a layout space manually are avoided, the time consumption is reduced, a large amount of repeated labor of designers is avoided, the labor productivity is liberated, and the production efficiency is improved. The production efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] At present, when designers in the engineering industry produce plan and longitudinal section design drawings, they first need to manually measure the line mileage in the CAD model space to confirm the drawing range, then calculate the drawing range size according to the drawing scale and viewport size, and manually arrange the drawing range and plane compass of each drawing according to the line direction. Finally, copy the drawing layout, manually rotate and scale the drawing viewport in the layout according to the line direction, and manually print the pdf format drawing. The above work involves many steps such as manually drawing auxiliary lines, measuring lengths, drawing and rotating the drawing range, which takes a long time. Designers in the engineering industry need to do a lot of repetitive work, which wastes productivity and reduces production efficiency. Summary of the invention

[0003] In response to the above problems, the present invention aims at the intelligent drawing of plan and longitudinal section design drawings of urban road projects, so as to solve the problems of the existing rail transit industry in designing, which requires calculating the drawing range size according to multiple elements such as 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 rail transit shield section monitoring automation design and layout method, which has good feasibility, specifically:

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

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

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

[0008] S3, inputting the mileage range of the engineering plan and longitudinal section design drawings, wherein the mileage range of the drawing is expressed by selecting the starting line mileage and the end line mileage according to the line mileage data in step S2;

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

[0010] S5, calculating 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 arranging the output range of the single-page plane design drawing;

[0011] 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;

[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 range of the first page of the graphic design drawing;

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

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

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

[0019] S511, according to the starting line mileage and the end line mileage of the mileage range of step S3, respectively 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 output range, 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 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 mileage range of step S3 is not greater than the length L of the mileage range, only the first page of drawings 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 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 points of equal division; P′ 1Z For point P 1Q The point on the line at the specified distance L along the direction of the large 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 α of the first page of the graphic design drawing output range rotation 1 According to the point set {P′ 11 , P′ 12 , ..., P′ 1n}The azimuth of each point 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 Coordinates, azimuth angle α of the first page of graphic design drawing output range 1 And the length W of the image output range and the width L of the image output are calculated in step S4;

[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)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 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, Definition P iQ The starting point of the output range of the i-th page of graphic design drawings is P (I-1)Z The specified distance along the small mileage direction is the overlap length L of the output range R Points 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 points of equal division; P′ iz For point P iQ The point on the line at the specified distance L along the direction of the large 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 is calculated;

[0031] Define the vertex of the i-th page of the graphic design drawing output range 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 drawing range of the plane design drawing on page i i And the image output range length W and image output width L described in step S4 are calculated.

[0032] Preferably, in step S53, the drawing output range is represented by a polyline enclosure, and the drawing output range of the plane design drawing of the i-th page is sequentially represented by points P i1 , P i2 , P i3 , P i4 The compass is a block reference, and the compasses need 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 graphic design drawing.

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

[0034] S61, obtaining the starting point and the end point of the mileage range of the longitudinal section design drawing;

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

[0036] S63, cyclically calculating the coordinates of the vertices of the j-th page of the longitudinal section design drawing output range (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, copying and generating a layout according to the number of the single-page drawing output range described in step S4;

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

[0041] S73. Print all layouts through 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 realize intelligent drawing of engineering plane and longitudinal section design drawings, designs a set of intelligent and automated drawing methods for engineering plane and longitudinal section design drawings, and greatly improves work efficiency. The present invention provides an intelligent drawing method for engineering plane and longitudinal section design drawings, which reads line mileage data and sets relevant drawing parameters, thereby realizing intelligent arrangement of drawing range, automatic copying and creation of drawing layout, automatic alignment of viewports, and automatic printing of drawings for engineering plane and longitudinal section design drawings, avoiding manual operation steps such as drawing auxiliary lines, measuring lengths, drawing and rotating drawing ranges in CAD model space and layout space, reducing time consumption, avoiding designers from doing a lot of repetitive labor, liberating labor productivity, and improving production efficiency.

[0044] If the existing production method is used, it takes about 10 working days to manually process the design drawings of the plane and longitudinal section of a 55-kilometer linear project. If the method and embodiment of the present invention are used, it only takes 1 working day to complete the automatic drawing, which greatly improves the production efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 It is a flow chart of an intelligent drawing method for engineering plane 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 described embodiments 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 creative work are within the scope of protection of the present invention. The preferred embodiments of the present invention are further described in detail in combination with the drawings.

[0048] Embodiment 1:

[0049] An intelligent drawing method for engineering plan and longitudinal section design drawings, combined with Figure 1 A flow chart of an intelligent drawing method for engineering plan and longitudinal section design drawings of the present invention comprises 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 identify AutoCAD files including dwg, dws, dwt, and dxf formats, and read file database information.

[0051] S2. Open the engineering plan and longitudinal section design scheme file and read the line mileage data; the line mileage data is directly read from the engineering plan and longitudinal section design scheme 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 end 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 graphic design drawing according to the route mileage data and the output parameters, and automatically and continuously arrange the output range of the single-page graphic design drawing.

[0056] Step S5 specifically includes the following steps:

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

[0058] S511, according to the starting line mileage and the end line mileage of the mileage range of step S3, respectively 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 output range, 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 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 mileage range of step S3 is not greater than the length L of the mileage range, only the first page of drawings 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 The n+1 equally divided points are as follows, where n is the azimuth angle recognition accuracy parameter of the output range and 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 1ZFor point P 1Q The point on the line at the specified distance L along the direction of the large mileage is obtained according to the GetPointAtDist method of AutoCAD. 1Z does not exist, that is, define P′ 1Z P Z .

[0061] S513, the azimuth angle α of the first page of the graphic design drawing output range rotation 1 According to the point set {P′ 11 , P′ 12 , ..., P′ 1n}The azimuth of each point in 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 Coordinates, azimuth angle α of the first page of graphic design drawing output range 1 And the image output range length W and image 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, cyclically calculating the vertex coordinates of the output range of the plane design drawing of the i-th page, 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 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 one and only one value, continue to calculate the vertex coordinates of the output range of the i-th page of the graphic design drawing.

[0067] S523, Definition P iQ The starting point of the output range of the i-th page of graphic design drawings is P (i-1)Z The specified distance along the small mileage direction is 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 iZ For point P iQ The point on the line at the specified distance L along the direction of the large 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 in is calculated.

[0070] Define the vertex of the i-th page of the graphic design drawing output range 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 drawing range of the plane design drawing on page i i And the image output range length W and image 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 the i-th page is represented by points P i1 , 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 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. Loop through the calculations of the vertex coordinates of the drawing range of the j-th page of the longitudinal section design drawing (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, copy and generate the drawing layout in the layout window, and automatically align the viewport and the drawing to 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, aligning the viewport with the drawing range described in step S4.

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

[0081] The present invention aims to realize intelligent drawing of engineering plane and longitudinal section design drawings, designs a set of intelligent and automated drawing methods for engineering plane and longitudinal section design drawings, and greatly improves work efficiency. The present invention provides an intelligent drawing method for engineering plane and longitudinal section design drawings, which reads line mileage data and sets relevant drawing parameters, thereby realizing intelligent arrangement of drawing range, automatic copying and creation of drawing layout, automatic alignment of viewports, and automatic printing of drawings for engineering plane and longitudinal section design drawings, avoiding manual operation steps such as drawing auxiliary lines, measuring lengths, drawing and rotating drawing ranges in CAD model space and layout space, reducing time consumption, avoiding designers from doing a lot of repetitive labor, liberating labor productivity, and improving production efficiency.

[0082] If the existing production method is used, it takes about 10 working days to manually process the design drawings of the plane and longitudinal section of a 55-kilometer linear project. If the method and embodiment of the present invention are used, it only takes 1 working day to complete the automatic drawing, which greatly improves the production efficiency.

[0083] Example 2

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

[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 engineering plan and longitudinal section design drawings is used to automatically copy and generate drawing layouts, which include drawing viewports, drawing frames, title bars, signature bars, drawing descriptions, legends, and drawing number information. Then, the viewports are aligned according to the drawing range and the drawings are printed.

[0088] The functions and implementation methods performed by 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 contents are further detailed descriptions of the present invention in combination with specific preferred embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as falling within the protection scope 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. Run the AutoCAD secondary development program to automatically open the AutoCAD application software. The AutoCAD secondary development program refers to the AutoCAD.NET API interface file, can identify AutoCAD files including dwg, dws, dwt, and dxf formats, and read file database information; S2. Open the engineering plan and longitudinal section design scheme file and read the line mileage data. The line mileage data is directly read from the engineering plan and longitudinal section design scheme dwg, dws, dwt, dxf format files based on the AutoCAD secondary development program in step S1: S3, inputting the mileage range of the engineering plan and longitudinal section design drawings, wherein the mileage range of the drawing is expressed by selecting the starting line mileage and the end line mileage according to the line mileage data in step S2; S4. Set the drawing parameters for the engineering plan and longitudinal section design drawings; S5, calculating 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 arranging the output range of the single-page plane design drawing; 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; 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 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 .

3. The method for intelligently producing engineering plan and longitudinal section design drawings according to claim 1 is characterized in that: The step S5 specifically includes the following steps: S51, calculating the vertex coordinates of the output range of the first page of the graphic design drawing; S52, looping and calculating the vertex coordinates of the output range of the plane design drawing on the i-th page, where i is an integer greater than 1; S53. Draw the drawing range and compass of the plane design drawing one by one according to the vertex coordinates of the drawing range calculated in steps S51 and S52.

4. The method for intelligently producing engineering plan and longitudinal section design drawings according to claim 3 is characterized in that: The step S51 specifically includes the following steps: S511, according to the starting line mileage and the end line mileage of the mileage range of step S3, respectively 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 output range, 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 at a specified distance from a 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 L of the mileage range, only the first page of drawings 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 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 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 points of equal division; P′ 1Z Point P 1Q The point on the line at the specified distance L along the direction of the large mileage is obtained according to the GetPointAtDist method of AutoCAD; if P′ 1Z does not exist, that is, define P′ 1Z P Z ; 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; 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; The X-axis, Y-axis and corresponding coordinate calculations all adopt the Cartesian plane rectangular coordinate system.

5. The intelligent drawing method for engineering plan and longitudinal section design drawings according to claim 3 is characterized in that: The step S52 specifically includes the following steps: 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 and the drawing range is stopped; 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; S523, Definition P iQ The starting point of the output range of the i-th page of graphic design drawings is P (i-1)z The specified distance along the small mileage direction is the overlap length L of the output range R Points on the line; 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 points of equal division; P′ iZ Point P iQ The point on the line at the specified distance L along the direction of the large mileage is obtained according to the GetPointAtDist method of AutoCAD; if P′ iZ does not exist, that is, define P′ iZ P Z ; 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; Define the vertex of the i-th page of the graphic design drawing output range 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 drawing range of the plane design drawing on page i i And the image output range length W and image output width L described in step S4 are calculated.

6. The method for intelligently producing engineering plan and longitudinal section design drawings according to claim 3 is characterized in that: In step S53, the drawing output range is represented by a polyline enclosure, and the drawing output range of the plane design drawing of the i-th page is sequentially composed of point P i1 , P i2 、F i3 , P i4 The compass is a block reference, and the compasses need 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 output range of the single-page graphic design drawing.

7. 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, obtaining the starting point and the end point of the mileage range of the longitudinal section design drawing; S62, calculating the vertex coordinates of the drawing range of the first page of longitudinal section design drawing; S63, cyclically calculating the coordinates of the vertices of the j-th page of the longitudinal section design drawing output range, 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.

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

Citation Information

Patent Citations

  • Urban rail line plane schematic diagram mapping method and system and storage medium

    CN115186313A

  • Longitudinal section drawing method

    CN117708913A

  • Rail transit line and interval longitudinal section automatic design method and system

    CN118211353A

  • BIM (Building Information Modeling)-based dike design, calculation and plotting integrated collaborative method

    CN118313050A

  • Rail transit line interval longitudinal section diagram contact channel and pump room automatic design method

    CN118350161A