Rail transit line and interval plane control point intelligent labeling method and system

By developing an intelligent annotation system in the rail transit industry, and using the AutoCAD secondary development program to automatically complete the annotation of line and interval plane control points, the problem of inefficient marking in the existing technology has been solved and a significant improvement in production efficiency has been achieved.

CN119598574AActive Publication Date: 2025-03-11FOSHAN RAIL TRANSIT DESIGN & RES INST CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

When marking line and interval plane control points in the rail transit industry, a large number of designers need to manually operate in the CAD model space, resulting in long time and low production efficiency.

Method used

Develop an intelligent annotation method and system for the control points of rail transit lines and interval planes. Using AutoCAD secondary development program, the labeling process of interval plane control points is automatically completed, including obtaining design data, calculating plane distances, drawing labels and creating leads.

Benefits of technology

The marking efficiency of rail transit lines and interval plane control points has been greatly improved, and manual operation time has been reduced. The marking work of the entire subway line has been shortened from the original 2 working days to 1 hour.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119598574A_ABST
    Figure CN119598574A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of CAD labeling, and discloses a rail transit line and interval plane control point intelligent labeling method and system, and the method comprises the steps: opening AutoCAD software according to a system instruction, and reading line and interval plane design file data; acquiring plane control point information of a to-be-marked interval and storing contour vertex coordinates of the to-be-marked interval; calculating the number of intersection points of the outer contour of the rail transit line and the control point contour, and judging whether plane conflicts exist; calculating a line mileage range according to the vertex coordinates; calculating the minimum plane distance between the control point and the outer contour of the line and drawing a distance mark; and taking vertex coordinates of the two control points to create marking lead marking information, and outputting a final marking file. The system solves the problems that line and interval plane control point marking in the rail transit industry needs to be completed manually, consumed time is long, and efficiency is low, intelligent marking is achieved, and production efficiency is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of CAD annotation, and in particular to a method and system for intelligent annotation of plane control points of rail transit lines and sections. Background Art

[0002] At present, when rail transit industry designers are marking the plane control points of lines and sections, they need to manually identify the plane relative position relationship between the interval plane control points and the interval in the AutoCAD line and section plane design plan file, manually measure and determine the minimum plane distance between the interval plane control points and the interval, and finally draw the distance markings between the interval plane control points and the interval plane, the name plane markings of the interval plane control points one by one, and manually adjust the formats of various AutoCAD graphics elements to meet the rail transit line and section professional engineering design drawing standards.

[0003] The existing rail transit industry line and section plane control point marking method includes a large number of manual operations such as drawing auxiliary lines, selecting objects, measuring lengths, editing texts, and adjusting styles. Designers need to complete these operations manually in the CAD model space, which is time-consuming and has low production efficiency. Summary of the invention

[0004] In view of the above problems, the present invention proposes a method and system for intelligent marking of plane control points of rail transit lines and sections, so as to solve the problem that a large number of designers need to manually complete the marking of plane control points of rail transit lines and sections in the CAD model space, which is time-consuming and has low production efficiency. To achieve the above purpose, the present invention provides a method for intelligent marking of plane control points of rail transit lines and sections, including:

[0005] S1: Obtaining a system instruction to run the AutoCAD secondary development program, and opening the AutoCAD application software according to the system instruction;

[0006] S2: Open the line and section plane design file in the AutoCAD application software and read the line and section plane design data;

[0007] S3: Read the contour of the interval plane control points in the line and interval plane design data, obtain the information of the interval plane control points to be marked, and store the contour vertex coordinates of the interval plane control points one by one;

[0008] S4: Read the outer contour of the rail transit line in the line and section plane design data, calculate the number of intersections between the outer contour of the rail transit line and the contour of the section plane control point, and determine whether there is a plane conflict between the section plane control point and the rail transit line according to the number of intersections. If there is no conflict, continue to execute; if there is a conflict, skip S6;

[0009] S5: Calculate the line mileage range corresponding to the interval plane control point according to the contour vertex coordinates of the interval plane control point;

[0010] S6: Calculate the minimum plane distance between the interval plane control point and the outer contour of the rail transit line according to the contour vertex coordinates of the interval plane control point, and the machine draws the distance mark between the interval plane control point and the outer contour of the rail transit line;

[0011] S7: Take the vertex coordinates of the two interval plane control points, create a labeling leader on the perpendicular bisector of the straight line connecting the two interval plane control points, label the interval plane control point information, and output the final labeling file of the rail transit line and the interval plane control points.

[0012] Preferably, step S2 further comprises: reading and storing the line and section plane design data is performed by the AutoCAD secondary development program when opening the file, and the line and section plane design file at least includes: line plane design scheme, section plane control point outline and rail transit line outer outline;

[0013] The route plane design plan shall at least include: route mileage data and route plane intersection data;

[0014] The contours of the section plane control points and the outer contours of the rail transit line are both in the form of polylines.

[0015] Preferably, step S3 further includes:

[0016] The interval plane control point information includes at least: the name of the interval plane control point, the base bottom elevation of the interval plane control point and the text description of the interval plane control point.

[0017] Preferably, step S4 specifically includes:

[0018] S4.1: The outer contour of the rail transit line includes at least the outer contour of the right rail transit line and the outer contour of the left rail transit line. The polylines defining the outer contour of the right rail transit line are PL1 and PL2, and the polylines defining the outer contour of the left rail transit line are PL3 and PL4;

[0019] S4.2: Calculate the number of intersections between the contour of the interval plane control point and the polylines PL1, PL2, PL3, and PL4 respectively by using the IntersectWith method of AutoCAD;

[0020] S4.3: If the number of intersections between the outline of the section plane control point and the polylines PL1 and PL2 is 0, it is determined that the section plane control point does not conflict with the right rail transit line.

[0021] If the number of intersections between the outline of the interval plane control point and the polylines PL1 and PL2 is not 0, it is judged that the interval plane control point conflicts with the right rail transit line.

[0022] If the number of intersections between the plane control point contour of the interval and the polylines PL3 and PL4 is 0, it is determined that the plane control point of the interval does not conflict with the left rail transit line.

[0023] If the number of intersections between the outline of the section plane control point and the polylines PL3 and PL4 is not 0, it is determined that the section plane control point conflicts with the left rail transit line;

[0024] S4.4: When the section plane control point and the right-line rail transit line, and the section plane control point and the left-line rail transit line both meet the non-conflict conditions, it is determined that there is no plane conflict between the section plane control point and the rail transit line.

[0025] Preferably, step S5 specifically includes:

[0026] S5.1: Route mileage includes right-line mileage and left-line mileage. The right-line mileage is defined as the mileage set {L Y}, the left line mileage storage is defined as the mileage set {L Z}; The line mileage corresponding to the contour vertex of the section plane control point is the line mileage from the contour vertex of the section plane control point to the vertical point of the center line of the rail transit line, which is obtained from the line and section plane design data;

[0027] S5.2: The route mileage range includes: the right route mileage range and the left route mileage range. The right route mileage range corresponding to the section plane control point is the mileage set {L Y}, the range of the minimum mileage to the maximum mileage, the mileage range of the left line corresponding to the interval plane control point is the mileage set {L Z}The range from the minimum mileage to the maximum mileage.

[0028] Preferably, step S6 specifically includes:

[0029] S6.1: The GetClosestPointTo method of AutoCAD is used to loop and calculate the minimum plane distance between the contour vertex of a single interval plane control point and the polyline of the outer contour of a single rail transit line;

[0030] S6.2: Get the minimum of the two minimum plane distances and the plane distance Dis min1 、Plane distance Dis min2 , and store the corresponding distance endpoints;

[0031] Plane distance Dis min1 The contour vertex P corresponding to the interval plane control pointmin1 and point P′ on the outer contour of the rail transit line min1 , plane distance Dis min2 The contour vertex P corresponding to the interval plane control point min2 and point P′ on the outer contour of the rail transit line min2 ;

[0032] S6.3: Insert the distance mark between the plane control point of the interval and the outer contour of the rail transit line. The distance mark is two aligned marks, one with point P min1 , P′ min1 and P min2 , P′ min2 As a base point for marking;

[0033] S6.4: Set the annotation style of the alignment annotation, including color, font, and arrow attributes.

[0034] Preferably, step S7 further includes:

[0035] S7.1: Create the name of the dimension leader and the interval plane control point. The starting point of the polyline of the dimension leader is the midpoint of the two interval plane control points.

[0036] The name of the interval plane control point is a single-line text, the text content is the name of the interval plane control point in the interval plane control point information, and the text direction is parallel to the line direction within the line mileage range corresponding to the interval plane control point;

[0037] S7.2: Set the annotation style of the annotation leader and the name of the interval plane control point, including color, line width, and font attributes.

[0038] An intelligent marking system for plane control points of rail transit lines and sections, comprising:

[0039] A file reading module, the file reading module is used to obtain the system instructions for running the AutoCAD secondary development program, and to open the AutoCAD application software according to the system instructions; it is also used to open the line and section plane design file in the AutoCAD application software, and read the line and section plane design data; it is also used to read the contour of the section plane control point in the line and section plane design data, obtain the information of the section plane control point to be marked, and store the contour vertex coordinates of the section plane control point one by one;

[0040] The control point measurement module is used to read the outer contour of the rail transit line in the line and interval plane design data, calculate the number of intersections between the outer contour of the rail transit line and the contour of the interval plane control point, and judge whether there is a plane conflict between the interval plane control point and the rail transit line according to the number of intersections. If there is no conflict, continue to execute, if there is a conflict, skip S6; it is also used to calculate the line mileage range corresponding to the interval plane control point according to the contour vertex coordinates of the interval plane control point; it is also used to calculate the minimum plane distance between the interval plane control point and the outer contour of the rail transit line according to the contour vertex coordinates of the interval plane control point, and the machine draws the distance mark between the interval plane control point and the outer contour of the rail transit line;

[0041] The annotation creation module is used to obtain the vertex coordinates of two interval plane control points, create an annotation leader on the perpendicular bisector of the straight line connecting the two interval plane control points, annotate the interval plane control point information, and output the final annotation file of the rail transit line and the interval plane control points.

[0042] A computer-readable storage medium stores a computer program, and a method for intelligently marking plane control points of rail transit lines and sections is implemented when the computer program is executed by a processor.

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

[0044] The present invention can realize the intelligent marking of rail transit line and section plane control points, greatly improve production efficiency, use AutoCAD secondary development program, digitally store and read rail transit section plane control point information, and link with line plane design plan data to realize automatic verification of the relationship between line and section plane control points and section plane, and intelligent marking design, greatly improve production efficiency.

[0045] By writing the method of the present invention into an AutoCAD secondary development program, a large amount of repetitive work in the existing rail transit line and section plane control point marking method is converted from manual to computer automatic completion, greatly improving production efficiency. If the existing production method is used, the section plane control point marking work of the 32 section plane design drawings of a subway line will take about 2 working days by manual operation. If the method and embodiment of the present invention are used, it only takes 1 hour to complete the automatic drawing, and the production efficiency is greatly improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 The figure is a flow chart of a method according to an embodiment of the present invention.

[0047] Figure 2 Schematic diagram of the method principle of an embodiment of the present invention.

[0048] Figure 3 This is a diagram of the marking effect of an embodiment of the present invention.

[0049] Figure 4 This is a labeling system according to an embodiment of the present invention. DETAILED DESCRIPTION

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

[0051] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the drawings, which are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", and "set" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be directly connected, or indirectly connected through an intermediate medium, or it can be the internal connection of two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances. The following is an explanation of an embodiment of the present invention based on the overall structure of the present invention.

[0052] See also Figure 1-Figure 3 The present invention provides a technical solution: a method for intelligently marking plane control points of rail transit lines and sections, comprising:

[0053] S1: Obtain system instructions for running the AutoCAD secondary development program, and open the AutoCAD application software according to the system instructions.

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

[0055] S2: Open the line and section plane design file in the AutoCAD application software and read the line and section plane design data.

[0056] Specifically, the reading and storage of the line and section plane design data are executed through the AutoCAD secondary development program when the file is opened.

[0057] Specifically, the line and section plan design files are AutoCAD files in dwg, dws, dwt, and dxf formats.

[0058] Specifically, the line plane design plan includes: line mileage data and line plane intersection data.

[0059] Specifically, the outline of the section plane control points and the outer outline of the rail transit line are in the form of polylines.

[0060] S3: Read the contour of the interval plane control points in the line and interval plane design data, obtain the information of the interval plane control points to be marked, and store the contour vertex coordinates of the interval plane control points one by one.

[0061] Specifically, the interval plane control point information includes: the name of the interval plane control point, the basic bottom elevation of the interval plane control point, and a text description of the basic situation of the interval plane control point.

[0062] S4: Read the outer contour of the rail transit line in the line and section plane design data, calculate the number of intersections between the outer contour of the rail transit line and the contour of the section plane control point, and determine whether there is a plane conflict between the section plane control point and the rail transit line based on the number of intersections. If there is no conflict, continue to execute; if there is a conflict, skip S6.

[0063] The specific steps are as follows:

[0064] S4.1: A polyline defining the outer contour of the rail transit line.

[0065] Specifically, the outer contour of the rail transit line includes the outer contour of the right rail transit line and the outer contour of the left rail transit line, and the polyline of the outer contour of the right rail transit line is defined as PL1 and PL2. The polyline of the outer contour of the left rail transit line is defined as PL3 and PL4.

[0066] S4.2: Calculate the intersection points of the contour of the interval plane control points and the polylines PL1, PL2, PL3, and PL4.

[0067] Specifically, the intersection calculation can directly calculate the number of intersections between the polyline of the outline of the interval plane control points and the polyline of the outer outline of the rail transit line through the IntersectWith method of AutoCAD.

[0068] S4.3: Determine whether there is a plane conflict between the interval plane control point and the interval.

[0069] Specifically, when the number of intersection points between the interval plane control point contour and the polylines PL1 and PL2 in step S4.2 is 0, it is judged that the interval plane control point does not conflict with the right-line rail transit line; when the number of intersection points between the interval plane control point contour and the polylines PL1 and PL2 in step S4.2 is not 0, it is judged that the interval plane control point conflicts with the right-line rail transit line.

[0070] Specifically, when the number of intersections between the interval plane control point contour and the polylines PL3 and PL4 in step S4.2 is 0, it is judged that the interval plane control point does not conflict with the left-line rail transit line; when the number of intersections between the interval plane control point contour and the polylines PL3 and PL4 in step S4.2 is not 0, it is judged that the interval plane control point conflicts with the left-line rail transit line.

[0071] S4.4: When the section plane control point and the right-line rail transit line, and the section plane control point and the left-line rail transit line both meet the non-conflict conditions, it is determined that there is no plane conflict between the section plane control point and the rail transit line.

[0072] Specifically, when the judgment result of step S4 is that the section plane control point conflicts with the rail transit line, step S6 of this method is skipped.

[0073] S5: Calculate the line mileage range corresponding to the interval plane control point according to the contour vertex coordinates of the interval plane control point.

[0074] Furthermore, the specific steps of step S5 are as follows:

[0075] S5.1: Calculate and store the route mileage corresponding to the contour vertices of the interval plane control points in step S3 one by one.

[0076] Specifically, the route mileage includes: right route mileage and left route mileage, wherein the right route mileage corresponding to the contour vertex of the interval plane control point is stored as a mileage set {L Y}, the left line mileage corresponding to the contour vertex of the interval plane control point is stored as the mileage set {L Z}.

[0077] Specifically, the line mileage corresponding to the contour vertex of the interval plane control point is the line mileage from the contour vertex of the interval plane control point to the vertical point of the center line of the rail transit line, which is obtained by querying the line and interval plane design data in step S2.

[0078] S5.2: Obtain and store the line mileage range corresponding to the interval plane control point.

[0079] Specifically, the line mileage range includes: the right line mileage range and the left line mileage range. The right line mileage range corresponding to the interval plane control point is the mileage set {L Y}, the range of the minimum mileage to the maximum mileage, the mileage range of the left line corresponding to the interval plane control point is the mileage set {L Z}The range from the minimum mileage to the maximum mileage.

[0080] S6: According to the contour vertex coordinates of the interval plane control point, the minimum plane distance between the interval plane control point and the outer contour of the rail transit line is calculated, and the machine draws the distance mark between the interval plane control point and the outer contour of the rail transit line; see Figure 2 .

[0081] Furthermore, the specific steps of step S6 are as follows:

[0082] S6.1: Calculate the minimum plane distances between the contour vertices of the plane control points of the interval in step S3 and the polylines PL1, PL2, PL3, and PL4 one by one.

[0083] Specifically, the minimum plane distance between the contour vertex of a single interval plane control point and the polyline entity of the outer contour of a single rail transit line can be directly calculated through the GetClosestPointTo method of AutoCAD, and the computer loop calculation can implement the operation of step S6.1.

[0084] S6.2: Obtain the minimum of the two minimum plane distances in step S6.1 as the plane distance Dis min1 、Plane distance Dis min2 , and store the corresponding distance endpoints.

[0085] Specifically, the plane distance Dis min1 The contour vertex P corresponding to the interval plane control point min1 and point P′ on the outer contour of the rail transit line min1 .

[0086] Specifically, the plane distance Dis min2 The contour vertex P corresponding to the interval plane control point min2 and point P′ on the outer contour of the rail transit line min2 .

[0087] S6.3: Insert distance markings between the section plane control points and the outer contour of the rail transit line.

[0088] Specifically, the distance annotation of the interval plane is two aligned annotations, one at point P and the other at point C. min1 , P′ min1 and P min2 , P′ min2As the base point for annotation.

[0089] S6.4: Set the annotation style of the alignment annotation, including color, font, and arrow attributes, to comply with the drawing standards for professional engineering design drawings of rail transit lines and sections.

[0090] S7: Take the vertex coordinates of the two interval plane control points, create a labeling leader on the perpendicular bisector of the straight line connecting the two interval plane control points, label the interval plane control point information, and output the final labeling file of the rail transit line and the interval plane control points.

[0091] Furthermore, the specific steps of step S8 are as follows:

[0092] S7.1: Create dimension leaders and names of interval plane control points.

[0093] Specifically, the annotation leader is a polyline, and the starting point of the polyline is the midpoint of the two interval plane control points, which is calculated according to the contour vertex coordinates of the interval plane control points in step S3.

[0094] Specifically, the name of the interval plane control point is a single line of text, the text content is the name of the interval plane control point in the interval plane control point information of step S3, and the text direction is parallel to the line direction within the mileage range of the interval plane control point corresponding to step S5.

[0095] S7.2: Set the annotation style of the annotation leader and control point names, including color, line width, and font attributes, to comply with the drawing standards for professional engineering design drawings of rail transit lines and sections.

[0096] The present invention can realize the intelligent marking of rail transit line and section plane control points, greatly improve production efficiency, use AutoCAD secondary development program, digitally store and read rail transit section plane control point information, and link with line plane design plan data to realize automatic verification of the relationship between line and section plane control points and section plane, and intelligent marking design, greatly improve production efficiency.

[0097] By writing the method of the present invention into an AutoCAD secondary development program, a large amount of repetitive work in the existing rail transit line and section plane control point marking method is converted from manual to computer automatic completion, greatly improving production efficiency. If the existing production method is used, the section plane control point marking work of the 32 section plane design drawings of a subway line will take about 2 working days by manual operation. If the method and embodiment of the present invention are used, it only takes 1 hour to complete the automatic drawing, and the production efficiency is greatly improved.

[0098] When the above method and steps are implemented, they can be realized by writing an AutoCAD secondary development program, that is, automatically designing and generating various graphic element combinations of the interval master plan in AutoCAD, including polylines and single-line text. And the graphic element format can be automatically adjusted through preset parameters to meet the drawing standards of rail transit lines and interval professional engineering design. The programming languages ​​include C++ and C#. After the program is run, the above operations can be automatically completed in dwg, dws, dwt, and dxf format files.

[0099] Embodiment 2: This embodiment discloses a marking device, including:

[0100] at least one processor; and a memory in communication with the at least one processor; wherein,

[0101] The memory stores instructions executable by at least one processor, the instructions being executed by at least one processor to enable the at least one processor to:

[0102] S1: Obtaining a system instruction to run the AutoCAD secondary development program, and opening the AutoCAD application software according to the system instruction;

[0103] S2: Open the line and section plane design file in the AutoCAD application software and read the line and section plane design data;

[0104] S3: Read the contour of the interval plane control points in the line and interval plane design data, obtain the information of the interval plane control points to be marked, and store the contour vertex coordinates of the interval plane control points one by one;

[0105] S4: Read the outer contour of the rail transit line in the line and section plane design data, calculate the number of intersections between the outer contour of the rail transit line and the contour of the section plane control point, and determine whether there is a plane conflict between the section plane control point and the rail transit line according to the number of intersections. If there is no conflict, continue to execute; if there is a conflict, skip S6;

[0106] S5: Calculate the line mileage range corresponding to the interval plane control point according to the contour vertex coordinates of the interval plane control point;

[0107] S6: Calculate the minimum plane distance between the interval plane control point and the outer contour of the rail transit line according to the contour vertex coordinates of the interval plane control point, and the machine draws the distance mark between the interval plane control point and the outer contour of the rail transit line;

[0108] S7: Take the vertex coordinates of the two interval plane control points, create a labeling leader on the perpendicular bisector of the straight line connecting the two interval plane control points, label the interval plane control point information, and output the final labeling file of the rail transit line and the interval plane control points.

[0109] Embodiment 3: This embodiment discloses a rail transit line and section plane control point intelligent marking system, see Figure 4 As shown, including:

[0110] A file reading module, the file reading module is used to obtain the system instructions for running the AutoCAD secondary development program, and to open the AutoCAD application software according to the system instructions; it is also used to open the line and section plane design file in the AutoCAD application software, and read the line and section plane design data; it is also used to read the contour of the section plane control point in the line and section plane design data, obtain the information of the section plane control point to be marked, and store the contour vertex coordinates of the section plane control point one by one;

[0111] The control point measurement module is used to read the outer contour of the rail transit line in the line and interval plane design data, calculate the number of intersections between the outer contour of the rail transit line and the contour of the interval plane control point, and judge whether there is a plane conflict between the interval plane control point and the rail transit line according to the number of intersections. If there is no conflict, continue to execute, if there is a conflict, skip S6; it is also used to calculate the line mileage range corresponding to the interval plane control point according to the contour vertex coordinates of the interval plane control point; it is also used to calculate the minimum plane distance between the interval plane control point and the outer contour of the rail transit line according to the contour vertex coordinates of the interval plane control point, and the machine draws the distance mark between the interval plane control point and the outer contour of the rail transit line;

[0112] The annotation creation module is used to obtain the vertex coordinates of two interval plane control points, create an annotation leader on the perpendicular bisector of the straight line connecting the two interval plane control points, annotate the interval plane control point information, and output the final annotation file of the rail transit line and the interval plane control points.

[0113] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the above-mentioned method for intelligently marking plane control points of rail transit lines and sections.

[0114] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned embodiments can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above-mentioned method embodiment; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk, etc. Various media that can store program codes.

[0115] For those skilled in the art, various other corresponding changes and deformations can be made according to the technical solutions and concepts described above, and all of these changes and deformations should fall within the protection scope of the claims of the present invention.

Claims

1. A method for intelligently marking plane control points of rail transit lines and sections, characterized in that: include: S1: Obtaining a system instruction for running the AutoCAD secondary development program, and opening the AutoCAD application software according to the system instruction; S2: Open the line and section plane design file in the AutoCAD application software and read the line and section plane design data; S3: reading the contour of the interval plane control points in the line and interval plane design data, obtaining the information of the interval plane control points to be marked, and storing the contour vertex coordinates of the interval plane control points one by one; S4: Read the outer contour of the rail transit line in the line and section plane design data, calculate the number of intersections between the outer contour of the rail transit line and the contour of the section plane control point, and determine whether there is a plane conflict between the section plane control point and the rail transit line according to the number of intersections. If there is no conflict, continue to execute; if there is a conflict, skip S6; S5: Calculating the route mileage range corresponding to the interval plane control point according to the contour vertex coordinates of the interval plane control point; S6: Calculate the minimum plane distance between the interval plane control point and the outer contour of the rail transit line according to the contour vertex coordinates of the interval plane control point, and machine draw the distance mark between the interval plane control point and the outer contour of the rail transit line; S7: Take the vertex coordinates of the two interval plane control points, create a marking leader on the perpendicular bisector of the straight line connecting the two interval plane control points, mark the interval plane control point information, and output the final marking file of the rail transit line and the interval plane control points.

2. The method for intelligent marking of rail transit lines and section plane control points according to claim 1 is characterized in that: Step S2 also includes: reading and storing the line and section plane design data through the AutoCAD secondary development program when opening the file, and the line and section plane design file at least includes: line plane design plan, section plane control point outline and rail transit line outer outline; The line plane design scheme at least includes: the line mileage data and line plane intersection data; The outline of the section plane control points and the outer outline of the rail transit line are both in the form of polylines.

3. The method for intelligent marking of plane control points of rail transit lines and sections according to claim 1 is characterized in that: Step S3 also includes: The interval plane control point information at least includes: the name of the interval plane control point, the base bottom elevation of the interval plane control point and the text description of the interval plane control point.

4. The method for intelligent marking of plane control points of rail transit lines and sections according to claim 3 is characterized in that: Step S4 specifically includes: S4.1: The outer contour of the rail transit line includes at least the outer contour of the right rail transit line and the outer contour of the left rail transit line. The polylines defining the outer contour of the right rail transit line are PL1 and PL2, and the polylines defining the outer contour of the left rail transit line are PL3 and PL4; S4.2: Calculate the number of intersections between the contour of the interval plane control point and the polylines PL1, PL2, PL3, and PL4 respectively by using the IntersectWith method of AutoCAD; S4.3: If the number of intersections between the outline of the section plane control point and the polylines PL1 and PL2 is 0, it is determined that the section plane control point does not conflict with the right rail transit line. If the number of intersections between the outline of the interval plane control point and the polylines PL1 and PL2 is not 0, it is determined that the interval plane control point conflicts with the right rail transit line. If the number of intersections between the outline of the interval plane control point and the polylines PL3 and PL4 is 0, it is determined that the interval plane control point does not conflict with the left rail transit line. If the number of intersections between the outline of the interval plane control point and the polylines PL3 and PL4 is not 0, it is determined that the interval plane control point conflicts with the left rail transit line; S4.4: When the interval plane control point and the right-line rail transit line, and the interval plane control point and the left-line rail transit line both meet the non-conflict conditions, it is determined that the interval plane control point has no plane conflict with the rail transit line.

5. The method for intelligent marking of plane control points of rail transit lines and sections according to claim 1 is characterized in that: Step S5 specifically includes: S5.1: The line mileage includes: right line mileage and left line mileage, and the right line mileage is defined as the mileage set {L Y }, the left line mileage storage is defined as the mileage set {L Z }; The line mileage corresponding to the contour vertex of the interval plane control point is the line mileage from the contour vertex of the interval plane control point to the vertical point of the center line of the rail transit line, which is obtained by querying the line and interval plane design data; S5.2: The line mileage range includes: a right line mileage range and a left line mileage range. The right line mileage range corresponding to the section plane control point is the mileage set {L Y }, the range of the minimum mileage to the maximum mileage, the mileage range of the left line corresponding to the interval plane control point is the mileage set {L Z }The range from the minimum mileage to the maximum mileage.

6. The method for intelligent marking of plane control points of rail transit lines and sections according to claim 1 is characterized in that: Step S6 specifically includes: S6.1: looping through the GetClosestPointTo method of AutoCAD to calculate the minimum plane distance between the contour vertex of a single plane control point of the interval and the polyline of the outer contour of a single rail transit line; S6.2: Obtain the two minimum values ​​of the minimum plane distance as the plane distance Dis min1 、Plane distance Dis min2 , and store the corresponding distance endpoints; The plane distance Dis min1 The contour vertex P corresponding to the plane control point of the interval min1 and point P′ on the outer contour of the rail transit line min1 , the plane distance Dis min2 The contour vertex P corresponding to the plane control point of the interval min2 and point P′ on the outer contour of the rail transit line min2 ; S6.3: Insert the distance mark between the plane control point of the interval and the outer contour of the rail transit line. The distance mark is two aligned marks, one at point P min1 , P′ min1 and P min2 , P′ min2 As a base point for marking; S6.4: Set the annotation style of the alignment annotation, including color, font, and arrow attributes.

7. The method for intelligently marking plane control points of rail transit lines and sections according to claim 1 is characterized in that: Step S7 also includes: S7.1: Create a dimension leader and the names of the interval plane control points, where the polyline starting point of the dimension leader is the midpoint of two of the interval plane control points; The name of the interval plane control point is a single line of text, the text content is the name of the interval plane control point in the interval plane control point information, and the text direction is parallel to the line direction within the line mileage range corresponding to the interval plane control point; S7.2: Set the annotation style of the annotation leader and the name of the interval plane control point, including color, line width, and font attributes.

8. An intelligent marking system for rail transit lines and section plane control points, characterized in that: include: A file reading module, the file reading module is used to obtain a system instruction for running the AutoCAD secondary development program, and open the AutoCAD application software according to the system instruction; It is also used to open the line and section plane design file in the AutoCAD application software and read the line and section plane design data; it is also used to read the outline of the section plane control point in the line and section plane design data, obtain the information of the section plane control point to be marked, and store the outline vertex coordinates of the section plane control point one by one; A control point metering module, the control point metering module is used to read the outer contour of the rail transit line in the line and interval plane design data, calculate the number of intersections between the outer contour of the rail transit line and the contour of the interval plane control point, and judge whether there is a plane conflict between the interval plane control point and the rail transit line according to the number of intersections. If there is no conflict, continue to execute, if there is a conflict, skip S6; it is also used to calculate the line mileage range corresponding to the interval plane control point according to the contour vertex coordinates of the interval plane control point; it is also used to calculate the minimum plane distance between the interval plane control point and the outer contour of the rail transit line according to the contour vertex coordinates of the interval plane control point, and the machine draws the distance mark between the interval plane control point and the outer contour of the rail transit line; The annotation creation module is used to obtain the vertex coordinates of the two interval plane control points, create an annotation leader on the perpendicular bisector of the straight line connecting the two interval plane control points, annotate the interval plane control point information, and output the final annotation file of the rail transit line and the interval plane control points.

9. A computer-readable storage medium, characterized in that: A computer program is stored on a computer-readable storage medium, and when the computer program is executed by a processor, a method for intelligently marking plane control points of rail transit lines and sections as claimed in any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Method for optimizing elevation marking of retaining wall elevation

    CN113111428A

  • Automatic construction method for a space convergence structure based on an interpolation algorithm

    CN113486429A

  • Method for inserting nodes into planar graph based on existing drawing software development

    CN114491716A

  • BIM (Building Information Modeling)-based dynamic association method and system for longitudinal bar in-situ labeling and medium

    CN115270251A

  • Rail transit line and interval plane graph contact channel and pump room automatic design method

    CN117932761A