Method and system for creating parameterized beam section

The cross-section of the railway bridge beam is created through parameterization technology, and CAD graphics are generated using multiple parameter lines and correlation relationships, which solves the problem of low efficiency of existing design methods and achieves efficient, flexible and intelligent design.

CN120372748APending Publication Date: 2025-07-25CHINA RAILWAY FIRST SURVEY & DESIGN INST GRP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510398690.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-31
Publication Date
2025-07-25

AI Technical Summary

Technical Problem

In existing railway bridge projects, the beam section design method is relatively low in efficiency, the drawing labor intensity is high, the design flexibility and customization are not strong, and the design quality is not high.

Method used

Using parameterization technology, a variety of parameter lines are created in advance, including horizontal lines, vertical lines, connecting lines, chamfering lines, coordinate lines and turning lines, and the outer contour lines are divided, and the correlation relationship between parameters is established to generate a parameterized beam section CAD pattern.

Benefits of technology

It improves the efficiency and quality of the design of railway bridge beams, reduces the complexity of manual operations, realizes the flexibility and intelligence of design, and improves the accuracy and comprehensiveness of design information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120372748A_ABST
    Figure CN120372748A_ABST
Patent Text Reader

Abstract

The invention discloses a parameterized beam section creation method and system, and the method comprises the steps: creating various types of parameter lines in advance, and defining each type of parameter line through a plurality of parameters; the method comprises the following steps: dividing the cross section of a railway beam part into an outer contour line and an inner contour line, selecting pre-created parameter lines, assigning parameters of each parameter line and establishing an association relationship among the parameters, and respectively constructing the outer contour line and the inner contour line; and detecting the obtained outer contour line and the inner contour line, and generating a parameterized beam section CAD graph comprising the outer contour line and the inner contour line after the detection is correct. According to the method, the characteristics of railway bridge engineering are combined, through bridge type-component-section three-level data decomposition, a parameterization algorithm is written by using a C # programming language, the geometrical shape of the railway beam section is automatically created, the section shape is directly updated by modifying parameter values, the manual operation complexity is reduced, and the construction efficiency is improved. And the design quality and efficiency of the railway bridge part are effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of bridge engineering, and particularly relates to a method and system for creating a parametric beam cross-section. Background Art

[0002] In the design process of railway bridge engineering, the design of the beam cross-section is a crucial link, and its complexity and diversity pose extremely high requirements for design efficiency and accuracy. Traditional cross-section design methods often rely on manual operations, which are cumbersome and inefficient, lack the ability to optimize the linkage of global parameters, and are difficult to meet the needs of modern bridge design for rapid response and accurate calculation.

[0003] With the cross-integration of multiple fields such as bridge engineering, computer science, mathematical optimization, and intelligent construction, in order to improve the design efficiency and automation level of railway bridges, break through the bottleneck of traditional design, and promote the process of engineering standardization, a method and system for creating a parametric beam cross-section are studied, aiming to improve the efficiency, accuracy, flexibility, and intelligence level of beam cross-section design through parametric technology, promote the integration of design, manufacturing, and construction, and bring significant technological progress and economic benefits to the field of railway bridge engineering. Summary of the Invention

[0004] The present application provides a method and system for creating a parametric beam cross-section to solve the problems of low efficiency of the existing design method for railway bridge beam cross-sections, large drawing labor intensity, weak flexibility and customizability in design, and low design quality.

[0005] According to a first aspect, in one embodiment, a method for creating a parametric beam cross-section is provided, and the method includes:

[0006] Pre-create multiple types of parametric lines, and each type of parametric line is defined by multiple parameters;

[0007] Divide the composition of the railway beam cross-section into an outer contour line and an inner contour line, and respectively construct the outer contour line and the inner contour line by selecting the pre-created parametric lines, assigning values to the parameters of each parametric line, and establishing the correlation relationship between the parameters.

[0008] Detect the obtained outer contour line and inner contour line, and after the detection is correct, generate a parametric beam cross-section CAD drawing including the outer contour line and the inner contour line.

[0009] Further, pre-creating multiple types of parametric lines, and each type of parametric line is defined by multiple parameters, specifically includes:

[0010] The created parametric lines include horizontal lines, vertical lines, connecting lines, chamfer lines, coordinate lines, and turning lines.

[0011] Further, multiple types of parametric lines are created in advance, and each type of parametric line is defined by multiple parameters, specifically including:

[0012] The horizontal line is a parametric line parallel to the X-axis and capable of vertical translation. The parameters include: BasicPoint, which is the base point, the origin of the local coordinate system of the parametric line; X_Length, the horizontal length of the parametric line, negative to the left of the base point and positive to the right of the base point; Y_Translation, the vertical translation distance of the parametric line from the base point, positive above the base point and negative below the base point;

[0013] The vertical line is a parametric line parallel to the Y-axis and capable of horizontal translation. The parameters include: BasicPoint, which is the base point, the origin of the local coordinate system of the parametric line; X_Translation, the horizontal translation distance of the parametric line from the base point, negative to the left of the base point and positive to the right of the base point; Y_Length, the vertical length of the parametric line, positive above the base point and negative below the base point;

[0014] The connection line is a parametric line connecting any two points. The parameters include: StartPoint, the starting point of the parametric line; EndPoint, the ending point of the parametric line;

[0015] The chamfer line is a parametric line controlled by the local coordinates of the base point and the ending point. The parameters include: BasicPoint, which is the base point, the starting point, the origin of the local coordinate system; EndPoint_X, the local coordinate X of the ending point of the parametric line relative to the base point; EndPoint_Y, the local coordinate Y of the ending point of the parametric line relative to the base point;

[0016] The coordinate line is a parametric line controlled by the coordinates of the starting point and the ending point. The parameters include: StartPoint_X, the X coordinate of the starting point of the parametric line; StartPoint_Y, the Y coordinate of the starting point of the parametric line; EndPoint_X, the X coordinate of the ending point of the parametric line; EndPoint_Y, the Y coordinate of the ending point of the parametric line;

[0017] The turning line is a parametric line controlled by the base point and multiple turning points. The parameters include: BasicPoint, which is the base point, the origin of the local coordinate system of the parametric line; TP_X, the X coordinate of the turning point; TP_Y, the Y coordinate of the turning point; TP_R, the bending radius of the turning point.

[0018] Further, the outer contour line and the inner contour line are respectively constructed by selecting the parametric lines created in advance, specifically including:

[0019] First, construct half of the outer contour line or the inner contour line, and create the other half using the mirroring method to complete the creation of the entire outer contour line or the inner contour line.

[0020] Further, by selecting pre-created parametric lines, the outer contour line and the inner contour line are respectively constructed, specifically including:

[0021] For a multi-chamber box-shaped cross-section, multiple inner contour lines are created, and it is agreed that the drawing order of the inner contour lines is from left to right, and the inner contour lines are numbered in sequence.

[0022] Further, the obtained outer contour line and inner contour line are detected, specifically including:

[0023] Check whether the inner and outer contour lines are closed and intersect;

[0024] Check the shapes of the inner and outer contour lines, and judge whether the created contour lines meet the design requirements by previewing the cross-section shape;

[0025] Check the correlation relationship between parameters. By changing the values of the main parameters, check whether the change of the cross-section shape meets the design requirements.

[0026] Further, to check whether the inner and outer contour lines are closed and intersect, specifically including:

[0027] Detect whether the contour line is closed: First, extract the parameter values according to the parameter names or calculate them according to the formula, and calculate the endpoint coordinates of the parametric line; then find the nearest endpoint of the end point of the first line, calculate the distance between the two endpoints and judge whether it is less than the tolerance value. If the tolerance is met, extract the other endpoint of the parametric line containing the nearest endpoint and find its nearest endpoint; starting from the second line, use a loop statement to judge whether the endpoints of the two lines are connected end to end in the method of finding the nearest endpoint until the last endpoint of the last line is connected to the starting point of the first line; finally, if all the lines are connected end to end, it is judged that the contour line is closed, otherwise it is judged as not closed, and the user is prompted with the line numbers and endpoint numbers that need to be checked;

[0028] Detect whether the contour lines intersect: Use each parametric line to calculate and compare with other parametric lines one by one to judge whether there are other intersection points except the endpoints, or whether there are 3 or more endpoint coordinates that are the same. If they intersect, a warning will be popped up to prompt the user with the line numbers and endpoint numbers that need to be checked.

[0029] According to the second aspect, in one embodiment, a creation system for a parametric beam cross-section is provided, and the system includes:

[0030] A parametric line creation module, which is used to pre-create various types of parametric lines, and each type of parametric line is defined by multiple parameters;

[0031] A contour line construction module, which is used to divide the composition of the railway beam cross-section into an outer contour line and an inner contour line. By selecting pre-created parametric lines, assigning values to the parameters of each parametric line and establishing the correlation relationship between the parameters, the outer contour line and the inner contour line are respectively constructed;

[0032] A cross-section generation module is configured to detect the obtained outer contour line and inner contour line, and generate a parametric beam cross-section CAD drawing including the outer contour line and the inner contour line after the detection is correct.

[0033] According to a third aspect, in one embodiment, an electronic device is provided, and the device includes: 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 execute the steps of a method for creating a parametric beam cross-section as described in any one of the above.

[0036] According to a fourth aspect, in one embodiment, a computer-readable storage medium is provided, and a computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, the steps of a method for creating a parametric beam cross-section as described in any one of the above are implemented.

[0037] The present application provides a method and system for creating a parametric beam cross-section. Multiple types of parametric lines are created in advance, and each type of parametric line is defined by multiple parameters; the composition of the railway beam cross-section is divided into an outer contour line and an inner contour line. By selecting the parametric lines created in advance, assigning values to the parameters of each parametric line, and establishing the association relationship between the parameters, the outer contour line and the inner contour line are respectively constructed; the obtained outer contour line and inner contour line are detected, and a parametric beam cross-section CAD drawing including the outer contour line and the inner contour line is generated after the detection is correct. The present application combines the characteristics of railway bridge engineering, decomposes the data at three levels of bridge type-component-cross-section, writes a parametric algorithm using the C# programming language, realizes the automatic creation of the geometric shape of the railway beam cross-section, directly converts the design data into a CAD drawing, directly updates the cross-section shape by modifying the parameter values, and reduces the complexity of manual operations; it can intelligently identify different parts of the commonly used cross-sections of railway beams and mark the geometric dimensions, effectively improving the more comprehensive and accurate expression of design information; it has the characteristics of strong practicability, simple operation, refined data, wide application range, etc.; independent user interfaces are developed according to different functions, and digital intelligence functions are added to implement error reporting and error correction of data, effectively improving the design quality and efficiency of railway bridge beams. Description of the Drawings

[0038] Figure 1 It is a flowchart of a method for creating a parametric beam cross-section provided by an embodiment of the present invention;

[0039] Figure 2 It is a specific implementation flowchart of a method for creating a parametric beam cross-section provided by an embodiment of the present invention;

[0040] Figure 3 Schematic diagram of parameter creation in a method for creating a parametric beam cross-section provided by an embodiment of the present invention;

[0041] Figure 4 Schematic diagram of parameter set in a method for creating a parametric beam cross-section provided by an embodiment of the present invention;

[0042] Figure 5 Schematic diagram of cross-section template editor in a method for creating a parametric beam cross-section provided by an embodiment of the present invention;

[0043] Figure 6 Schematic diagram of profile line editor in a method for creating a parametric beam cross-section provided by an embodiment of the present invention;

[0044] Figure 7 Schematic diagram of a single-cell and single-web created in a method for creating a parametric beam cross-section provided by an embodiment of the present invention;

[0045] Figure 8 Overall architecture diagram of a system for creating a parametric beam cross-section provided by an embodiment of the present invention. Detailed implementation manners

[0046] The present invention will be further described in detail below in conjunction with the accompanying drawings through specific implementation manners. Similar elements in different implementation manners are labeled with related similar element numbers. In the following implementation manners, many detailed descriptions are provided to enable a better understanding of the present application. However, those skilled in the art can easily recognize that some of the features can be omitted in different situations, or can be replaced by other elements, materials, or methods. In some cases, some operations related to the present application are not shown or described in the specification to avoid overwhelming the core part of the present application with excessive descriptions. For those skilled in the art, it is not necessary to describe these related operations in detail, and they can fully understand the related operations based on the description in the specification and the general technical knowledge in the art.

[0047] In addition, the features, operations, or characteristics described in the specification can be combined in any appropriate manner to form various implementation manners. At the same time, the steps or actions in the method description can also be reordered or adjusted in an obvious manner by those skilled in the art. Therefore, the various sequences in the specification and drawings are only for clearly describing a certain embodiment and do not mean that they are necessary sequences, unless it is stated that a certain sequence must be followed.

[0048] A method for creating a parametric beam cross-section provided by the first embodiment of the present invention is described below in conjunction with Figure 1 andFigure 2 A detailed description will be given.

[0049] As Figure 1 shown, in step S100, multiple types of parametric lines are pre-created, and each type of parametric line is defined by multiple parameters.

[0050] Specifically, the above steps include: In this embodiment, the created parametric lines include horizontal lines, vertical lines, connection lines, chamfer lines, coordinate lines, and turning lines.

[0051] The common cross-section types of railway beams mainly include box-shaped, T-shaped, I-shaped, and U-shaped, etc. Analyzing these common cross-section types, both the outer contour and the inner contour are a closed polyline. This closed polyline can include lines such as horizontal lines, vertical lines, and chamfer lines.

[0052] The parametric beam cross-section in this embodiment can be created using 6 types of parametric lines, including horizontal lines, vertical lines, connection lines, chamfer lines, coordinate lines, and turning lines. The definition and parameter description of each type of parametric line are as follows:

[0053] 1. Horizontal Line

[0054] The line type name is HorizontalLine, which is a parametric line parallel to the X-axis and can be vertically translated. The Y values of the starting point and the ending point are the same, and the X value of the starting point is the same as that of the base point. Its parameters include:

[0055] BasicPoint - The origin of the local coordinate system of the parametric line.

[0056] X_Length - The horizontal length of the parametric line, negative to the left of the base point and positive to the right of the base point.

[0057] Y_Translation - The vertical translation distance of the parametric line from the base point, positive above the base point and negative below the base point.

[0058] 2. Vertical Line

[0059] The line type name is VerticalLine, which is a parametric line parallel to the Y-axis and can be horizontally translated. The X values of the starting point and the ending point are the same, and the Y value of the starting point is the same as that of the base point. Its parameters include:

[0060] BasicPoint - The origin of the local coordinate system of the parametric line.

[0061] X_Translation - The horizontal translation distance of the parametric line from the base point, negative to the left of the base point and positive to the right of the base point.

[0062] Y_Length - The vertical length of the parametric line, positive above the base point and negative below the base point.

[0063] 3. Chamfer Line

[0064] The line type name is ChamferLine, which is a parametric line controlled by the local coordinates of the base point and the end point. The base point is the starting point of the parametric line. The starting point is the origin of the local coordinate system of the parametric line. Its parameters include:

[0065] BasicPoint - The base point, the starting point, the origin of the local coordinate system.

[0066] EndPoint_X - The local coordinate X of the end point of the parametric line relative to the base point.

[0067] EndPoint_Y - The local coordinate Y of the end point of the parametric line relative to the base point.

[0068] 4. Link Line

[0069] The line type name is LinkLine, which is a parametric line connecting any two points. Its parameters include:

[0070] StartPoint - The starting point of the parametric line.

[0071] EndPoint - The end point of the parametric line.

[0072] 5. Coordinate Line

[0073] The line type name is CoordinateLine, which is a parametric line controlled by the coordinates of the starting point and the end point. The origin of the coordinates is the origin of the cross-section coordinate system. Its parameters include:

[0074] StartPoint_X - The X coordinate of the starting point of the parametric line.

[0075] StartPoint_Y - The Y coordinate of the starting point of the parametric line.

[0076] EndPoint_X - The X coordinate of the end point of the parametric line.

[0077] EndPoint_Y - The Y coordinate of the end point of the parametric line.

[0078] 6. StaEndPolyline

[0079] The line type name is StaEndPolyline, which is a parametric line controlled by the base point and multiple turning points. The control elements of the turning points include X, Y coordinates and bending radius, and can be generated by importing CAD lines. Its parameters include:

[0080] BasicPoint - The base point, the origin of the local coordinate system of the parametric line.

[0081] TP_X - The X coordinate of the turning point.

[0082] TP_Y - The Y coordinate of the turning point.

[0083] TP_R - The bending radius of the turning point.

[0084] As Figure 1 shown, in step S200, the cross - section composition of the railway beam is divided into an outer contour line and an inner contour line. By selecting pre - created parametric lines, assigning parameters to each parametric line, and establishing the correlation relationship between parameters, the outer contour line and the inner contour line are respectively constructed.

[0085] In this embodiment, parametric lines such as horizontal lines, vertical lines, and chamfer lines with multiple parameters are created, and then appropriate parametric lines are selected to form closed and parametrically variable polylines of different shapes. The logical relationship between parameters is established through formulas or algorithms, thereby creating a parametric contour line to generate a parametric beam cross - section.

[0086] The commonly used box - shaped cross - section of the railway beam can be decomposed into an outer contour line and one (single - cell) or multiple (multi - cell) inner contour lines. The inner and outer contour lines are separately created as a closed parametric line, and then different parameter variables are associated with the parameters in the parametric line. By adjusting the parameter variable values, the change of the cross - section shape can be quickly realized.

[0087] Define the necessary parameters. The box - shaped cross - section can be divided into common components such as the top plate, web, and bottom plate according to different parts. Therefore, to make the parameters more readable, the names of the components can be appended to the parameter names, such as the cross - section height, top - plate thickness, bottom - plate thickness, and horizontal length of the top - plate chamfer, as Figure 3 and Figure 4 shown.

[0088] Based on Figure 5 、 Figure 6 , the creation process of a box - shaped parametric beam cross - section in this embodiment is specifically as follows:

[0089] 1) Create the outer contour parameter line. First, create a HorizontalLine (horizontal line) with the serial number L1. The BasicPoint parameter of line L1 is associated with the section origin, the X_Length parameter is associated with the horizontal change length of the left section, and the Y_Translation parameter takes a zero value. Create a turning line with the serial number L2. The BasicPoint parameter of line L2 is associated with point E of L1. The X and Y coordinates and the bending radius of the turning point control element can be directly input with the design values or generated using CAD lines, which include the left sidewalk, drainage slope, cantilever, etc. Then create another HorizontalLine (horizontal line) with the serial number L3. The BasicPoint parameter of the horizontal line is associated with the section origin, the X_Length parameter is associated with half of the bottom horizontal section width of the floor slab, and the Y_Translation parameter is associated with the distance from the origin to the bottom of the floor slab. Then create a ChamferLine (chamfer line) with the serial number L4. The BasicPoint parameter of line L4 is associated with point E of L3. The EndPoint_X parameter is associated with the horizontal length of the floor slab chamfer, and the EndPoint_Y parameter is associated with the vertical height of the floor slab chamfer. Then create a LinkLine (connection line) with the serial number L5. The StartPoint parameter of line L5 is associated with point E of L2, and the EndPoint parameter is associated with point S of L4. Use L1 to L5 to complete the creation of half of the outer contour line, and the other half can be created using the mirror method to complete the creation of the entire outer contour parameter line.

[0090] 2) Create inner contour parameter lines. The inner contour lines can control the thickness of the top plate, bottom plate, and web. Create a HorizontalLine (horizontal line) with the serial number N1. The X_Length parameter of line N1 is associated with the width of the horizontal section at the bottom of the top plate, and the Y_Translation parameter is associated with the distance from the top of the top plate to the bottom of the top plate to achieve parametric control of the thickness of the top plate. Create a ChamferLine (chamfer line) with the serial number N2. The BasicPoint parameter of line N2 is associated with point E of N1, the EndPoint_X parameter is associated with the X coordinate of the top chamfer, and the EndPoint_Y parameter is associated with the Y coordinate of the top chamfer. Then create another HorizontalLine (horizontal line) with the serial number N3. The X_Length parameter of line N3 is associated with the width of the horizontal section at the bottom of the bottom plate, and the Y_Translation parameter is associated with the distance from the origin to the bottom of the bottom plate to achieve parametric control of the thickness of the bottom plate. Then create another ChamferLine (chamfer line) with the serial number N4. The BasicPoint parameter of line N4 is associated with point E of N3, the EndPoint_X parameter is associated with the X coordinate of the bottom chamfer, and the EndPoint_Y parameter is associated with the Y coordinate of the bottom chamfer. Use a LinkLine (connecting line) with the serial number N5. The StartPoint parameter of line N5 is associated with point E of N2, and the EndPoint parameter is associated with point E of N4. As the values of the X_Length parameters of lines N1 and N3 change, parametric control of the thickness of the web is achieved. Similarly, use the mirror method to create the other half of the section, thus completing the creation of the entire inner contour parameter lines.

[0091] 3) For multi-chamber box sections, only multiple inner contour lines need to be created. However, it is stipulated that the drawing order of the inner contours is from left to right, and the nodes of the inner contour lines are numbered counterclockwise.

[0092] As Figure 1 shown, in step S300, the obtained outer contour line and inner contour line are detected. After the detection is correct, a parametric beam section CAD drawing including the outer contour line and inner contour line is generated.

[0093] The main contents of the detection include:

[0094] 1) Check whether the inner and outer contour lines are closed and intersect.

[0095] The system can automatically determine whether the contour line is closed. First, extract the parameter values according to the parameter names or calculate them according to the formulas, and calculate the endpoint coordinates of the parameter lines. Then, find the nearest endpoint of the end point of the first line, calculate the distance between the two endpoints and determine whether it is less than the tolerance value. If the tolerance is met, extract the other endpoint of the parameter line containing the nearest endpoint and find its nearest endpoint. Starting from the second line, use a loop statement to judge whether the endpoints of the two lines are connected end to end according to the method of finding the nearest endpoint until the last endpoint of the last line is connected to the starting point of the first line. Finally, if all the lines are connected end to end, it is judged that the contour line is closed; otherwise, it is judged as not closed, and the user is prompted with the line numbers and endpoint numbers to be checked.

[0096] The system can automatically judge whether the contour lines intersect. The contour line is a closed polyline, and its internal lines can only be connected end to end and cannot intersect. The system calculates and compares each parameter line with other parameter lines one by one to judge whether there are other intersection points except the endpoints, or whether there are 3 or more endpoint coordinates that are the same. If they intersect, a warning will be popped up to prompt the user with the line numbers and endpoint numbers to be checked.

[0097] 2) Check the shapes of the inner and outer contour lines, and judge whether the created contour lines meet the design requirements by previewing the cross-sectional shape.

[0098] 3) Check the correlation between parameters. By changing the values of the main parameters, such as the top width of the cross-section, the bottom width of the cross-section, the height of the cross-section, etc., check whether the change of the cross-sectional shape meets the design requirements.

[0099] Through the above parameterization process, editable and iterable parameterized contour lines can be efficiently generated, which are applicable to scenarios such as the calculation and analysis of the beam cross-sections of railway bridges and the structural design of beam segments.

[0100] The method of this embodiment is implemented by an intelligent software developed based on the CAD platform. The programming language is C#, and the software development environment is.NET Framework. All operations are carried out in the Chinese Windows mode, and parameterized graphic files of any shape used for bridge calculation and analysis can be created, including cross-section types such as single-cell single-chamber, single-cell multi-chamber, I-shaped, T-shaped, etc., meeting the design requirements of different bridge types. The core is to transform complex geometries and engineering constraints into programmable and verifiable parameter logics, which consists of three major functional modules: parameters, parameter lines, and contour lines. The specific content is as follows:

[0101] 1) Use "parameters" as the core element to control geometry and design logic. Use text files to store system default parameters and user-defined parameters. Parameter files can be created, loaded, and reset. The system uses parameter groups to manage different types of parameters. Parameter groups can be created and deleted. Parameters with the same name can exist in different parameter groups, but parameters with the same name are not allowed in the same parameter group. When a parameter group is deleted, all parameters in the group will be deleted at the same time. The system allows users to customize parameters. Customized parameters can be moved to different groups and can also be deleted.

[0102] 2) Establish logical relationships between parameters through formulas or algorithms, and use exception handling mechanisms to detect invalid parameter inputs. Define the shape characteristics of the cross section through a combination of independent variables. Based on the efficient collaboration of the parameter system, when the parameter value changes, the system cascade update can be triggered. For example, when the beam height is modified, the web height, top and bottom plate thickness and other related parameters can be adjusted in a linked manner to quickly generate a new cross-sectional shape, which can significantly improve the design quality, shorten the engineering cycle and reduce the risk of human error.

[0103] 3) There are 6 built-in parametric lines, including horizontal lines, vertical lines, connecting lines, chamfer lines, coordinate lines and turning lines. The system allows users to create other parametric line types to meet user needs.

[0104] 4) Use an independent class to develop a parametric line function, use the line type name as the function name, and the function parameters correspond to the parameters of the parametric line. The base point, origin, starting point, and endpoint are defined as Point2d type, and the remaining parameters are defined as double type. Calling the function can automatically calculate the endpoint coordinates of the parametric line.

[0105] 5) Use parameter lines to connect end to end to form a closed contour line of any shape with parameter variable function. The system has developed a specific contour line editor, which puts the built-in 6 types of parameter lines into the "Line Type" drop-down list for use; the "Base Point" drop-down list is used to provide the selection of the origin or starting point of the local coordinate system of the parameter line, and this point is used to convert the local coordinates of the parameter line into the coordinates of the cross-sectional coordinate system. From top to bottom, the lines with large serial numbers can refer to the endpoints of the lines with small serial numbers as the base points; the lines that make up the contour line can also be mirrored by a parameter line, which is generated by mirroring the selected line along the Y axis. The Y axis is the Y axis of the cross-sectional coordinate system. From top to bottom, the lines with large serial numbers can mirror the lines with small serial numbers; the system provides X, Y coordinates and bending radius editing windows for the turning points of the "turning line", and can be directly imported and generated using CAD graphics, and provides parameter creation and parameter association dialog boxes for other parameter lines; the system will check the parameter association of all parameter lines, and prompt the user to modify the invalid parameter association.

[0106] 6) The commonly used cross-sections of the beam segment structure can be composed of an outer contour line and one or more inner contour lines. Therefore, this method only allows the creation of a single closed outer contour, while the number of inner contour lines is not restricted. When there are multiple inner contour lines in the cross-section, the order of the inner contour lines can be arranged. The data reading order is from left to right, and the order reflected in the contour line list is read from top to bottom. The vertical position of the inner contour lines can be moved to adjust the reading order. The outer contour line is the only line and cannot be deleted. The created inner contour lines can be renamed and deleted.

[0107] 7) Set the coordinate systems of both the inner and outer contour lines to the same cross-section coordinate system, that is, the origin of the coordinate system is the same.

[0108] 8) Generate a cross-section with parametric functions using the defined inner and outer contour lines and cross-section parameters, and draw a CAD drawing according to the initial values of the parameters for the user to preview and check.

[0109] 9) Automatically label geometric dimensions such as the cross-section height, top and bottom plate widths, web thickness, and top and bottom plate thickness on the CAD drawing previewed by the user, and sequentially label the node numbers starting from the origin, so that the drawn CAD drawing can better express the design information of the defined parameter cross-section. The result is as Figure 7 shown. To accurately label the geometric information of relevant components of cross-sections such as box-shaped, T-shaped, I-shaped, and U-shaped cross-sections, a method of judging special inflection points of the cross-section is used to distinguish different parts of the cross-section. For example, the part above the upper inflection points on the left and right sides of the box-shaped cross-section is defined as the top plate, the part below the lower inflection points on the left and right sides of the cross-section is defined as the bottom plate, and the part between the upper and lower inflection points is defined as the web.

[0110] 10) A general data interface with other bridge design software can be reserved, and the parametric cross-sections generated by this method can be directly imported into the beam segment structure auxiliary design system for use.

[0111] A method for creating a parametric beam cross-section proposed in this embodiment has the following core innovation points:

[0112] (1) A method for creating a parametric beam cross-section proposed in this embodiment is created using 6 types of parametric lines such as horizontal lines, vertical lines, connecting lines, chamfer lines, coordinate lines, and turning lines. The parametric algorithm is used to intelligently drive and decouple the tightly coupled geometric relationships in traditional designs, enabling the cross-section design to be independently adjusted and realizing knowledge accumulation and reuse, significantly improving design flexibility and sustainability.

[0113] (2) A method for creating a parametric beam cross-section proposed in this embodiment is implemented based on an intelligent software developed on the CAD platform. Using "parameters" as the core elements to control the geometric shape and design logic, the logical relationships between parameters are established through formulas or algorithms to automatically create the geometric shape of the railway beam cross-section and directly convert the design data into CAD drawings.

[0114] (3) The creation method of a parametric beam cross-section proposed in this embodiment can automatically connect parametric lines arranged in any order to create a closed contour line of any shape with parametric variation function, generate a cross-section with parametric variation function using the defined inner and outer contour lines and cross-section parameters, and can intelligently identify different parts of the commonly used cross-sections of railway beams.

[0115] Corresponding to the above-disclosed creation method of a parametric beam cross-section, an embodiment of the present invention also discloses a creation system of a parametric beam cross-section, as Figure 8 shown, which specifically includes:

[0116] A parametric line creation module for pre-creating various types of parametric lines, and each type of parametric line is defined by multiple parameters;

[0117] A contour line construction module for dividing the composition of the railway beam cross-section into an outer contour line and an inner contour line, constructing the outer contour line and the inner contour line respectively by selecting the pre-created parametric lines, assigning values to the parameters of each parametric line, and establishing the correlation relationship between the parameters;

[0118] A cross-section generation module for detecting the obtained outer contour line and inner contour line, and generating a CAD graph of a parametric beam cross-section including the outer contour line and the inner contour line after the detection is correct.

[0119] It should be noted that for the detailed description of a creation system of a parametric beam cross-section provided in an embodiment of the present invention, reference can be made to the relevant description of a creation method of a parametric beam cross-section provided in an embodiment of the present application, which will not be elaborated here.

[0120] In addition, an embodiment of the present invention also provides an electronic device, and the device includes: a processor and a memory; the memory is used for storing one or more program instructions; the processor is used for running one or more program instructions to execute the steps of a creation method of a parametric beam cross-section as described in any one of the above.

[0121] It should be noted that for the detailed description of an electronic device provided in an embodiment of the present invention, reference can be made to the relevant description of a creation method of a parametric beam cross-section provided in an embodiment of the present application, which will not be elaborated here.

[0122] In addition, an embodiment of the present invention also provides a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of a creation method of a parametric beam cross-section as described in any one of the above are implemented.

[0123] It should be noted that for the detailed description of a computer-readable storage medium provided in an embodiment of the present invention, reference can be made to the relevant description of a method for creating a parametric beam cross-section provided in an embodiment of the present application, which will not be elaborated here.

[0124] Those skilled in the art can understand that all or part of the functions of the above-mentioned methods can be implemented in a hardware manner or in a computer program manner. When all or part of the functions in the above-mentioned embodiments are implemented in a computer program manner, the program can be stored in a computer-readable storage medium. The storage medium can include: read-only memory, random access memory, magnetic disk, optical disk, hard disk, etc. The above functions can be realized by a computer executing the program. For example, when the program is stored in the memory of the device, and the program in the memory is executed by the processor, the above-mentioned all or part of the functions can be realized. In addition, when all or part of the functions in the above-mentioned embodiments are implemented in a computer program manner, the program can also be stored in a storage medium such as a server, another computer, magnetic disk, optical disk, flash drive or mobile hard disk, and saved to the memory of the local device by downloading or copying, or the system of the local device is updated. When the program in the memory is executed by the processor, all or part of the functions in the above-mentioned embodiments can be realized.

[0125] The above uses specific examples to elaborate on the present invention, which is only used to help understand the present invention and is not intended to limit the present invention. For those skilled in the technical field to which the present invention belongs, based on the idea of the present invention, several simple deductions, deformations or substitutions can also be made.

Claims

1. A method for creating a parametric beam cross-section, characterized in that, The method includes: Pre - creating multiple types of parametric lines, and each type of parametric line is defined by multiple parameters; Dividing the cross - section composition of the railway beam into an outer contour line and an inner contour line. By selecting the pre - created parametric lines, assigning values to the parameters of each parametric line, and establishing the correlation relationship between the parameters, the outer contour line and the inner contour line are respectively constructed; Detecting the obtained outer contour line and inner contour line. After the detection is correct, generating a parametric beam cross - section CAD drawing including the outer contour line and the inner contour line.

2. The creation method of a parametric beam cross-section according to claim 1, characterized in that Pre - creating multiple types of parametric lines, and each type of parametric line is defined by multiple parameters, specifically including: The created parametric lines include horizontal lines, vertical lines, connecting lines, chamfer lines, coordinate lines, and turning lines.

3. The creation method of a parametric beam cross-section according to claim 2, characterized in that, Pre - creating multiple types of parametric lines, and each type of parametric line is defined by multiple parameters, specifically including: The horizontal line is a parametric line parallel to the X - axis and capable of vertical translation. The parameters include: BasicPoint, which is the base point, the origin of the local coordinate system of the parametric line; X_Length, the horizontal length of the parametric line, negative on the left side of the base point and positive on the right side of the base point; Y_Translation, the vertical translation distance of the parametric line from the base point, positive above the base point and negative below the base point; The vertical line is a parametric line parallel to the Y - axis and capable of horizontal translation. The parameters include: BasicPoint, which is the base point, the origin of the local coordinate system of the parametric line; X_Translation, the horizontal translation distance of the parametric line from the base point, negative on the left side of the base point and positive on the right side of the base point; Y_Length, the vertical length of the parametric line, positive above the base point and negative below the base point; The connecting line is a parametric line connecting any two points. The parameters include: StartPoint, the starting point of the parametric line; EndPoint, the ending point of the parametric line; The chamfer line is a parametric line controlled by the local coordinates of the base point and the ending point. The parameters include: BasicPoint, which is the base point, the starting point, the origin of the local coordinate system; EndPoint_X, the local coordinate X of the ending point of the parametric line relative to the base point; EndPoint_Y, the local coordinate Y of the ending point of the parametric line relative to the base point; The coordinate line is a parametric line controlled by the coordinates of the starting point and the ending point. The parameters include: StartPoint_X, the X - coordinate of the starting point of the parametric line; StartPoint_Y, the Y - coordinate of the starting point of the parametric line; EndPoint_X, the X - coordinate of the ending point of the parametric line; EndPoint_Y, the Y - coordinate of the ending point of the parametric line; The turning line is a parametric line controlled by the base point and multiple turning points. The parameters include: BasicPoint, which is the base point, the origin of the local coordinate system of the parametric line; TP_X, the X - coordinate of the turning point; TP_Y, the Y - coordinate of the turning point; TP_R, the bending radius of the turning point.

4. A method for creating a parametric beam cross-section according to claim 1, characterized in that, Respectively constructing the outer contour line and the inner contour line by selecting the pre - created parametric lines, specifically including: First construct half of the outer contour line or inner contour line, and create the other half using the mirror method, so as to complete the creation of the entire outer contour line or inner contour line.

5. The creation method of a parametric beam cross-section according to claim 1, characterized in that Construct the outer contour line and the inner contour line by selecting pre-created parametric lines, specifically including: For a multi-chamber box cross-section, create multiple inner contour lines, and agree that the drawing order of the inner contour lines is from left to right, and number the inner contour lines in order.

6. The creation method of a parametric beam cross-section according to claim 1, characterized in that, Detect the obtained outer contour line and inner contour line, specifically including: Check whether the inner and outer contour lines are closed and intersect; Check the shapes of the inner and outer contour lines, and judge whether the created contour lines meet the design requirements by previewing the cross-section shape; Check the correlation relationship between parameters, and view whether the change of the cross-section shape meets the design requirements by changing the main parameter values.

7. The creation method of a parametric beam cross-section according to claim 6, characterized in that Check whether the inner and outer contour lines are closed and intersect, specifically including: Detect whether the contour line is closed: First, extract the parameter values according to the parameter name or calculate them according to the formula, and calculate the endpoint coordinates of the parametric line; then find the nearest endpoint of the end point of the first line, calculate the distance between the two endpoints and judge whether it is less than the tolerance value. If the tolerance is met, extract the other endpoint of the parametric line containing the nearest endpoint and find its nearest endpoint; starting from the second line, use a loop statement to judge whether the endpoints of the two lines are connected end to end according to the method of finding the nearest endpoint until the last endpoint of the last line is connected to the starting point of the first line; finally, if all the lines are connected end to end, judge that the contour line is closed, otherwise judge it as not closed, and prompt the user with the line number and endpoint number that need to be checked; Detect whether the contour lines intersect: Calculate and compare each parametric line with other parametric lines one by one to judge whether there are other intersection points except the endpoints, or whether there are 3 or more endpoint coordinates that are the same. If they intersect, pop up a warning with the line number and endpoint number that the user needs to check.

8. A creation system for a parametric beam cross-section, characterized in that, The system includes: A parametric line creation module for pre-creating multiple types of parametric lines, and each type of parametric line is defined by multiple parameters; A contour line construction module for dividing the cross-section of the railway beam into an outer contour line and an inner contour line, constructing the outer contour line and the inner contour line respectively by selecting pre-created parametric lines, assigning values to the parameters of each parametric line, and establishing the correlation relationship between the parameters; A cross-section generation module for detecting the obtained outer contour line and inner contour line, and generating a parametric beam cross-section CAD drawing including the outer contour line and the inner contour line after the detection is correct.

9. 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 used to run one or more program instructions to execute the steps of a method for creating a parametric beam cross-section according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium, and when the computer program is executed by the processor, it implements the steps of a method for creating a parametric beam cross-section according to any one of claims 1 to 7.