A method and system for intelligent marking of plane control points of rail transit lines and sections

The AutoCAD secondary development program automates the marking of rail transit line and section plane control points, solving the time-consuming and inefficient problems of existing technologies, realizing intelligent marking and significantly improving production efficiency.

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

Patent Information

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

AI Technical Summary

Technical Problem

The existing method for marking plane control points of lines and sections in the rail transit industry is time-consuming, has low production efficiency, and requires a lot of manual operation.

Method used

Adopting AutoCAD secondary development program, the system commands automatically open the design file, read the data, calculate the number of intersections, determine the conflict, calculate the distance and machine draw the annotation, create the annotation leader, and output the final annotation file.

Benefits of technology

It has realized the intelligent marking of rail transit lines and section plane control points, greatly improving production efficiency and reducing the work that would have taken 2 days of manual operation to 1 hour.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119598574B_ABST
    Figure CN119598574B_ABST
Patent Text Reader

Abstract

This application relates to the field of CAD annotation technology and discloses a method and system for intelligent annotation of plane control points of rail transit lines and sections, including: opening AutoCAD software according to system instructions and reading line and section plane design file data; obtaining the plane control point information of the section to be annotated and storing its contour vertex coordinates; calculating the number of intersections between the outer contour of the rail transit line and the contour of the control points, and determining whether there is a plane conflict; calculating the line mileage range based on the vertex coordinates; calculating the minimum plane distance between the control point and the outer contour of the line and drawing the distance annotation; taking the vertex coordinates of the two control points to create annotation leader annotation information, and outputting the final annotation file. This patent solves the problem that the annotation of plane control points of lines and sections in the rail transit industry must be completed manually, which is time-consuming and inefficient, and realizes intelligent annotation, greatly improving production efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] Currently, when rail transit industry designers are marking the plane control points of lines and sections, they need to manually identify the relative position relationship between the plane control points and the sections in the AutoCAD line and section plane design plan file, manually measure and determine the minimum plane distance between the plane control points and the sections, and finally draw the distance annotations between the plane control points and the sections plane, the name plane annotations of the plane control points, 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's line and section plane control point marking methods involve a large number of manual operations such as drawing auxiliary lines, selecting objects, measuring lengths, editing text, 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] To address the above-mentioned issues, the present invention proposes a method and system for intelligently labeling plane control points of rail transit lines and sections, so as to solve the problem that when labeling plane control points of rail transit lines and sections in the rail transit industry, a large number of designers need to manually complete the process in the CAD model space, which is time-consuming and inefficient. To achieve the above-mentioned purpose, the present invention provides a method for intelligently labeling plane control points of rail transit lines and sections, comprising:

[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 contours 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 points, and determine whether there is a plane conflict between the section plane control points and the rail transit line based on the number of intersections. If there is no conflict, continue execution; 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 based on 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 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.

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

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

[0014] The outlines of the section plane control points and the outer outlines of the rail transit lines 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 a 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 shall include 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 using the AutoCAD IntersectWith method;

[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 section plane control point and the polylines PL1 and PL2 is not 0, it is determined that the section plane control point conflicts with the right rail transit line.

[0022] If the number of intersections between the section plane control point outline and the polylines PL3 and PL4 is 0, it is determined that the section plane control point 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 the section plane control point and the rail transit line have no plane conflict.

[0025] Preferably, step S5 specifically includes:

[0026] S5.1: Line 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 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 from 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: Use the AutoCAD GetClosestPointTo method 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 section 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 marking base point;

[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. 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 for the annotation leader and the names of the interval plane control points, including color, line width, and font attributes.

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

[0039] A file reading module is used to obtain 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 route and section plane design file in the AutoCAD application software and read the route and section plane design data; it is also used to read the outline of the section plane control point in the route 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;

[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 based on the number of intersections. If there is no conflict, the execution continues; if there is a conflict, S6 is skipped; it is also used to calculate the line mileage range corresponding to the interval plane control point based on 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 based on the contour vertex coordinates of the interval plane control point, and the machine draws the distance mark on 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, which implements an intelligent marking method for rail transit lines and section plane control points 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 improving production efficiency. It uses the AutoCAD secondary development program to digitally store and read the rail transit section plane control point information, and links it with the line plane design plan data to realize automatic verification of the relationship between the line and section plane control points and the section plane, and intelligent marking design, greatly improving production efficiency.

[0045] By programming the method of the present invention into an AutoCAD secondary development program, the repetitive manual labor involved in marking control points for rail transit lines and sections is automated by a computer, significantly improving production efficiency. The manual marking of control points for the 32 sections of a subway line's plan design drawings, which would take approximately two working days using existing production methods, can be completed in just one hour using the method and embodiments of the present invention, significantly improving production efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 Flowchart 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 illustrating 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 clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. 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 making creative efforts 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", "up", "down", "left", "right", "vertical", "horizontal", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the devices or components referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are only used for descriptive purposes and should not 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, they can be fixedly connected, detachably connected, or connected in one piece; they can be mechanically connected or electrically connected; they can be directly connected, or indirectly connected through an intermediate medium, or they can be internal connections between two components. 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 describes an embodiment of the present invention based on its overall structure.

[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 route plane design plan includes: route mileage data and route 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 contours 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 execution; 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. The polylines of the outer contour of the right rail transit line are defined as PL1 and PL2. The polylines of the outer contour of the left rail transit line are defined as PL3 and PL4.

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

[0067] Specifically, the intersection calculation can use the IntersectWith method of AutoCAD to 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.

[0068] S4.3: Determine whether the plane control point of the interval conflicts with the plane of the interval.

[0069] Specifically, when the number of intersections between the outline of the interval plane control point in step S4.2 and the polylines PL1 and PL2 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 intersections between the outline of the interval plane control point in step S4.2 and the polylines PL1 and PL2 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 outline of the interval plane control point in step S4.2 and the polylines PL3 and PL4 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 outline of the interval plane control point in step S4.2 and the polylines PL3 and PL4 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 the section plane control point and the rail transit line have no plane conflict.

[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 based on 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 line mileage includes: right line mileage and left line mileage, wherein the right line 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 from 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 vertex coordinates of the contour 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 in the interval of 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 AutoCAD's GetClosestPointTo method, 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 P. min1 , P′ min1 and P min2 , P′ min2As the base point for annotation.

[0089] S6.4: Set the annotation style of the aligned 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 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.

[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 improving production efficiency. It uses the AutoCAD secondary development program to digitally store and read the rail transit section plane control point information, and links it with the line plane design plan data to realize automatic verification of the relationship between the line and section plane control points and the section plane, and intelligent marking design, greatly improving production efficiency.

[0097] By programming the method of the present invention into an AutoCAD secondary development program, the repetitive manual labor involved in marking control points for rail transit lines and sections is automated by a computer, significantly improving production efficiency. The manual marking of control points for the 32 sections of a subway line's plan design drawings, which would take approximately two working days using existing production methods, can be completed in just one hour using the method and embodiments of the present invention, significantly improving production efficiency.

[0098] The above method steps can be implemented by writing an AutoCAD secondary development program. This program automatically designs and generates various graphic elements for the section master plan, including polylines and single-line text. Preset parameters can also be used to automatically adjust the graphic element format to meet the professional engineering design and drawing standards for rail transit lines and sections. Programming languages ​​include C++ and C#. Once the program is running, it can automatically complete the above operations in dwg, dws, dwt, and dxf file formats.

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

[0100] at least one processor; and a memory communicatively connected to the at least one processor; wherein,

[0101] The memory stores instructions executable by at least one processor, the instructions being executed by the 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 contours 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 points, and determine whether there is a plane conflict between the section plane control points and the rail transit line based on the number of intersections. If there is no conflict, continue execution; 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 based on 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 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.

[0109] Example 3: This example discloses a system for intelligent marking of rail transit lines and section plane control points. Figure 4 Shown, including:

[0110] A file reading module is used to obtain 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 route and section plane design file in the AutoCAD application software and read the route and section plane design data; it is also used to read the outline of the section plane control point in the route 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;

[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 based on the number of intersections. If there is no conflict, the execution continues; if there is a conflict, S6 is skipped; it is also used to calculate the line mileage range corresponding to the interval plane control point based on 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 based on the contour vertex coordinates of the interval plane control point, and the machine draws the distance mark on 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 intelligent marking of plane control points of rail transit lines and sections.

[0114] Those skilled in the art will 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] Those skilled in the art can make various other corresponding changes and deformations based on the technical solutions and concepts described above, and all of these changes and deformations should fall within the scope of protection of the claims of the present invention.

Claims

1. A method for intelligent marking of 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 contours 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 points, and determine whether there is a plane conflict between the section plane control points and the rail transit line based on the number of intersections. If there is no conflict, continue execution; if there is a conflict, skip S6; 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 outline of the plane control point of the interval and the polylines PL1, PL2, PL3, and PL4 respectively using the IntersectWith method of AutoCAD; S4.3: If the number of intersections between the plane control point outline of the interval and the polylines PL1 and PL2 is 0, it is determined that the plane control point of the interval does not conflict with the right rail transit line. If the number of intersections between the outline of the section plane control point and the polylines PL1 and PL2 is not 0, it is determined that the section plane control point conflicts with the right rail transit line. If the number of intersections between the outline of the section plane control point and the polylines PL3 and PL4 is 0, it is determined that the section plane control point does not conflict with the left rail transit line. 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; S4.4: When the plane control point in the section satisfies the non-conflict conditions with the right rail transit line, and the plane control point in the section satisfies the non-conflict conditions with the left rail transit line, it is determined that the plane control point in the section has no plane conflict with the rail transit line; 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; Step S6 specifically includes: S6.1: Looping through the GetClosestPointTo method of AutoCAD to calculate the minimum plane distance between a contour vertex of a single plane control point of the interval and a polyline of a single outer contour of the rail transit line; S6.2: Obtain the minimum of the two minimum plane distances as the plane distance , plane distance , and store the corresponding distance endpoints; The plane distance The contour vertices corresponding to the plane control points of the interval and points on the outer contour of the rail transit line , the plane distance The contour vertices corresponding to the plane control points of the interval and points on the outer contour of the rail transit line ; 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 a point and the other with a point. 、 and 、 As a marking base point; S6.4: Setting the annotation style of the alignment annotation, including color, font, and arrow attributes; 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 further includes: reading and storing the line and section plane design data through an AutoCAD secondary development program when opening a file, wherein the line and section plane design file includes at least: a line plane design plan, a section plane control point outline, and a rail transit line outer outline; The line plane design scheme includes at least: 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 rail transit lines and section plane control points according to claim 1 is characterized in that: Step S3 further includes: 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 a text description of the interval plane control point.

4. The method for intelligent marking of rail transit lines and section plane control points 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, the right line mileage is defined as the mileage set { }, the left line mileage storage is defined as the mileage set { 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; S5.2: 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 { }, 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 { }The range from the minimum mileage to the maximum mileage.

5. The method for intelligent marking of rail transit lines and section plane control points according to claim 1 is characterized in that: Step S7 further 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 the two 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 direction of the text is parallel to the line direction within the line mileage range corresponding to the interval plane control point; S7.2: Set the annotation style for the annotation leader and the names of the interval plane control points, including color, line width, and font attributes.

6. A system for intelligent marking of plane control points of rail transit lines and sections, which uses the method for intelligent marking of plane control points of rail transit lines and sections according to any one of claims 1 to 5, 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 points in the line and section plane design data, obtain the information of the section plane control points to be marked, and store the outline vertex coordinates of the section plane control points one by one; A 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 determine whether there is a plane conflict between the interval plane control point and the rail transit line based on the number of intersections. If there is no conflict, the execution continues; if there is a conflict, S6 is skipped; the module is also used to calculate the line mileage range corresponding to the interval plane control point based on the contour vertex coordinates of the interval plane control point; the module is also used to calculate the minimum plane distance between the interval plane control point and the outer contour of the rail transit line based on 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, and annotate the interval plane control point information, and output the final annotation file of the rail transit line and the interval plane control points.

7. 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 according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

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

    CN117932761A

  • Rail transit line and interval plane automatic design method and system

    CN118171342A