A modeling method and device based on railway transportation routes

By automatically extracting and processing attribute parameters in CAD graphics, a model of railway transportation lines is established, which solves the problem of inefficient manual parameters sorting in the existing technology, and achieves efficient and accurate model establishment.

CN114021242BActive Publication Date: 2025-02-14CHONGQING SAIDIQIZHI ARTIFICIAL INTELLIGENCE TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111430928.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-29
Publication Date
2025-02-14
Estimated Expiration
2041-11-29

AI Technical Summary

Technical Problem

When building a steel mill transportation path model, the CAD graphic parameters need to be manually sorted out, resulting in inefficiency and frequent errors.

Method used

A modeling method based on railway transportation lines is provided. By obtaining CAD graphics, extracting multiple attribute parameters, establishing a preliminary model, and processing the track objects in the preliminary model to obtain the final model. This method can automatically batch propose CAD graphics parameters and automatically create corresponding models.

Benefits of technology

It significantly improves the efficiency and accuracy of model establishment, and reduces the errors and time consumption of manual operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114021242B_ABST
    Figure CN114021242B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a modeling method and device based on a railway transportation line, and the modeling method based on a railway transportation line includes: obtaining a CAD drawing of the railway transportation line; extracting multiple attribute parameters included in the CAD drawing; establishing a preliminary model of the railway transportation line according to the multiple attribute parameters; the preliminary model includes multiple track objects; processing the multiple track objects in the preliminary model to obtain the final model of the railway transportation line. It can be seen that the implementation of this implementation method can automatically batch extract CAD drawing parameters, thereby significantly improving the efficiency and accuracy of model establishment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of molten iron transportation, and more specifically, to a modeling method and device based on railway transportation lines. Background Art

[0002] The main purpose of molten iron transportation is to transport molten iron produced by blast furnaces to steel mills. The actual path of the molten iron transportation is the railway track of the locomotive. However, the transportation path network of the steel mill is complex and huge. In order to cooperate with the testing of the dispatching system, a virtual simulation platform is usually used to test the function of the dispatching system. However, the current method is that the staff first manually organizes the CAD graphic parameters and then enters them into the virtual simulation platform to build the transportation path. It can be seen that this method will inevitably have efficiency and error problems. Summary of the invention

[0003] The purpose of the embodiments of the present application is to provide a modeling method and device based on railway transportation lines, which can automatically batch-propose CAD graphic parameters, thereby significantly improving the efficiency and accuracy of model building.

[0004] A first aspect of an embodiment of the present application provides a modeling method based on a railway transportation line, the method comprising:

[0005] Obtaining a CAD drawing of the railway transport route;

[0006] Extracting a plurality of attribute parameters included in the CAD drawing;

[0007] According to the plurality of attribute parameters, a preliminary model of the railway transport route is established; the preliminary model includes a plurality of track objects;

[0008] The plurality of track objects are processed in the preliminary model to obtain a final model of the railway transportation line.

[0009] In the above implementation process, the method can automatically extract attribute parameters such as line segment attribute parameters in CAD according to CAD graphics, and then build a preliminary model in PlantSimulation according to these attribute parameters, and create, locate and connect track objects in the preliminary model to obtain the final model. It can be seen that the method can automatically batch extract multiple attribute parameters in CAD graphics, and then automatically create a completely corresponding model, thereby automatically completing the model of the railway transportation line, and then effectively improving the efficiency and accuracy of model establishment through the method of automated modeling.

[0010] Furthermore, the step of extracting a plurality of attribute parameters included in the CAD graphic includes:

[0011] Simplifying the CAD graphics to obtain a path line diagram;

[0012] Extracting the vertex coordinates and line segment lengths of all line segments in the path line graph through a CAD plug-in;

[0013] Decomposing the path line graph to obtain a straight line line graph;

[0014] Extracting graphic attribute parameters of the straight line graph.

[0015] Furthermore, the step of establishing the preliminary model of the railway transport route according to the multiple attribute parameters includes:

[0016] Select a reference line segment in the graphic attribute parameters;

[0017] Setting a reference object corresponding to the reference line segment in a preset original model;

[0018] Taking the reference object as a reference, creating a track frame and a plurality of track objects of the railway transport line in the original model according to the graphic attribute parameters; the plurality of track objects correspond to all the line segments;

[0019] Calculate according to the vertex coordinates and line segment lengths of all the line segments to obtain a segment parameter table; and determine the relative position relationship between all the line segments;

[0020] Calculating coordinate parameters of the plurality of track objects according to the segment parameter table and the relative position relationship;

[0021] According to the graphic attribute parameters and the coordinate parameters, the coordinate positions of the plurality of track objects are set in the original model of the created track frame to obtain a preliminary model of the railway transport line.

[0022] Furthermore, before the step of calculating according to the vertex coordinates and line segment lengths of all the line segments to obtain a segment parameter table and determining the relative positional relationship between all the line segments, the method further includes:

[0023] Taking the reference object as a reference, scaling the track frame according to a preset scaling ratio;

[0024] The step of calculating according to the vertex coordinates and the line segment lengths of all the line segments to obtain a segment parameter table; and determining the relative position relationship between all the line segments comprises:

[0025] Calculation is performed based on the vertex coordinates and line segment lengths of all the line segments and a preset scaling ratio to obtain a segmentation parameter table; and the relative positional relationship between all the line segments is determined.

[0026] Furthermore, the step of processing the plurality of track objects in the preliminary model to obtain the final model of the railway transport line includes:

[0027] processing the plurality of track objects in the preliminary model;

[0028] Determining a plurality of spacing ranges between the plurality of track objects according to a head-to-tail coordinate relationship between the plurality of track objects;

[0029] According to the head-to-tail coordinate relationship and the multiple spacing ranges, a connection relationship between the multiple track objects is automatically created to obtain a final model of the railway transportation line.

[0030] Furthermore, the step of processing the plurality of track objects in the preliminary model comprises:

[0031] determining in the preliminary model whether the track object is an arc object;

[0032] When the track object is the arc object, the track object is parameter-adjusted according to the line parameter table corresponding to the track object in the plurality of attribute parameters, the set cutting angle, the center angle and the radius, and the modeling horizontal direction.

[0033] Furthermore, the step of processing the plurality of track objects in the preliminary model comprises:

[0034] determining in the preliminary model whether the track object is an arc object;

[0035] When the track object is not the arc object, parameters of the track object are adjusted according to a line parameter table corresponding to the track object in the plurality of attribute parameters, a set cutting angle and a length.

[0036] A second aspect of an embodiment of the present application provides a modeling device based on a railway transportation line, and the modeling device based on a railway transportation line includes:

[0037] An acquisition unit, used for acquiring a CAD drawing of the railway transport route;

[0038] An extraction unit, used for extracting a plurality of attribute parameters included in the CAD graphic;

[0039] A preliminary building unit, used to build a preliminary model of the railway transportation line according to the multiple attribute parameters; the preliminary model includes multiple track objects;

[0040] The modeling unit is used to process the multiple track objects in the preliminary model to obtain a final model of the railway transportation line.

[0041] In the above implementation process, the device can automatically batch extract multiple attribute parameters in the CAD graphics, and then automatically create a completely corresponding model, so as to automatically complete the model of the railway transportation line, and then effectively improve the efficiency and accuracy of model establishment through automated modeling methods.

[0042] Furthermore, the extraction unit comprises:

[0043] A simplification subunit, used for simplifying the CAD graphics to obtain a path line diagram;

[0044] An extraction subunit, used for extracting the vertex coordinates and line segment lengths of all line segments in the path line graph through a CAD plug-in;

[0045] An analysis subunit, used for decomposing the path line graph to obtain a straight line line graph;

[0046] The extraction subunit is further used to extract graphic attribute parameters of the straight line graph.

[0047] Furthermore, the initial construction unit includes:

[0048] A selection subunit, used for selecting a reference line segment in the graphic attribute parameter;

[0049] A setting subunit, used for setting a reference object corresponding to the reference line segment in a preset original model;

[0050] An initial construction subunit is used to create a track frame and a plurality of track objects of the railway transport line in the original model based on the reference object and the graphic attribute parameters; the plurality of track objects correspond to all the line segments;

[0051] A calculation subunit, used to calculate according to the vertex coordinates and line segment lengths of all the line segments to obtain a segment parameter table; and determine the relative position relationship between all the line segments;

[0052] The calculation subunit is further used to calculate the coordinate parameters of the plurality of track objects according to the segment parameter table and the relative position relationship;

[0053] The initial construction subunit is further used to set the coordinate positions of the multiple track objects in the original model of the created track frame according to the graphic attribute parameters and the coordinate parameters, so as to obtain a preliminary model of the railway transportation line.

[0054] Furthermore, the initial construction subunit is further used to scale the track frame according to a preset scaling ratio based on the reference object;

[0055] The calculation subunit is specifically used to calculate according to the vertex coordinates and line segment lengths of all the line segments and a preset scaling ratio to obtain a segmentation parameter table; and determine the relative position relationship between all the line segments.

[0056] Furthermore, the modeling unit includes:

[0057] a processing subunit, configured to process the plurality of track objects in the preliminary model;

[0058] A determination subunit, configured to determine a plurality of spacing ranges between the plurality of track objects according to a head-to-tail coordinate relationship between the plurality of track objects;

[0059] The modeling subunit is used to automatically create a connection relationship between the multiple track objects according to the head-to-tail coordinate relationship and the multiple spacing ranges to obtain a final model of the railway transportation line.

[0060] Furthermore, the processing subunit is specifically used to determine whether the track object is an arc object in the preliminary model; when the track object is an arc object, the track object is adjusted according to the line parameter table corresponding to the track object in the multiple attribute parameters, the setting of the cutting angle, the center angle and the radius, and the modeling horizontal direction.

[0061] Furthermore, the processing subunit is specifically used to determine whether the track object is an arc object in the preliminary model; when the track object is not an arc object, the track object is parameter-adjusted according to the line parameter table corresponding to the track object in the multiple attribute parameters, the set cutting angle and the length.

[0062] A third aspect of an embodiment of the present application provides an electronic device, including a memory and a processor, wherein the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute the modeling method based on railway transportation lines described in any one of the first aspect of the embodiment of the present application.

[0063] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium storing computer program instructions. When the computer program instructions are read and executed by a processor, the modeling method based on railway transportation lines described in any one of the first aspect of the embodiment of the present application is executed. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0065] Figure 1 A schematic diagram of a flow chart of a modeling method based on a railway transport route provided in an embodiment of the present application;

[0066] Figure 2 A schematic diagram of the structure of a modeling device based on a railway transportation line provided in an embodiment of the present application. DETAILED DESCRIPTION

[0067] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0068] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0069] Example 1

[0070] Please see Figure 1 , Figure 1 A schematic flow chart of a modeling method based on a railway transportation line is provided for an embodiment of the present application. The modeling method based on a railway transportation line includes:

[0071] S101. Obtain a CAD drawing of a railway transportation route.

[0072] In this embodiment, the CAD drawing in the method is a CAD drawing of a railway transportation line in a steel plant.

[0073] S102, simplifying the CAD graphics to obtain a path line diagram.

[0074] In this embodiment, after simplifying the CAD graphics, a path line diagram containing only path lines can be obtained.

[0075] S103, extracting the vertex coordinates and line segment lengths of all line segments in the path line graph through the CAD plug-in.

[0076] In this embodiment, the CAD plug-in is a secondary developed plug-in.

[0077] In this embodiment, the vertex coordinates and line segment lengths of all line segments in the path line graph can be extracted through the secondary developed CAD plug-in.

[0078] By implementing this embodiment, graphic parameters can be batch-proposed through the secondary developed CAD program plug-in, thereby improving the accuracy of simulation input data conversion.

[0079] In this embodiment, the method can store the vertex coordinates and line segment lengths of all extracted line segments in an Excel table, which is referred to as a first table in this embodiment.

[0080] S104, decomposing the path line graph to obtain a straight line line graph.

[0081] In this embodiment, the method can decompose the path line graph to obtain a straight line line graph including only straight lines.

[0082] In this embodiment, the path line graph includes various line segments, while the straight line graph may only include line segments in the horizontal or vertical direction. Alternatively, the straight line graph only includes longer line segments. In short, the method can filter out unwanted lines in the path line graph by decomposition, thereby obtaining a suitable straight line graph.

[0083] S105: extracting graphic attribute parameters of the straight line graph.

[0084] In this embodiment, the graphic attribute parameters include the overall layout of the straight line graph and all parameters of the straight lines.

[0085] In this embodiment, the method can store the extracted graphic attribute parameters in an Excel table, which is referred to as a second table in this embodiment.

[0086] By implementing this implementation method, it is possible to export parameter information of all transportation routes in the CAD drawing to form an Excel file, and then import it into the simulation platform in batches. Compared with manual individual entry, batch processing improves the overall processing speed and saves time; at the same time, it avoids errors such as data dislocation that are prone to occur during manual entry, thereby improving the accuracy of input data of the simulation platform.

[0087] It can be seen that the real-time steps S101 to S105 can automatically extract CAD graphic parameters, thereby greatly reducing the time for importing the graphic attributes of the path into the simulation platform.

[0088] S106. Select a reference line segment in the graphic attribute parameters.

[0089] In this embodiment, before this step, the method sets up an empty model in the digital logistics simulation platform PlantSimulation, which is called the original model, and imports the above-mentioned first table and second table into the original model.

[0090] In this embodiment, the method selects a reference line segment from the graphic attribute parameters for reference.

[0091] S107: Setting a reference object corresponding to the reference line segment in the preset original model.

[0092] In this embodiment, the original model is an empty model in the digital logistics simulation platform PlantSimulation.

[0093] In this embodiment, the method sets a reference object corresponding to the reference line segment in PlantSimulation. Since the final model is to be automatically generated according to the CAD drawing, the method needs to determine a reference object in the original model. For example, when modeling is performed from left to right based on the reference line segment according to the CAD drawing, the method can perform modeling from left to right based on the reference object.

[0094] In this embodiment, setting a reference object is conducive to accurate automated modeling, and the model can also be scaled and adjusted according to the reference object.

[0095] S108. Using the reference object as a reference, creating a track frame and multiple track objects of the railway transportation line in the original model according to the graphic attribute parameters; the multiple track objects correspond to all the line segments.

[0096] In this embodiment, the method can create a track framework of a railway transportation line according to the graphic attribute parameters.

[0097] In this embodiment, because the image attribute parameters include reference line segments and the reference object is set in the original model, the relationship between the reference object and other objects is determined according to the relationship between the straight lines in the image attribute parameters, and the track framework of the railway transportation line can be created.

[0098] In this embodiment, the multiple track objects created at this time are not installed in the track frame. In other words, the track frame only has the approximate positions of the track objects, and no actual track objects are established.

[0099] In this embodiment, multiple track objects can be stored anywhere, such as in a cache.

[0100] In this embodiment, multiple track objects may be class objects in this process.

[0101] S109, scaling the track frame based on the reference object and a preset scaling ratio.

[0102] In this embodiment, the method can scale the track frame, and can also scale the reference object and the track object.

[0103] S110, performing calculations according to the vertex coordinates and line segment lengths of all line segments and a preset scaling ratio to obtain a segmentation parameter table; and determining the relative positional relationship between all line segments.

[0104] In this embodiment, the segment parameter table includes object length values ​​of all track objects.

[0105] S111. Calculate coordinate parameters of multiple track objects according to the segment parameter table and the relative position relationship.

[0106] In this embodiment, the method can determine the coordinate parameters of all track objects based on the reference object.

[0107] In this embodiment, the coordinate parameters are the X coordinate and Y coordinate of the track object in PlantSimulation.

[0108] S112. According to the graphic attribute parameters and the coordinate parameters, the coordinate positions of multiple track objects are set in the original model of the created track framework to obtain a preliminary model of the railway transportation line.

[0109] In this embodiment, the method sets the track object in the track frame according to the actual coordinates to obtain a preliminary model with the track object.

[0110] S113. Processing multiple track objects in the preliminary model.

[0111] As an optional implementation, the step of processing a plurality of track objects in the preliminary model includes:

[0112] In the preliminary model, determine whether the track object is an arc object;

[0113] When the track object is an arc object, the track object is adjusted according to the line parameter table corresponding to the track object in multiple attribute parameters, the setting of the chamfer angle, the center angle and the radius, and the modeling horizontal direction.

[0114] In this embodiment, the method can adjust the corresponding direction according to the modeling horizontal direction.

[0115] In this embodiment, the modeling horizontal direction is from left to right (positive direction of the X-axis) or from right to left (negative direction of the X-axis).

[0116] As an optional implementation, the step of processing a plurality of track objects in the preliminary model includes:

[0117] In the preliminary model, determine whether the track object is an arc object;

[0118] When the track object is not an arc object, parameters of the track object are adjusted according to a line parameter table corresponding to the track object in a plurality of attribute parameters, a set chamfer angle and a length.

[0119] By implementing this embodiment, the degree of the central angle of the circle can be reversely calculated through the length and radius of the arc, so that the calculation result can be accurate to 4 decimal places, providing more accurate input data for the simulation platform and improving the accuracy of the overall simulation data.

[0120] S114. Determine multiple spacing ranges between the multiple track objects according to the head-to-tail coordinate relationship between the multiple track objects.

[0121] S115. Automatically create a connection relationship between multiple track objects according to the head-to-tail coordinate relationship and multiple spacing ranges to obtain a final model of the railway transportation line.

[0122] In this embodiment, all track models can be connected according to the head-to-tail coordinate relationship and multiple spacing ranges to obtain a final model of the railway transportation line.

[0123] It can be seen that the implementation of this implementation method can achieve rapid synchronous update and iteration in the simulation platform PlantSimulation when the path graph changes, thereby realizing rapid changes in the corresponding project.

[0124] In the embodiment of the present application, the execution subject of the method can be a computing device such as a computer or a server, and no limitation is made in this embodiment.

[0125] In the embodiment of the present application, the execution subject of the method can also be a smart device such as a smart phone, a tablet computer, etc., and there is no limitation on this in the present embodiment.

[0126] It can be seen that the modeling method based on railway transportation routes described in this embodiment can automatically identify the path direction defined by the simulation platform, and then automatically generate the path model by converting the CAD graphic data, compared with manually creating the path model; at the same time, the logical connection relationship of the path model can be automatically completed through data recognition. Compared with manual creation, when the amount of graphic data is large, the efficiency of simulation modeling can be significantly improved, and errors caused by manual operation can be avoided.

[0127] Example 2

[0128] Please see Figure 2 , Figure 2 The following is a schematic diagram of a modeling device based on a railway transportation line provided in an embodiment of the present application. Figure 2 As shown, the modeling device based on the railway transportation line includes:

[0129] An acquisition unit 210 is used to acquire a CAD drawing of a railway transportation route;

[0130] An extraction unit 220, used to extract a plurality of attribute parameters included in the CAD graphic;

[0131] The initial construction unit 230 is used to establish a preliminary model of the railway transportation line according to a plurality of attribute parameters; the preliminary model includes a plurality of track objects;

[0132] The modeling unit 240 is used to process multiple track objects in the preliminary model to obtain a final model of the railway transportation line.

[0133] As an optional implementation, the extraction unit 220 includes:

[0134] The simplification subunit 221 is used to simplify the CAD graphics to obtain a path line diagram;

[0135] The extraction subunit 222 is used to extract the vertex coordinates and line segment lengths of all line segments in the path line graph through the CAD plug-in;

[0136] The analyzing subunit 223 is used to decompose the path line graph to obtain a straight line line graph;

[0137] The extraction subunit 222 is further used to extract graphic attribute parameters of the straight line graph.

[0138] As an optional implementation, the initial creation unit 230 includes:

[0139] A selection subunit 231, used to select a reference line segment in the graphic attribute parameters;

[0140] A setting subunit 232, used to set a reference object corresponding to the reference line segment in a preset original model;

[0141] The initial construction subunit 233 is used to create a track frame and a plurality of track objects of the railway transport line in the original model based on the reference object and according to the graphic attribute parameters; the plurality of track objects correspond to all line segments;

[0142] The calculation subunit 234 is used to calculate according to the vertex coordinates and line segment lengths of all line segments to obtain a segment parameter table; and determine the relative position relationship between all line segments;

[0143] The calculation subunit 234 is further used to calculate the coordinate parameters of the plurality of track objects according to the segment parameter table and the relative position relationship;

[0144] The initial construction subunit 233 is also used to set the coordinate positions of multiple track objects in the original model of the created track framework according to the graphic attribute parameters and the coordinate parameters, so as to obtain a preliminary model of the railway transportation line.

[0145] As an optional implementation, the initial construction subunit 233 is further used to scale the track frame according to a preset scaling ratio based on the reference object;

[0146] The calculation subunit 234 is specifically used to calculate according to the vertex coordinates and line segment lengths of all line segments and a preset scaling ratio to obtain a segmentation parameter table; and determine the relative position relationship between all line segments.

[0147] As an optional implementation, the modeling unit 240 includes:

[0148] a processing subunit 241 for processing a plurality of track objects in the preliminary model;

[0149] A determination subunit 242, configured to determine a plurality of spacing ranges between the plurality of track objects according to a head-to-tail coordinate relationship between the plurality of track objects;

[0150] The modeling subunit 243 is used to automatically create a connection relationship between multiple track objects according to the head-to-tail coordinate relationship and multiple spacing ranges to obtain a final model of the railway transportation line.

[0151] As an optional implementation, the processing subunit 241 is specifically used to determine whether the track object is an arc object in the preliminary model; when the track object is an arc object, the track object parameters are adjusted according to the line parameter table corresponding to the track object in multiple attribute parameters, the setting of the cutting angle, the center angle and the radius, and the horizontal direction of modeling.

[0152] As an optional implementation, the processing subunit 241 is also specifically used to determine in the preliminary model whether the track object is an arc object; when the track object is not an arc object, the track object parameters are adjusted according to the line parameter table corresponding to the track object in multiple attribute parameters, the set cutting angle and the length.

[0153] In the embodiments of the present application, the explanation of the modeling device based on the railway transportation line can refer to the description in Embodiment 1, and no further elaboration will be given in this embodiment.

[0154] It can be seen that the modeling device based on the railway transportation line described in this embodiment can automatically batch extract multiple attribute parameters in the CAD graphics, and then automatically create a completely corresponding model, thereby automatically completing the model of the railway transportation line, and then effectively improving the efficiency and accuracy of model establishment through the automated modeling method.

[0155] An embodiment of the present application provides an electronic device, including a memory and a processor, wherein the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute any one of the modeling methods based on railway transportation lines in Embodiment 1 of the present application.

[0156] An embodiment of the present application provides a computer-readable storage medium storing computer program instructions. When the computer program instructions are read and executed by a processor, any modeling method based on railway transportation lines in Embodiment 1 of the present application is executed.

[0157] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0158] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

[0159] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0160] The above description is only an embodiment of the present application and is not intended to limit the scope of protection of the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application. It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.

[0161] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0162] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

Claims

1. A modeling method based on railway transportation routes, characterized in that: The method comprises: Obtaining a CAD drawing of the railway transport route; Extracting a plurality of attribute parameters included in the CAD drawing; According to the plurality of attribute parameters, a preliminary model of the railway transport route is established; the preliminary model includes a plurality of track objects; Processing the plurality of track objects in the preliminary model to obtain a final model of the railway transport route; The step of processing the plurality of track objects in the preliminary model to obtain the final model of the railway transport line comprises: processing the plurality of track objects in the preliminary model; Determining a plurality of spacing ranges between the plurality of track objects according to a head-to-tail coordinate relationship between the plurality of track objects; Automatically create a connection relationship between the multiple track objects according to the head-to-tail coordinate relationship and the multiple spacing ranges to obtain a final model of the railway transportation line; The step of establishing the preliminary model of the railway transport route according to the multiple attribute parameters comprises: Select a reference line segment from the extracted graphic attribute parameters; Setting a reference object corresponding to the reference line segment in a preset original model; Taking the reference object as a reference, creating a track frame and a plurality of track objects of the railway transport line in the original model according to the graphic attribute parameters; the plurality of track objects correspond to all line segments; Calculate according to the vertex coordinates and line segment lengths of all the line segments to obtain a segment parameter table; and determine the relative position relationship between all the line segments; Calculating coordinate parameters of the plurality of track objects according to the segment parameter table and the relative position relationship; According to the graphic attribute parameters and the coordinate parameters, the coordinate positions of the plurality of track objects are set in the original model of the created track frame to obtain a preliminary model of the railway transport line.

2. The modeling method based on railway transportation routes according to claim 1 is characterized in that: The step of extracting a plurality of attribute parameters included in the CAD graphic comprises: Simplifying the CAD graphics to obtain a path line diagram; Extracting the vertex coordinates and line segment lengths of all line segments in the path line graph through a CAD plug-in; Decomposing the path line graph to obtain a straight line line graph; Extracting graphic attribute parameters of the straight line graph.

3. The modeling method based on railway transportation routes according to claim 1 is characterized in that: The calculation is performed based on the vertex coordinates and line segment lengths of all the line segments to obtain a segment parameter table; Before the step of determining the relative positional relationship between all the line segments, the method further comprises: Taking the reference object as a reference, scaling the track frame according to a preset scaling ratio; The step of calculating according to the vertex coordinates and the line segment lengths of all the line segments to obtain a segment parameter table; and determining the relative position relationship between all the line segments comprises: Calculation is performed based on the vertex coordinates and line segment lengths of all the line segments and a preset scaling ratio to obtain a segmentation parameter table; and the relative positional relationship between all the line segments is determined.

4. The modeling method based on railway transportation routes according to claim 1 is characterized in that: The step of processing the plurality of track objects in the preliminary model comprises: determining in the preliminary model whether the track object is an arc object; When the track object is the arc object, the track object is parameter-adjusted according to the line parameter table corresponding to the track object in the plurality of attribute parameters, the set cutting angle, the center angle and the radius, and the modeling horizontal direction.

5. The modeling method based on railway transportation routes according to claim 1 is characterized in that: The step of processing the plurality of track objects in the preliminary model comprises: determining in the preliminary model whether the track object is an arc object; When the track object is not the arc object, parameters of the track object are adjusted according to a line parameter table corresponding to the track object in the plurality of attribute parameters, a set cutting angle and a length.

6. A modeling device based on railway transportation lines, characterized in that: The modeling device based on the railway transportation line includes: An acquisition unit, used for acquiring a CAD drawing of the railway transport route; An extraction unit, used for extracting a plurality of attribute parameters included in the CAD graphic; A preliminary building unit, used to build a preliminary model of the railway transportation line according to the multiple attribute parameters; the preliminary model includes multiple track objects; A modeling unit, configured to process the plurality of track objects in the preliminary model to obtain a final model of the railway transport route; Wherein, the modeling unit comprises: a processing subunit, configured to process the plurality of track objects in the preliminary model; A determination subunit, configured to determine a plurality of spacing ranges between the plurality of track objects according to a head-to-tail coordinate relationship between the plurality of track objects; A modeling subunit, configured to automatically create a connection relationship between the plurality of track objects according to the head-to-tail coordinate relationship and the plurality of spacing ranges, so as to obtain a final model of the railway transport line; Wherein, the initial construction unit includes: A selection subunit is used to select a reference line segment from the extracted graphic attribute parameters; A setting subunit, used for setting a reference object corresponding to the reference line segment in a preset original model; An initial construction subunit is used to create a track frame and a plurality of track objects of the railway transport line in the original model based on the reference object and the graphic attribute parameters; the plurality of track objects correspond to all line segments; A calculation subunit, used to calculate according to the vertex coordinates and line segment lengths of all the line segments to obtain a segment parameter table; and determine the relative position relationship between all the line segments; The calculation subunit is further used to calculate the coordinate parameters of the plurality of track objects according to the segment parameter table and the relative position relationship; The initial construction subunit is also used to set the coordinate positions of the multiple track objects in the original model of the created track framework according to the graphic attribute parameters and the coordinate parameters, so as to obtain a preliminary model of the railway transportation line.

7. An electronic device, characterized in that: The electronic device comprises a memory and a processor, the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute the modeling method based on railway transportation lines according to any one of claims 1 to 5.

8. A readable storage medium, characterized in that: The readable storage medium stores computer program instructions, and when the computer program instructions are read and executed by a processor, the modeling method based on railway transportation lines according to any one of claims 1 to 5 is executed.

Citation Information

Patent Citations

  • Method for acquiring logistics transportation simulation path of digital factory

    CN111274680A