Linear rectification calculation pattern visual interaction method and system

By drawing line fitting results in the AutoCAD graphical interface and supporting bidirectional linkage optimization, the problem of the lack of visualization of line fitting results is solved, improving user experience and calculation efficiency, and enhancing the quality of track fine-tuning.

CN117633943BActive Publication Date: 2026-07-24CHINA RAILWAY FIRST SURVEY & DESIGN INST GRP
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHINA RAILWAY FIRST SURVEY & DESIGN INST GRP
Filing Date
2023-11-09
Publication Date
2026-07-24

AI Technical Summary

Technical Problem

The existing linear fitting results are not presented in a visual graphical way, resulting in a poor user experience, low fitting calculation efficiency, and affecting the quality of track fine-tuning projects.

Method used

By drawing planar and vertical line graphics in the AutoCAD graphical interface, it supports two-way linkage based on AutoCAD charts, realizes dynamic optimization and adjustment of line type, and provides interactive operation to optimize line type parameters by combining AutoCAD.NET secondary development.

Benefits of technology

It enables the visualization of linear fitting results, improves user experience, and enhances the efficiency of linear optimization and adjustment as well as the quality of correction calculations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117633943B_ABST
    Figure CN117633943B_ABST
Patent Text Reader

Abstract

The application discloses a linear rectification calculation graph visual interaction method and system, obtains plane and longitudinal section linear segmentation information based on railway line linear fitting results; creates AutoCAD entity objects of each segmentation, and draws plane and longitudinal section line graphs on an AutoCAD graph interface; detects user interaction operations for local optimization adjustment of linear, including directly inputting adjustment parameters in a linear optimization function page or directly modifying entity objects on the plane or longitudinal section line graphs drawn on the AutoCAD graph interface; in response to the interaction operations, obtains linear parameters after optimization adjustment, and automatically updates the linear fitting result graph and the plane and longitudinal section line graphs drawn on the AutoCAD graph interface according to the linear parameters after optimization adjustment. The method supports dynamic optimization adjustment of linear based on plane and longitudinal section lines, and has the advantages of visual interaction, convenient operation and good user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of railway alignment fitting and track fine-tuning technology, specifically to a graphical visualization and interactive method and system for alignment correction calculation. Background Technology

[0002] Due to the long-term continuous operation of existing railways, the actual track alignment has undergone varying degrees of spatial deformation compared to the original design alignment. Therefore, it is necessary to perform alignment correction calculations on the track horizontal and vertical profiles. By collecting the measured three-dimensional coordinates of the track centerline, the alignment of the existing railway track horizontal and vertical profiles is fitted to restore the optimal track alignment as much as possible, thereby improving the safety of train operation and the comfort of passengers.

[0003] In the process of alignment adjustment calculation, it is necessary to take into account both the line design specifications and the actual needs of track maintenance in order to obtain the optimal alignment of the track horizontal and vertical profile with the minimum overall adjustment and alignment parameters (straight segments, curved segments, and transition curve segments) that meet the relevant specifications. This makes the alignment fitting parameter adjustment process quite complicated, and usually requires continuous manual optimization and adjustment to obtain the optimal alignment.

[0004] Existing technical methods have the following problems: 1. The fitting calculation results are usually output in the form of linear feature tables, and rarely expressed in a visual graphical way, making it difficult for users to intuitively evaluate the fitting effect of the horizontal and vertical profile lines; 2. Some line alignment calculation software has the function of graphically displaying the line fitting results, but usually it only plots the fitted lines in one direction to the AutoCAD graphical interface, and rarely supports dynamic optimization and adjustment of the line based on the two-way linkage of AutoCAD charts. The user experience of the software is poor, the fitting calculation efficiency is low, and it affects the quality of subsequent track fine-tuning projects. Summary of the Invention

[0005] This application provides a graphical visualization and interactive method and system for linear alignment calculation to solve the problems of existing linear fitting results not being expressed in a visual graphical way and not supporting dynamic optimization and adjustment of linearity based on two-way linkage of AutoCAD charts, resulting in poor user experience, low fitting calculation efficiency, and affecting the quality of subsequent track fine-tuning projects.

[0006] According to a first aspect, one embodiment provides a graphical visualization and interactive method for linear alignment calculation, the method comprising:

[0007] Based on the alignment fitting results obtained by fitting the railway line in both the horizontal and vertical planes, the horizontal alignment segmentation information and the vertical alignment segmentation information are obtained.

[0008] Based on the planar line segmentation information and the longitudinal line segmentation information, create AutoCAD entity objects for each segment, and draw planar line graphics and longitudinal line graphics in the AutoCAD graphical interface.

[0009] The system detects user interactions with local line optimization adjustments, including directly inputting adjustment parameters on the line optimization function page or directly modifying entity objects on planar or longitudinal line graphics drawn in the AutoCAD graphics interface.

[0010] In response to the interactive operation, the optimized and adjusted line shape parameters are obtained, and the line shape fitting result chart and the plane and vertical line graphics drawn in the AutoCAD graphical interface are automatically updated according to the optimized and adjusted line shape parameters, so as to complete the dynamic optimization and adjustment of the line shape.

[0011] Furthermore, based on the railway alignment fitting results, horizontal alignment segmentation information and vertical alignment segmentation information are obtained, specifically including:

[0012] The planar linear segmentation information includes straight line segments, circular curve segments, and transition curve segments. Straight line segments include the coordinates of the start and end points; circular curve segments include the center, radius, starting angle, and ending angle; and transition curve segments include the curve step size and the coordinates of the curve inflection points.

[0013] The longitudinal alignment segmentation information includes straight line segments and circular curve segments. The straight line segments include the coordinates of the starting point, ending point, and slope change point; the circular curve segments include the center, radius, starting angle, and ending angle.

[0014] Furthermore, based on the planar line segmentation information and the longitudinal line segmentation information, AutoCAD entity objects for each segment are created, and planar and longitudinal line graphics are drawn in the AutoCAD graphical interface, specifically including:

[0015] For planar linear segmentation information, straight line segments are represented by Line entity objects, circular curve segments are represented by Arc entity objects, and transition curve segments are represented by Polyline entity objects.

[0016] For vertical line segmentation information, straight line segments are represented by Line entity objects, and circular curve segments are represented by Arc entity objects.

[0017] Furthermore, based on the planar line segmentation information and the longitudinal line segmentation information, AutoCAD entity objects for each segment are created, and planar and longitudinal line graphics are drawn in the AutoCAD graphical interface, specifically including:

[0018] Use the AppendEntity() function to create each segment entity into an AutoCAD BlockTableRecord object, and then draw the planar line graphics and the vertical line graphics respectively.

[0019] Furthermore, the linear local optimization adjustment specifically includes:

[0020] Planar alignment optimization includes functions such as alignment parameter modification, large radius curve optimization, tangent twisting, and control point insertion.

[0021] The longitudinal alignment optimization includes functions such as slope change point modification, alignment parameter modification, elevation unevenness check, and track lifting.

[0022] Furthermore, in response to the interactive operation, the optimized and adjusted line shape parameters are obtained, and the line shape fitting result chart and the planar and longitudinal line graphics drawn in the AutoCAD graphical interface are automatically updated according to the optimized and adjusted line shape parameters to complete the dynamic optimization and adjustment of the line shape, specifically including:

[0023] When it is detected that the user directly inputs adjustment parameters in the line shape optimization function page, the input parameters are retransmitted to the line shape fitting calculation module, and then the optimized line shape parameters are updated in the line shape fitting result chart.

[0024] Furthermore, in response to the interactive operation, the optimized and adjusted line shape parameters are obtained, and the line shape fitting result chart and the planar and longitudinal line graphics drawn in the AutoCAD graphical interface are automatically updated according to the optimized and adjusted line shape parameters to complete the dynamic optimization and adjustment of the line shape, specifically including:

[0025] When it is detected that the user directly modifies the entity object on the plane or vertical line drawing in the AutoCAD graphics interface, the GetSelection() function is used to obtain the entity object that the user interacted with in the AutoCAD graphics interface into the ObjectIdCollection selection set. The information of the interacted entity, including entity type, entity number, and entity parameters, is then re-transmitted to the line fitting calculation module. Finally, the optimized line parameters are updated in the line fitting result chart.

[0026] Furthermore, in response to the interactive operation, the optimized and adjusted line shape parameters are obtained, and the line shape fitting result chart and the planar and longitudinal line graphics drawn in the AutoCAD graphical interface are automatically updated according to the optimized and adjusted line shape parameters to complete the dynamic optimization and adjustment of the line shape, specifically including:

[0027] Based on the updated line fitting results, the planar and longitudinal line graphics are redrawn in the AutoCAD graphics interface.

[0028] According to a second aspect, one embodiment provides a linear alignment calculation graphical visualization interactive system, the system comprising:

[0029] The alignment fitting calculation module is used to obtain the alignment fitting results of the railway line according to the horizontal and vertical alignment fitting, and to obtain the horizontal alignment segmentation information and the vertical alignment segmentation information.

[0030] The line drawing module is used to create AutoCAD entity objects for each segment based on the planar line segmentation information and the vertical line segmentation information, and to draw planar line graphics and vertical line graphics in the AutoCAD graphics interface.

[0031] The interactive operation module is used to detect the user's interactive operation on the local optimization adjustment of the line shape. The interactive operation includes directly inputting adjustment parameters in the line shape optimization function page or directly modifying the entity object on the plane or vertical line graphic drawn in the AutoCAD graphics interface.

[0032] The chart two-way linkage module is used to respond to the interactive operation, obtain the optimized and adjusted line shape parameters, and automatically update the line shape fitting result chart and the plane and vertical line graphics drawn in the AutoCAD graphical interface according to the optimized and adjusted line shape parameters, so as to complete the dynamic optimization and adjustment of the line shape.

[0033] According to a third aspect, one embodiment provides an electronic device, the device comprising: a processor and a memory;

[0034] The memory is used to store one or more program instructions;

[0035] The processor is configured to run one or more program instructions to perform the steps of a linear alignment computational graphics visualization interactive method as described in any of the preceding claims.

[0036] According to a fourth aspect, one embodiment provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of a linear alignment calculation graphics visualization interactive method as described in any of the preceding claims.

[0037] This application provides a graphical visualization and interactive method and system for linear alignment calculation. Based on the linear fitting results obtained by fitting railway lines in both horizontal and vertical planes, it acquires horizontal and vertical alignment segmentation information. Based on this information, it creates AutoCAD entity objects for each segment and draws horizontal and vertical line graphics in the AutoCAD graphical interface. It detects user interactions for local alignment optimization, including directly inputting adjustment parameters in the alignment optimization function page or directly modifying entity objects on the horizontal or vertical line graphics drawn in the AutoCAD graphical interface. In response to these interactions, it acquires the optimized alignment parameters and automatically updates the alignment fitting result chart and the horizontal and vertical line graphics drawn in the AutoCAD graphical interface based on these optimized alignment parameters, thus completing the dynamic optimization adjustment of the alignment. Through secondary development of AutoCAD.NET, horizontal and vertical profile lines are displayed in the AutoCAD graphical interface, and the results of line fitting calculations are graphically expressed. At the same time, it supports two-way linkage of charts based on horizontal and vertical profile lines for dynamic optimization and adjustment of the line. This method is visually intuitive, easy to operate, and provides a good user experience. It can significantly improve the efficiency of line optimization and adjustment and the quality of correction calculations, and has high engineering application value for railway line fitting and track fine-tuning. Attached Figure Description

[0038] Figure 1 A flowchart illustrating a graphical visualization and interactive method for linear alignment calculation provided in one embodiment of the present invention;

[0039] Figure 2 A flowchart illustrating the software implementation of a graphical visualization and interactive method for linear alignment calculation provided in one embodiment of the present invention;

[0040] Figure 3 This is a flowchart of an algorithm in a graphical visualization and interactive method for linear alignment calculation provided in one embodiment of the present invention;

[0041] Figure 4 This is a schematic diagram of the horizontal and vertical plane line fitting results based on AutoCAD in a line alignment calculation graphical visualization interactive method provided in an embodiment of the present invention.

[0042] Figure 5 This is a schematic diagram illustrating the visual interaction of line shape optimization adjustment in a line shape correction calculation graphical visualization interactive method provided in one embodiment of the present invention;

[0043] Figure 6 This is a schematic diagram of the logical structure of a linear alignment calculation graphical visualization interactive system provided in one embodiment of the present invention. Detailed Implementation

[0044] The present invention will now be described in further detail with reference to specific embodiments and accompanying drawings. Similar elements in different embodiments are referred to by associated similar element reference numerals. In the following embodiments, many details are described to facilitate a better understanding of this application. However, those skilled in the art will readily recognize that some features may be omitted in different situations, or may be replaced by other elements, materials, or methods. In some cases, certain operations related to this application are not shown or described in the specification. This is to avoid obscuring the core parts of this application with excessive description. For those skilled in the art, detailed description of these related operations is not necessary; they can fully understand the related operations based on the description in the specification and general technical knowledge in the art.

[0045] Furthermore, the features, operations, or characteristics described in the specification can be combined in any suitable manner to form various embodiments. At the same time, the steps or actions in the method description can be rearranged or adjusted in a manner obvious to those skilled in the art. Therefore, the various orders in the specification and drawings are only for the clear description of a particular embodiment and do not imply a necessary order, unless otherwise stated that a particular order must be followed.

[0046] The first embodiment of this invention provides a graphical visualization and interactive method for linear alignment calculation, which will be described below in conjunction with... Figure 1 , Figure 2 and Figure 3 Please provide a detailed explanation.

[0047] like Figure 1 As shown, in step S101, based on the alignment fitting results obtained by performing alignment fitting on the railway line in both the horizontal and vertical directions, the horizontal alignment segmentation information and the vertical alignment segmentation information are obtained.

[0048] The railway line is fitted with alignment parameters in both horizontal and vertical planes. Based on the calculation results from the alignment fitting module, horizontal and vertical fitting parameters are obtained and stored in the alignment fitting result chart. Based on the calculation results from the alignment fitting module, horizontal alignment segmentation information (such as...) is obtained. Figure 4 (a) As shown in the left figure) and vertical plane line segmentation information (such as...) Figure 4 (b) As shown in the left figure).

[0049] In this embodiment, the planar linear segmentation information includes straight line segments, circular curve segments, and transition curve segments. The straight line segment includes the coordinates of the start and end points; the circular curve segment includes the center, radius, start angle, and end angle; and the transition curve segment includes the curve step size and the coordinates of the curve inflection point.

[0050] The longitudinal alignment segmentation information includes straight segments and circular curve segments. Straight segments include the coordinates of the starting point, ending point, and slope change point; circular curve segments include the center, radius, starting angle, and ending angle.

[0051] like Figure 1 As shown, in step S102, based on the planar line segmentation information and the longitudinal line segmentation information, AutoCAD entity objects for each segment are created, and planar line graphics and longitudinal line graphics are drawn in the AutoCAD graphics interface.

[0052] For planar linear segmentation information, straight line segments are represented by Line entity objects, circular curve segments are represented by Arc entity objects, and transition curve segments are represented by Polyline entity objects.

[0053] For vertical line segmentation information, straight line segments are represented by Line entity objects, and circular curve segments are represented by Arc entity objects.

[0054] Based on the line segmentation information obtained in step S101, entities such as points, lines, arcs, and polylines are created into the AutoCAD BlockTableRecord object using the AppendEntity() function, and planar lines (such as...) are then drawn. Figure 4 (a) As shown in the right figure) and vertical line graphics (such as...) Figure 4 (b) As shown in the right figure.

[0055] like Figure 1 As shown, in step S103, the user's interactive operation of local optimization adjustment of the line shape is detected. The interactive operation includes directly inputting adjustment parameters in the line shape optimization function page or directly modifying the entity object on the plane or vertical line graphic drawn in the AutoCAD graphics interface.

[0056] After the linear fitting calculation is completed, local optimization and adjustment of the linear fitting results are usually required. Planar linear optimization includes functions such as modifying linear parameters, optimizing large-radius curves, tangent twisting, and inserting control points. Longitudinal linear optimization includes functions such as modifying slope points, modifying linear parameters, checking for unevenness, and raising the track.

[0057] In this embodiment, based on secondary development of AutoCAD.NET, the interactive software is integrated into CAD as a plug-in and works in conjunction with CAD. Users can perform interactive operations to locally optimize and adjust the line shape by directly inputting adjustment parameters in the line shape optimization function page or by directly modifying entity objects on the plane or vertical line graphics drawn in the AutoCAD graphics interface.

[0058] like Figure 5As shown, when optimizing and adjusting the line shape, users can click on specific function buttons and perform the optimization in two ways: by entering adjustment parameters in the pop-up interactive window and by modifying the line shape entity in the AutoCAD graphic interface obtained in step S102.

[0059] For example Figure 5 As shown in (a), when performing large radius curve optimization, the user clicks the "Large Radius Curve Optimization" function button and can manually enter the mileage range in the launched interactive window to determine the area to be optimized, such as... Figure 5 (a) Left image; or interactively select the line segment to be adjusted through the AutoCAD graphics window, and display the result in conjunction with the manually entered range to complete the line optimization, such as... Figure 5 (a) Right figure.

[0060] For example Figure 5 As shown in (b), when inserting control points, the user clicks the "Insert Control Point" function button. In the launched interactive window, the user selects the line where control points need to be inserted and inputs the coordinates of the pre-inserted control point group to complete local optimization. Figure 5 (b) Left figure; or by directly interacting with the straight line entity of the pre-inserted control point in the graphical interface, the insertion of control points and the editing of inserted control points can be realized based on the native functions of AutoCAD, thereby completing local optimization, such as Figure 5 (b) Right figure.

[0061] like Figure 1 As shown, in step S104, in response to the interactive operation, the optimized and adjusted line shape parameters are obtained, and the line shape fitting result chart and the plane and vertical line graphics drawn in the AutoCAD graphical interface are automatically updated according to the optimized and adjusted line shape parameters, so as to complete the dynamic optimization and adjustment of the line shape.

[0062] The above steps specifically include:

[0063] When it is detected that the user directly inputs adjustment parameters in the line shape optimization function page, the value is retransmitted to the line shape fitting calculation module according to the input parameters, and then the optimized line shape parameters are updated in the line shape fitting result chart.

[0064] When it is detected that the user directly modifies the entity object on the plane or vertical line drawing in the AutoCAD graphics interface, the GetSelection() function is used to obtain the entity object that the user interacted with in the AutoCAD graphics interface into the ObjectIdCollection selection set. The information of the interacted entity, including entity type, entity number and entity parameters, is re-passed to the line fitting calculation module. Then, the optimized line parameters are updated in the line fitting result chart.

[0065] Based on the updated line fitting results, the planar and longitudinal line graphics are redrawn in the AutoCAD graphics interface.

[0066] Specifically, for example, when the algorithm detects that the user has modified the horizontal and vertical profile lines, it uses the GetSelection() function to retrieve the entity objects interacting with by the user in the AutoCAD graphical interface into the ObjectIdCollection selection set. Information such as entity type, entity number, and entity parameters are then re-transmitted to the line fitting calculation module, and the optimized line parameters are updated in the result table. When the algorithm detects that the user has modified the line parameters in the table, it re-transmits the values ​​to the line fitting calculation module, and then updates the optimized line parameters in the result table. Based on the updated and optimized line parameters, the line segmentation information is re-acquired, and the horizontal and vertical profile lines of the line are automatically drawn in the AutoCAD graphical interface according to the updated line segmentation information. S102 to S104 are repeated until the line optimization is completed, ultimately obtaining the optimal line shape, providing basic data for the track fine-tuning operation plan.

[0067] This invention provides a graphical visualization and interactive method for calculating line alignment. Based on the line alignment fitting results obtained by fitting railway lines in both horizontal and vertical planes, the method acquires horizontal and vertical line alignment segmentation information. Based on this information, it creates AutoCAD entity objects for each segment and draws horizontal and vertical line graphics in the AutoCAD graphical interface. The method detects user interactions for local line alignment optimization, including directly inputting adjustment parameters in the line alignment optimization function page or directly modifying entity objects on the horizontal or vertical line graphics drawn in the AutoCAD graphical interface. In response to these interactions, the method acquires the optimized line alignment parameters and automatically updates the line alignment fitting result chart and the horizontal and vertical line graphics drawn in the AutoCAD graphical interface based on these parameters, thus completing the dynamic optimization of the line alignment. Through secondary development of AutoCAD.NET, horizontal and vertical profile lines are displayed in the AutoCAD graphical interface, and the results of line fitting calculations are graphically expressed. At the same time, it supports two-way linkage of charts based on horizontal and vertical profile lines for dynamic optimization and adjustment of the line. This method is visually intuitive, easy to operate, and provides a good user experience. It can significantly improve the efficiency of line optimization and adjustment and the quality of correction calculations, and has high engineering application value for railway line fitting and track fine-tuning.

[0068] Corresponding to the above-disclosed method for graphical visualization of linear alignment calculation, this invention also discloses a graphical visualization system for linear alignment calculation, such as... Figure 6 As shown, it specifically includes:

[0069] The alignment fitting calculation module is used to obtain the alignment fitting results of the railway line according to the horizontal and vertical alignment fitting, and to obtain the horizontal alignment segmentation information and the vertical alignment segmentation information.

[0070] The line drawing module is used to create AutoCAD entity objects for each segment based on the planar line segmentation information and the vertical line segmentation information, and to draw planar line graphics and vertical line graphics in the AutoCAD graphics interface.

[0071] The interactive operation module is used to detect the user's interactive operation on the local optimization adjustment of the line shape. The interactive operation includes directly inputting adjustment parameters in the line shape optimization function page or directly modifying the entity object on the plane or vertical line graphic drawn in the AutoCAD graphics interface.

[0072] The chart two-way linkage module is used to respond to the interactive operation, obtain the optimized and adjusted line shape parameters, and automatically update the line shape fitting result chart and the plane and vertical line graphics drawn in the AutoCAD graphical interface according to the optimized and adjusted line shape parameters, so as to complete the dynamic optimization and adjustment of the line shape.

[0073] It should be noted that for a detailed description of the linear alignment calculation graphical visualization interactive system provided in the embodiments of the present invention, please refer to the relevant description of the linear alignment calculation graphical visualization interactive method provided in the embodiments of this application, which will not be repeated here.

[0074] In addition, embodiments of the present invention also provide an electronic device, the device comprising: a processor and a memory; the memory being used to store one or more program instructions; the processor being used to execute one or more program instructions to perform the steps of a linear alignment calculation graphics visualization interactive method as described in any of the preceding claims.

[0075] It should be noted that for a detailed description of an electronic device provided in the embodiments of the present invention, please refer to the relevant description of a linear alignment calculation graphical visualization interaction method provided in the embodiments of this application, which will not be repeated here.

[0076] In addition, embodiments of the present invention also provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the linear alignment calculation graphic visualization interaction method as described in any of the preceding claims.

[0077] It should be noted that for a detailed description of the computer-readable storage medium provided in the embodiments of the present invention, please refer to the relevant description of the linear alignment calculation graphic visualization interaction method provided in the embodiments of this application, which will not be repeated here.

[0078] Those skilled in the art will understand that all or part of the functions of the various methods in the above embodiments can be implemented by hardware or by computer programs. When all or part of the functions in the above embodiments are implemented by computer programs, the program can be stored in a computer-readable storage medium, which may include: read-only memory, random access memory, disk, optical disk, hard disk, etc., and the program is executed by a computer to achieve the above functions. For example, the program can be stored in the memory of a device, and when the program in the memory is executed by the processor, all or part of the above functions can be achieved. In addition, when all or part of the functions in the above embodiments are implemented by computer programs, the program can also be stored in a server, another computer, disk, optical disk, flash drive, or external hard drive, etc., and can be downloaded or copied to the memory of a local device, or the system of the local device can be updated. When the program in the memory is executed by the processor, all or part of the functions in the above embodiments can be achieved.

[0079] The above examples illustrate the present invention only to aid in understanding it and are not intended to limit the scope of the invention. Those skilled in the art can make various simple deductions, modifications, or substitutions based on the principles of this invention.

Claims

1. A graphical visualization and interactive method for linear alignment calculation, characterized in that, The method includes: Based on the alignment fitting results obtained by fitting the railway line in both the horizontal and vertical planes, the horizontal alignment segmentation information and the vertical alignment segmentation information are obtained. Based on the planar line segmentation information and the longitudinal line segmentation information, create AutoCAD entity objects for each segment, and draw planar line graphics and longitudinal line graphics in the AutoCAD graphical interface. The system detects user interactions with local line optimization adjustments, including directly inputting adjustment parameters on the line optimization function page or directly modifying entity objects on planar or longitudinal line graphics drawn in the AutoCAD graphics interface. In response to the interactive operation, the optimized and adjusted line shape parameters are obtained, and the line shape fitting result chart and the plane and vertical line graphics drawn in the AutoCAD graphical interface are automatically updated according to the optimized and adjusted line shape parameters to complete the dynamic optimization and adjustment of the line shape. in: Based on the railway alignment fitting results, horizontal alignment segmentation information and vertical alignment segmentation information are obtained, specifically including: The planar linear segmentation information includes straight line segments, circular curve segments, and transition curve segments. Straight line segments include the coordinates of the start and end points; circular curve segments include the center, radius, starting angle, and ending angle; and transition curve segments include the curve step size and the coordinates of the curve inflection points. The longitudinal alignment segmentation information includes straight segments and circular curve segments. Straight segments include coordinates of the start point, end point, and slope change point; circular curve segments include information of the center, radius, starting angle, and ending angle. Based on the planar line segmentation information and the longitudinal line segmentation information, AutoCAD entity objects for each segment are created, and planar and longitudinal line graphics are drawn in the AutoCAD graphical interface, specifically including: For planar linear segmentation information, straight line segments are represented by Line entity objects, circular curve segments by Arc entity objects, and transition curve segments by Polyline entity objects. For vertical line segmentation information, straight line segments are represented by Line entity objects, and circular curve segments are represented by Arc entity objects; The specific linear local optimization adjustment includes: Planar alignment optimization includes alignment parameter modification, large radius curve optimization, tangent twisting, and control point insertion. Longitudinal alignment optimization includes modifying slope points, modifying alignment parameters, checking for elevation irregularities, and raising the track. In response to the interactive operation, the optimized and adjusted line shape parameters are obtained, and the line shape fitting result chart and the planar and longitudinal line graphics drawn in the AutoCAD graphical interface are automatically updated according to the optimized and adjusted line shape parameters to complete the dynamic optimization and adjustment of the line shape, specifically including: When it is detected that the user directly modifies the entity object on the plane or vertical line drawing in the AutoCAD graphics interface, the GetSelection() function is used to obtain the entity object that the user interacted with in the AutoCAD graphics interface into the ObjectIdCollection selection set. The information of the interacted entity, including entity type, entity number and entity parameters, is re-transmitted to the line fitting calculation module. Then, the optimized line parameters are updated in the line fitting result chart.

2. The linear alignment calculation graphical visualization interactive method as described in claim 1, characterized in that, Based on the planar line segmentation information and the longitudinal line segmentation information, AutoCAD entity objects for each segment are created, and planar and longitudinal line graphics are drawn in the AutoCAD graphical interface, specifically including: Use the AppendEntity() function to create each segment entity into an AutoCAD BlockTableRecord object, and then draw the planar line graphics and the vertical line graphics respectively.

3. The graphical visualization and interactive method for linear alignment calculation as described in claim 1, characterized in that, In response to the interactive operation, the optimized and adjusted line shape parameters are obtained, and the line shape fitting result chart and the planar and longitudinal line graphics drawn in the AutoCAD graphical interface are automatically updated according to the optimized and adjusted line shape parameters to complete the dynamic optimization and adjustment of the line shape, specifically including: When it is detected that the user directly inputs adjustment parameters in the line shape optimization function page, the input parameters are retransmitted to the line shape fitting calculation module, and then the optimized line shape parameters are updated in the line shape fitting result chart.

4. The linear alignment calculation graphical visualization interactive method as described in claim 1 or 3, characterized in that, In response to the interactive operation, the optimized and adjusted line shape parameters are obtained, and the line shape fitting result chart and the planar and longitudinal line graphics drawn in the AutoCAD graphical interface are automatically updated according to the optimized and adjusted line shape parameters to complete the dynamic optimization and adjustment of the line shape, specifically including: Based on the updated line fitting results, the planar and longitudinal line graphics are redrawn in the AutoCAD graphics interface.

5. A graphical visualization and interactive system for linear alignment calculation, characterized in that, The system includes: The alignment fitting calculation module is used to obtain the alignment fitting results of the railway line according to the horizontal and vertical alignment fitting, and to obtain the horizontal alignment segmentation information and the vertical alignment segmentation information. The line drawing module is used to create AutoCAD entity objects for each segment based on the planar line segmentation information and the vertical line segmentation information, and to draw planar line graphics and vertical line graphics in the AutoCAD graphics interface. The interactive operation module is used to detect the user's interactive operation on the local optimization adjustment of the line shape. The interactive operation includes directly inputting adjustment parameters in the line shape optimization function page or directly modifying the entity object on the plane or vertical line graphic drawn in the AutoCAD graphics interface. The chart two-way linkage module is used to respond to the interactive operation, obtain the optimized and adjusted line shape parameters, and automatically update the line shape fitting result chart and the plane and vertical line graphics drawn in the AutoCAD graphical interface according to the optimized and adjusted line shape parameters, so as to complete the dynamic optimization and adjustment of the line shape. in: Based on the railway alignment fitting results, horizontal alignment segmentation information and vertical alignment segmentation information are obtained, specifically including: The planar linear segmentation information includes straight line segments, circular curve segments, and transition curve segments. Straight line segments include the coordinates of the start and end points; circular curve segments include the center, radius, starting angle, and ending angle; and transition curve segments include the curve step size and the coordinates of the curve inflection points. The longitudinal alignment segmentation information includes straight segments and circular curve segments. Straight segments include coordinates of the start point, end point, and slope change point; circular curve segments include information of the center, radius, starting angle, and ending angle. Based on the planar line segmentation information and the longitudinal line segmentation information, AutoCAD entity objects for each segment are created, and planar and longitudinal line graphics are drawn in the AutoCAD graphical interface, specifically including: For planar linear segmentation information, straight line segments are represented by Line entity objects, circular curve segments by Arc entity objects, and transition curve segments by Polyline entity objects. For vertical line segmentation information, straight line segments are represented by Line entity objects, and circular curve segments are represented by Arc entity objects; The specific linear local optimization adjustment includes: Planar alignment optimization includes alignment parameter modification, large radius curve optimization, tangent twisting, and control point insertion. Longitudinal alignment optimization includes modifying slope points, modifying alignment parameters, checking for elevation irregularities, and raising the track. In response to the interactive operation, the optimized and adjusted line shape parameters are obtained, and the line shape fitting result chart and the planar and longitudinal line graphics drawn in the AutoCAD graphical interface are automatically updated according to the optimized and adjusted line shape parameters to complete the dynamic optimization and adjustment of the line shape, specifically including: When it is detected that the user directly modifies the entity object on the plane or vertical line drawing in the AutoCAD graphics interface, the GetSelection() function is used to obtain the entity object that the user interacted with in the AutoCAD graphics interface into the ObjectIdCollection selection set. The information of the interacted entity, including entity type, entity number and entity parameters, is re-transmitted to the line fitting calculation module. Then, the optimized line parameters are updated in the line fitting result chart.

6. An electronic device, characterized in that, The device includes: a processor and a memory; The memory is used to store one or more program instructions; The processor is configured to run one or more program instructions to perform the steps of the linear alignment calculation graphics visualization interactive method as described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • CN101165693A

  • CN102169511A