Project plane and longitudinal section design drawing proportion automatic adjustment drawing method

The AutoCAD secondary development program automatically handles the drawing proportion problem of engineering plane and longitudinal section design drawings, realizes automated joint drawing between different disciplines, solves the problem of low production efficiency caused by inconsistent drawing proportions, and significantly improves production efficiency. Charting efficiency.

CN119312430AInactive Publication Date: 2025-01-14FOSHAN RAIL TRANSIT DESIGN & RES INST CO LTD

Patent Information

Application Number
CN202411716162.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-27
Publication Date
2025-01-14
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the engineering industry, due to the inconsistent scale of the plan and longitudinal section design drawings of different professionals, designers need to make a lot of scaling, moving and modifying, which takes a long time and reduces production efficiency.

Method used

By running the AutoCAD secondary development program, the AutoCAD application software is automatically opened, the line design plan data and longitudinal section element information in the engineering plan and longitudinal section design plan files are obtained, the drawing parameters are set, and the engineering longitudinal section design plan and longitudinal section are automatically generated. Feature table and longitudinal section elevation scale, and automatically calculate and arrange the drawing range to realize automated drawing drawing.

Benefits of technology

It realizes the automated joint drawing of plane and longitudinal section design drawings between different majors, reduces manual operation steps, improves production efficiency, and shortens drawing time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119312430A_ABST
    Figure CN119312430A_ABST
Patent Text Reader

Abstract

The invention provides an engineering plane and longitudinal section design drawing proportion automatic adjustment drawing method. The method comprises the steps that an AutoCAD secondary development program is operated, and application software is opened; opening a project plane and longitudinal section design scheme file, and reading line design scheme data and longitudinal section element information; setting a drawing proportion, a drawing viewport size, a vertical section element table column and vertical section elevation scale upper and lower limits; automatically generating an engineering longitudinal section design scheme, a longitudinal section element table and a longitudinal section elevation scale; automatically calculating the drawing range of a single-page drawing; automatically arranging a drawing range of each page of drawings in a CAD model space, creating a drawing layout and aligning viewports, and completing drawing of engineering plane and longitudinal section design drawings; the problems that the number of manual operation steps is large, consumed time is long and production efficiency is low due to the fact that professional drawing proportions of existing engineering plane and longitudinal section design drawings are inconsistent are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of engineering automation design, and in particular to a method for automatically adjusting the proportions of engineering plane and longitudinal section design drawings. Background Art

[0002] At present, when designers in the engineering industry are drawing plan and longitudinal design drawings, because different professionals have different drawing contents and drawing requirements, there is a situation where the drawing scales of plan and longitudinal design drawings of different professionals in the same project are inconsistent. After the upstream professionals raise funds for the plan and longitudinal design schemes, downstream professional designers often need to scale and move the received plan and longitudinal design schemes, and modify the longitudinal elevation scale and longitudinal element table. Finally, according to the size of the drawings and the drawing scale, they calculate the drawing range size of each page of the drawings, manually arrange the viewports and draw the drawings to meet their own professional requirements for the design drawing scale. This operation has many steps and takes a long time, causing professional designers to do a lot of repetitive work, reducing production efficiency. Summary of the invention

[0003] The purpose of the present invention is to solve the problem that the existing engineering plan and longitudinal section design drawings have many manual operation steps, long time consumption and low production efficiency due to the inconsistency of professional drawing ratios. The present invention provides the following technical solutions:

[0004] A method for automatically adjusting the proportions of engineering plan and longitudinal section design drawings comprises the following steps:

[0005] S1. Run the AutoCAD secondary development program and automatically open the AutoCAD application software;

[0006] S2. Obtain the engineering plan and longitudinal section design files, and read the line design data and longitudinal section element information therein;

[0007] The line design scheme data at least includes line plane design scheme data and line longitudinal section design scheme data, and the longitudinal section element information at least includes one or more of engineering geological conditions, surrounding rock grade, construction method, and structural size;

[0008] S3, obtaining input or preset drawing parameters, wherein the drawing parameters at least include drawing scale data, drawing viewport size data, longitudinal section element table columns and longitudinal section elevation scale upper and lower limit data;

[0009] S4. Automatically generate a project longitudinal section design plan, a longitudinal section element table and a longitudinal section elevation scale according to the line design plan data and the drawing parameters;

[0010] S5, automatically calculating the single-page drawing output range data according to the drawing output ratio data and the drawing viewport size data in step S3;

[0011] S6. Automatically arrange the drawing range of each page in the CAD model space, create the drawing layout and align the viewport to complete the drawing of the engineering plan and longitudinal section design drawings.

[0012] Further preferably, in step S1, the AutoCAD secondary development program can reference the AutoCAD.NET API interface file, identify AutoCAD files including dwg, dws, dwt, and dxf formats, and read file database information.

[0013] Further preferably, in step S2:

[0014] The line plane design scheme data at least includes one or more of line mileage data, plane intersection data, and station data, which are directly read from the engineering plane design scheme dwg, dws, dwt, dxf format files; the line longitudinal section design scheme data at least includes one or more of longitudinal section slope change point data, longitudinal section slope data, and ground elevation data, which are directly read from the line longitudinal section design scheme dwg, dws, dwt, dxf format files;

[0015] The construction method at least includes shield tunneling, open excavation, elevated construction and roadbed.

[0016] Further preferably, in step S3:

[0017] The output ratio is switched by manual input and stored in double-precision data type; the output ratio data at least includes one or more of the output ratio data of the engineering plane design drawing, the horizontal output ratio data of the engineering longitudinal section design drawing and the vertical output ratio data;

[0018] The drawing viewport size data at least includes one or more of the engineering plane design drawing output viewport size data, the engineering longitudinal section design drawing output viewport size data, and the elevation scale viewport size data;

[0019] The columns of the longitudinal section element table include at least one or more columns of engineering geological overview, surrounding rock grade, construction method, structure height, line vertical curve, line design elevation, line design slope, ground elevation, line spacing, and mileage.

[0020] Further preferably, in step S4:

[0021] The engineering longitudinal section design scheme is automatically generated according to the line design scheme data, the four drawing parameters in step S3, and the horizontal drawing ratio and vertical drawing ratio of the longitudinal section design drawing; the longitudinal section elevation scale is drawn according to the drawing ratio data in step S3 and the upper and lower limit data of the longitudinal section elevation scale;

[0022] The header of the longitudinal section element table is automatically generated according to the columns of the longitudinal section element table;

[0023] The engineering geological conditions, surrounding rock grade, construction method and structure height in the longitudinal section element table are obtained from the longitudinal section element information;

[0024] The line vertical curve, line design elevation, line design slope, ground elevation, line spacing, and mileage columns in the longitudinal section element table are obtained from the line design scheme data;

[0025] The length and height of the longitudinal section element table are calculated based on the output scale data.

[0026] Further preferably, the single-page drawing output range data at least includes single-page drawing output range data of plan design drawings, single-page drawing output range data of longitudinal section design drawings and elevation scale output range data; the single-page drawing output range data is a rectangular range enclosed by polylines in the CAD model space, and the length and width are automatically calculated by the output scale data and the drawing viewport size data.

[0027] Further preferably, the aligning viewports in step S6 refers to automatically aligning the viewports in each drawing layout with the corresponding drawing output range.

[0028] The present invention also provides a system for automatically adjusting the proportion of engineering plan and longitudinal section design drawings, using any of the above-mentioned methods for automatically adjusting the proportion of engineering plan and longitudinal section design drawings, the system includes a processor, a computer storage medium and a memory;

[0029] The processor is used to run one or more program instructions to execute any of the steps in the method for automatically adjusting the proportion of engineering plan and longitudinal section design drawings of the present invention;

[0030] The computer storage medium stores a computer program, and when the computer program is executed by the processor, any of the steps in the method for automatically adjusting the proportions of engineering plan and longitudinal section design drawings of the present invention is implemented;

[0031] The memory is used to store executable program instructions of the processor.

[0032] The invention discloses a method for automatically adjusting the proportions of engineering plan and longitudinal section design drawings, which can realize the automated joint drawing of plan and longitudinal section design drawings of different proportions between different disciplines of engineering projects, thereby greatly improving production efficiency.

[0033] The present invention provides a method for automatically adjusting the proportion of engineering plane and longitudinal section design drawings. By using the AutoCAD secondary development program, the downstream professional plane and longitudinal section design drawings can read and store data based on the upstream professional plane and longitudinal section design scheme files, and then realize automatic joint mapping by setting parameters such as the drawing proportions of different professions, so as to solve the problem of inconsistent drawing proportions of different professional plane and longitudinal section design drawings. By writing the method described in the present invention as an AutoCAD secondary development program, it is avoided that engineering designers perform a large number of repetitive manual operations due to different professional drawing proportions, and the production efficiency is greatly improved. If the existing production method is adopted for a 55-kilometer linear engineering plane and longitudinal section design drawing, it takes about 5 working days to manually process the drawing. If the method and embodiment described in the present invention are adopted, it only takes 1 working day to complete the automatic drawing, and the production efficiency is greatly improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 It is a flow chart of the method of the present invention. DETAILED DESCRIPTION

[0035] 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.

[0036] The preferred embodiments of the present invention are further described in detail below with reference to the accompanying drawings.

[0037] Embodiment 1:

[0038] The present invention provides a method for automatically adjusting the proportion of engineering plan and longitudinal section design drawings. It is an automation technology applied to engineering design. It combines AutoCAD drawing tools to carry out secondary development of the program to realize the method for automatically adjusting the proportion of drawings. The specific method flow chart of the method of the present invention can be found in Figure 1 The method for automatically adjusting the proportion of engineering plan and longitudinal section design drawings of the present invention comprises the following steps:

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

[0040] S2. Obtain the engineering plan and longitudinal section design files, and read the line design data and longitudinal section element information therein;

[0041] The line design scheme data at least includes line plane design scheme data and line longitudinal section design scheme data, and the longitudinal section element information at least includes one or more of engineering geological conditions, surrounding rock grade, construction method, and structural size;

[0042] The line plane design scheme data at least includes one or more of line mileage data, plane intersection data, and station data, which are directly read from the engineering plane design scheme dwg, dws, dwt, dxf format files; the line longitudinal section design scheme data at least includes one or more of longitudinal section slope change point data, longitudinal section slope data, and ground elevation data, which are directly read from the line longitudinal section design scheme dwg, dws, dwt, dxf format files;

[0043] The construction method at least includes shield tunneling, open excavation, elevated construction and roadbed.

[0044] S3, obtaining input or preset drawing parameters, wherein the drawing parameters at least include drawing scale data, drawing viewport size data, longitudinal section element table columns and longitudinal section elevation scale upper and lower limit data; the drawing scale is switched by manual input and stored in double-precision data type; the drawing scale data at least includes one or more of engineering plane design drawing scale data, engineering longitudinal section design drawing horizontal scale data and vertical scale data;

[0045] The drawing viewport size data at least includes one or more of the engineering plane design drawing output viewport size data, the engineering longitudinal section design drawing output viewport size data, and the elevation scale viewport size data;

[0046] The columns of the longitudinal section element table include at least one or more columns of engineering geological overview, surrounding rock grade, construction method, structure height, line vertical curve, line design elevation, line design slope, ground elevation, line spacing, and mileage.

[0047] S4, automatically generating the engineering longitudinal section design scheme, longitudinal section element table and longitudinal section elevation scale according to the line design scheme data and the drawing parameters; the engineering longitudinal section design scheme is automatically generated according to the line design scheme data, the four drawing parameters in step S3 and the horizontal drawing ratio and vertical drawing ratio of the longitudinal section design drawing; the longitudinal section elevation scale is drawn according to the drawing ratio data in step S3 and the upper and lower limit data of the longitudinal section elevation scale;

[0048] The header of the longitudinal section element table is automatically generated according to the columns of the longitudinal section element table;

[0049] The engineering geological conditions, surrounding rock grade, construction method and structure height in the longitudinal section element table are obtained from the longitudinal section element information;

[0050] The line vertical curve, line design elevation, line design slope, ground elevation, line spacing, and mileage columns in the longitudinal section element table are obtained from the line design scheme data;

[0051] The length and height of the longitudinal section element table are calculated based on the output scale data.

[0052] S5, automatically calculating the single-page drawing output range data according to the drawing output ratio data and the drawing viewport size data in step S3;

[0053] S6. Automatically arrange the drawing range of each page of drawings in the CAD model space, create a drawing layout and align the viewports to complete the drawing of the engineering plan and longitudinal section design drawings. The single-page drawing drawing range data at least includes the single-page drawing drawing range data of the plane design drawing, the single-page drawing drawing range data of the longitudinal section design drawing and the elevation scale drawing range data; the single-page drawing drawing range data is a rectangular range enclosed by polylines in the CAD model space, and the length and width are automatically calculated by the drawing scale data and the drawing viewport size data. The aligning viewport in step S6 refers to automatically aligning the viewport in each drawing layout with the corresponding drawing drawing range.

[0054] The above steps can be implemented by writing an AutoCAD secondary development program, that is, in AutoCAD, various combinations of graphic elements contained in the engineering plan and longitudinal section design drawings are automatically generated according to the drawing scale, including points, polylines, and texts. The programming language includes C++ and C#. After the program is run, the above operations can be automatically completed in dwg, dws, dwt, and dxf format files.

[0055] Example 2

[0056] Embodiment 2 of the present invention proposes a method for automatically adjusting the proportion of engineering plan and longitudinal section design drawings, see Figure 1 , the method comprises the following steps:

[0057] S1. Run the AutoCAD secondary development program to automatically open the AutoCAD application software.

[0058] Specifically, 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.

[0059] S2. Open the engineering plan and longitudinal section design files, and read the line design data and longitudinal section element information.

[0060] Specifically, the line design scheme data includes line plane design scheme data and line longitudinal section design scheme data.

[0061] Specifically, the line plane design data includes line mileage data, plane intersection data, and station data, which are directly read from the engineering plane design dwg, dws, dwt, and dxf format files. The line longitudinal section design data includes longitudinal section slope change point data, longitudinal section slope data, and ground elevation data, which are directly read from the line longitudinal section design dwg, dws, dwt, and dxf format files.

[0062] Specifically, the longitudinal section element information includes engineering geological conditions, surrounding rock grade, construction method, and structural size. The construction method includes shield, open cut, elevated, and roadbed.

[0063] S3. Set the drawing scale, drawing viewport size, longitudinal section element table columns and the upper and lower limits of the longitudinal section elevation scale.

[0064] Specifically, the output ratio and drawing parameters are flexibly switched through manual input and stored in double-precision data type.

[0065] Specifically, the drawing ratio includes the drawing ratio of the engineering plan design drawing, the horizontal drawing ratio of the engineering longitudinal section design drawing, and the vertical drawing ratio.

[0066] Specifically, the drawing viewports include an engineering plane design drawing output viewport, an engineering longitudinal section design drawing output viewport, and an elevation scale viewport.

[0067] Specifically, the columns of the longitudinal section element table include engineering geological overview, surrounding rock grade, construction method, structure height, line vertical curve, design elevation, design slope, ground elevation, line spacing, and mileage columns.

[0068] S4. According to the design scheme data described in step S2 and the drawing parameters described in step S3, the engineering longitudinal section design scheme, longitudinal section element table and longitudinal section elevation scale are automatically generated.

[0069] Specifically, the engineering longitudinal section design scheme is automatically generated according to the line design scheme data in step S2, the structural dimensions in step S3, and the horizontal and vertical drawing ratios of the longitudinal section design drawings.

[0070] Specifically, the header of the longitudinal section element table is automatically generated according to the longitudinal section element table column set in step S3. The engineering geological overview, surrounding rock grade, construction method, and structural size content in the longitudinal section element table are obtained from the longitudinal section element information in step S2. The line vertical curve, line design elevation, line design slope, ground elevation, line spacing, and mileage content in the longitudinal section element table are obtained from the line design scheme data in step S2. The length and height of the longitudinal section element table are calculated according to the output ratio described in step S3.

[0071] Specifically, the longitudinal section elevation scale is drawn according to the drawing ratio and the upper and lower limits of the longitudinal section elevation scale in step S3.

[0072] S5. Automatically calculate the size of the output range of the single-page drawing according to the output ratio and the drawing viewport size described in step S3.

[0073] Specifically, the single-page drawing output range includes the single-page drawing output range of the plane design drawing, the single-page drawing output range of the longitudinal section design drawing and the elevation scale output range.

[0074] Specifically, the output range of the single-page drawing is a rectangular range enclosed by polylines in the CAD model space, and the length and width are automatically calculated by the output ratio and the drawing viewport size described in step S3.

[0075] S6. Automatically arrange the drawing range of each page in the CAD model space, create the drawing layout and align the viewport to complete the drawing of the engineering plan and longitudinal section design drawings.

[0076] Example 3

[0077] This embodiment provides a system for automatically adjusting the proportion of engineering plan and longitudinal section design drawings, applying any of the above-mentioned methods for automatically adjusting the proportion of engineering plan and longitudinal section design drawings, the system comprising a processor, a computer storage medium and a memory;

[0078] The processor is used to run one or more program instructions to execute any of the steps in the method for automatically adjusting the proportion of engineering plan and longitudinal section design drawings of the present invention;

[0079] The computer storage medium stores a computer program, and when the computer program is executed by the processor, any of the steps in the method for automatically adjusting the proportion of engineering plan and longitudinal section design drawings of the present invention is implemented;

[0080] The memory is used to store executable program instructions of the processor.

[0081] 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 scope of protection of the present invention.

Claims

1. A method for automatically adjusting the proportion of engineering plan and longitudinal section design drawings, characterized in that: The steps include: S1. Run the AutoCAD secondary development program and automatically open the AutoCAD application software; S2. Obtain the engineering plan and longitudinal section design files, and read the line design data and longitudinal section element information therein; The line design scheme data at least includes line plane design scheme data and line longitudinal section design scheme data, and the longitudinal section element information at least includes one or more of engineering geological conditions, surrounding rock grade, construction method, and structural size; S3, obtaining input or preset drawing parameters, wherein the drawing parameters at least include drawing scale data, drawing viewport size data, longitudinal section element table columns and longitudinal section elevation scale upper and lower limit data; S4. Automatically generate a project longitudinal section design plan, a longitudinal section element table and a longitudinal section elevation scale according to the line design plan data and the drawing parameters; S5, automatically calculating the single-page drawing output range data according to the drawing output ratio data and the drawing viewport size data in step S3; S6. Automatically arrange the drawing range of each page in the CAD model space, create the drawing layout and align the viewport to complete the drawing of the engineering plan and longitudinal section design drawings.

2. The method for automatically adjusting the proportion of engineering plan and longitudinal section design drawings according to claim 1 is characterized in that: In step S1, the AutoCAD secondary development program can reference the AutoCAD.NET API interface file, identify AutoCAD files including dwg, dws, dwt, and dxf formats, and read file database information.

3. The method for automatically adjusting the proportion of engineering plan and longitudinal section design drawings according to claim 1 is characterized in that: In step S2: The line plane design scheme data at least includes one or more of line mileage data, plane intersection data, and station data, which are directly read from the engineering plane design scheme dwg, dws, dwt, dxf format files; the line longitudinal section design scheme data at least includes one or more of longitudinal section slope change point data, longitudinal section slope data, and ground elevation data, which are directly read from the line longitudinal section design scheme dwg, dws, dwt, dxf format files; The construction method at least includes shield tunneling, open excavation, elevated construction and roadbed.

4. The method for automatically adjusting the proportion of engineering plan and longitudinal section design drawings according to claim 3 is characterized in that: In step S3: The output ratio is switched by manual input and stored in double-precision data type; the output ratio data includes at least one or more of the output ratio data of the engineering plane design drawing, the horizontal output ratio data of the engineering longitudinal section design drawing and the vertical output ratio data; The drawing viewport size data at least includes one or more of the engineering plane design drawing output viewport size data, the engineering longitudinal section design drawing output viewport size data, and the elevation scale viewport size data; The columns of the longitudinal section element table include at least one or more columns of engineering geological overview, surrounding rock grade, construction method, structure height, line vertical curve, line design elevation, line design slope, ground elevation, line spacing, and mileage.

5. The method for automatically adjusting the proportion of engineering plan and longitudinal section design drawings according to claim 4 is characterized in that: In step S4: The engineering longitudinal section design scheme is automatically generated according to the line design scheme data, the four drawing parameters in step S3, and the horizontal drawing ratio and vertical drawing ratio of the longitudinal section design drawing; the longitudinal section elevation scale is drawn according to the drawing ratio data in step S3 and the upper and lower limit data of the longitudinal section elevation scale; The header of the longitudinal section element table is automatically generated according to the columns of the longitudinal section element table; The engineering geological conditions, surrounding rock grade, construction method and structure height in the longitudinal section element table are obtained from the longitudinal section element information; The line vertical curve, line design elevation, line design slope, ground elevation, line spacing, and mileage columns in the longitudinal section element table are obtained from the line design scheme data; The length and height of the longitudinal section element table are calculated based on the output scale data.

6. The method for automatically adjusting the proportion of engineering plan and longitudinal section design drawings according to claim 1 is characterized in that: The single-page drawing output range data at least includes single-page drawing output range data of plan design drawings, single-page drawing output range data of longitudinal section design drawings and elevation scale output range data; the single-page drawing output range data is a rectangular range enclosed by polylines in the CAD model space, and the length and width are automatically calculated by the output ratio data and the drawing viewport size data.

7. The method for automatically adjusting the proportion of engineering plan and longitudinal section design drawings according to claim 1 is characterized in that: The aligning of viewports in step S6 refers to automatically aligning the viewport in each drawing layout with the corresponding drawing output range.

8. A system for automatically adjusting the proportion of engineering plan and longitudinal section design drawings, using a method for automatically adjusting the proportion of engineering plan and longitudinal section design drawings as claimed in any one of claims 1 to 6, characterized in that: The system includes a processor, a computer storage medium, and a memory; The processor is used to run one or more program instructions to execute any of the steps in the method for automatically adjusting the proportion of engineering plan and longitudinal section design drawings of the present invention; The computer storage medium stores a computer program, and when the computer program is executed by the processor, any of the steps in the method for automatically adjusting the proportions of engineering plan and longitudinal section design drawings of the present invention is implemented; The memory is used to store executable program instructions of the processor.

Citation Information

Patent Citations

  • Automatic mapping method for vertical section design of railway tunnel

    CN106777699A

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

    CN118211353A

  • Linear engineering rapid plotting method and system

    CN118965514A

Cited By

  • Rail transit shield tunnel end reinforcement design method, system, equipment and medium

    CN120509077A