A bridge structure parameterized modeling and drawing method, device and medium
By constructing a bridge primitive library and using topological coding and genetic algorithms to achieve bidirectional mapping between bridge 3D models and construction drawings, the problems of adaptability to diverse structures and full-process linkage in bridge design were solved, improving design efficiency and compliance.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- CHINA RAILWAY NO10 ENGINEERING GROUP THIRD CONSTRUCTION CO LTD
- Filing Date
- 2026-03-06
- Publication Date
- 2026-06-05
AI Technical Summary
Existing parametric modeling technology for bridges cannot adapt to diverse bridge structures, resulting in low design efficiency, inconsistencies between models and drawings, inability to achieve closed-loop linkage throughout the entire process, and high design costs.
By constructing a bridge primitive library with unique topological codes and combining it with an improved genetic algorithm, we can achieve bidirectional mapping and multi-constraint optimization between the bridge 3D model and construction drawings, and realize parameterized linkage generation and synchronous update of changes.
It improved bridge design efficiency, enabled synchronous updates of models and drawings and full-process compliance verification, avoided human error, and ensured the standardization and traceability of design results.
Smart Images

Figure CN122154034A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of digital technology for bridge engineering, specifically to a method, equipment, and medium for parametric modeling and drawing of bridge structures. Background Technology
[0002] In recent years, as my country's highway and railway bridge engineering has entered a stage of large-scale and high-quality development, bridge structural forms have become increasingly diversified, irregular, and sophisticated, placing extremely high demands on design efficiency, delivery quality, and full-process digital collaboration. In the entire bridge design process, 3D structural modeling and construction drawing production are core components, accounting for over 60% of the total bridge design cycle and directly determining project design delivery efficiency, drawing compliance, and subsequent construction feasibility.
[0003] With the popularization of Building Information Modeling (BIM) technology and parametric design concepts, the industry has gradually carried out the research and development and application of parametric modeling and drawing technology for bridges. The current mainstream technical solutions can be divided into two categories: parametric modeling and drawing technology based on fixed bridge templates and customized parametric technology based on secondary development of general CAD / BIM platforms. Among them, parametric modeling and drawing technology based on fixed bridge type templates is currently the most widely used solution in the industry. This type of solution is designed for conventional standard bridge types such as simply supported beams and continuous beams with uniform cross-sections. It pre-builds fixed parametric design templates and presets a one-way mapping relationship between design parameters and model geometric features and drawing annotation rules. After designers input core parameters such as span and beam height, the corresponding 3D model and construction drawings can be automatically generated. This technology is used as a bridge type plugin for various commercial software and a standardized template library for design institutes.
[0004] However, the existing parameterization technology for fixed bridge-type templates still has the following shortcomings; 1. The bridge type adaptability is extremely poor, and the generalization ability is severely insufficient, relying entirely on fixed templates. The core logic of the existing solution is one template per bridge type, which can only cover a limited number of conventional standard bridge types. For non-standard and irregular bridge types such as variable-width curved bridges, irregular landscape bridges, and long-span special structure bridges that are widely used in current projects, there are no available standardized templates. Designers must manually reconstruct templates from scratch, manually model and generate drawings, completely losing the efficiency advantages of parametric technology and failing to adapt to the diverse development needs of bridge engineering.
[0005] 2. The modeling and drawing processes are disconnected in one direction, lacking closed-loop linkage. Existing fixed templates can only achieve one-way mapping. Once design parameters are modified or the model structure is adjusted, the annotation content, drawing layout, and section settings cannot be automatically updated synchronously. Manual modifications and adjustments must be made one by one, which easily leads to parameter errors and inconsistencies between the model and drawings. At the same time, it is impossible to perform reverse compliance verification of model and design parameters when drawing content is modified. The closed loop of the entire design process is completely missing, resulting in extremely high costs for drawing revisions in the later stages of the project. Summary of the Invention
[0006] This invention provides a method for parametric modeling and drawing of bridge structures. By using unique topological encoding of bridge primitives and combining it with an improved genetic algorithm for multi-constraint global optimization, it achieves intelligent annotation and synchronous compliance verification of bridge construction drawings, thereby solving the problems in the background technology.
[0007] To achieve the above objectives, the technical solution of the present invention is as follows: A method for parametric modeling and drawing of bridge structures, comprising the following steps performed using computer equipment: S1: Construct a general primitive library for bridges with unique topology codes. Decompose all types of bridges into four categories of the smallest standardized construction primitives, assign a globally unique topology code covering the core attributes to each primitive, and generate a general primitive library for bridges. S2: Establish a bidirectional mapping rule based on topology coding, using the unique topology code in the bridge general primitive library as the association index, to establish a bidirectional mapping rule among design parameters, primitive models, and drawing elements; S3: Generate parametric models and initial drawings. Based on bidirectional mapping rules, through parametric modeling and engineering drawing technology, after inputting design parameters, a 3D model of the bridge and the corresponding initial drawing framework are generated. S4: Complete drawing annotation and compliance verification, identify component priority based on unique topology code, construct multi-constraint global optimization objective, solve iteratively through improved genetic algorithm to obtain the globally optimal annotation layout scheme, complete the intelligent annotation of the initial drawing, and generate construction drawings; S5: Based on the linkage and output of bidirectional mapping rules, when design parameters change, the associated primitive model and drawings are updated synchronously; when the drawing annotations are modified, the corresponding design parameters are traced back to complete the standard compliance verification. After passing the verification, the primitive model and design parameters are updated synchronously, and the bridge 3D model, construction drawings and design parameter change traceability log are output.
[0008] Preferably, the specific implementation steps of S1 are as follows: S11: Deconstruct the structural components of all types of bridge structures, divide them into four categories of minimum standardized structural elements: line elements, surface elements, point elements, and volume elements, predefine the inherent geometric boundaries, combinable constraint rules, and engineering attribute fields of each type of element, and form a basic element template library; S12: Set a four-segment topology coding rule for each type of primitive. The four segments correspond to the primitive's type attribute, spatial location attribute, association constraint attribute, and engineering stress attribute, respectively. Each single code completely covers the full-dimensional information of the corresponding primitive. At the same time, the attributes of each primitive are quantitatively defined through a five-tuple structured model. S13: Assign a four-segment computable topological code to each type of primitive. Based on the pre-defined four-segment topological coding rules, assign a globally unique topological code to complete the binding between the primitive and the code. The specific topological code is as follows:
[0009] Where ID represents the encoding, and i represents the index of the primitive, representing the i-th primitive; Let T represent the topological code of the i-th primitive, T represent the type of the primitive, R represent the spatial location of the primitive, C represent the constraint relationship of the primitive, and A represent the attribute of the primitive. Right now This is the encoding for the primitive type, representing the enumerated values of the four primitive types; The spatial position encoding of primitive i is obtained by quantizing the spatial position and orientation of the primitive using a homogeneous transformation matrix; The constraint relationship of primitive i is encoded by quantifying the relationship between primitives using the adjacency correlation matrix; The attribute encoding of primitive i is obtained by quantifying the stress level and material property engineering information of the primitive; S14: To meet the needs of covering all scenarios in bridge engineering, the basic primitive template library is supplemented with common derived variants of each type of primitive to form a general primitive library for bridges.
[0010] Preferably, the specific implementation steps of S2 are as follows: S21: Using topological coding as the unique index, define three associated sets: design parameter set P, primitive model set B, and drawing element set D. S22: Bidirectional mapping rule construction: Constructing a forward mapping function from design parameters to primitive models and drawing elements, and a reverse mapping function from drawing elements to primitive models and design parameters. Both forward and reverse mappings achieve end-to-end association through topological coding. When design parameters change, a parameter change increment matrix is defined.
[0011] Incremental updates of primitives and drawings are accomplished through a forward mapping function;
[0012]
[0013] Where ΔP represents the overall increment of the design parameters, Indicates the new design parameter set, This represents the old design parameter set. Let represent the parameter increment of the i-th primitive in hi. , Let ΔB represent the new and old parameter values of the i-th primitive, and let ΔB represent the increment of the primitive model. This represents the positive mapping function from parameters to the model; ΔD represents the increment of drawing elements. This represents the positive mapping function from the model to the drawing; Preferably, in S3, during the parametric modeling process, the constraint matrix based on primitives... Constraint relationship encoding with topological coding The spatial combination and constraint application of primitives are completed, and the generated 3D bridge model conforms to the association rules between primitives; when the initial drawing framework is generated, spatial location encoding is based on topological encoding. Determine the section cut-off position and view angle, and match to generate the initial drawing frame.
[0014] Preferably, the specific implementation steps of S4 are as follows: S41: Based on primitive unique topological coding, identify the annotation priority of corresponding components, the range of core load-bearing components and the mandatory annotation requirements of specifications, extract the coordinate range, annotation content and constraints of the elements to be annotated, and generate the initial population of annotation layout; S42: Construct a multi-constraint global optimization objective function with zero occlusion of core components as the highest priority, and set the weight coefficients of the corresponding constraint terms; S43: The initial population is solved iteratively by an improved genetic algorithm. Each generation of iteration completes fitness calculation, selection, crossover and mutation operations until the preset maximum number of iterations or convergence threshold is reached, and the globally optimal labeling layout scheme with the minimum total penalty value is output. S44: Map the optimal annotation layout to the initial drawing frame, complete the full annotation layout, simultaneously verify the coverage of mandatory annotation items in the specification, and generate construction drawings.
[0015] Preferably, in S42, the multi-constraint global optimization objective is achieved through a total penalty function, the specific formula of which is:
[0016] in, This represents the total global penalty value for a single annotation layout scheme z. To specify the overlap penalty, the calculation is based on the percentage of overlapping area of the annotation boxes. The penalty for occlusion of core components is calculated based on the percentage of the occluded area of the component as indicated by the specifications. To standardize compliance penalties, the calculation is based on the number of non-compliance items multiplied by a fixed base. As a layout compactness penalty, it is calculated based on the distance deviation ratio between the annotation and the component. The preset weight coefficients are used, and the weight priority satisfies the following conditions: ; The overlap weight is determined by the primitive attribute encoding mapping; The core occlusion weight is amplified exponentially with the force level of the primitive and is determined by the primitive attribute encoding mapping. To standardize compliance weights, they are determined by primitive type encoding mapping; The layout compactness weight is determined by the primitive constraint encoding mapping; Preferably, in S43, the solution logic of the improved genetic algorithm is based on the original fitness function, the specific formula of which is:
[0017] in, The updated individual fitness of a single annotation layout scheme z after a change in design parameters ΔP. This is the recalculated value of the total penalty function after the parameter change. To determine the maximum global total penalty value within the current genetic algorithm population after changing the design parameter ΔP, Let G be the maximum global total penalty value within the current genetic algorithm population after the design parameter ΔP is changed, and let G be the current iteration number. The maximum number of iterations, This is a preset scaling factor used to prevent the algorithm from converging too early; e is a natural constant.
[0018] Preferably, in S5, reverse compliance verification is achieved through a compliance determination formula, specifically as follows:
[0019] in, This represents a compliance determination function used to verify whether parameter changes comply with specifications. Depend on The minimum allowed value of the parameter corresponding to the i-th primitive in the mapping is specified. The new value of the parameter corresponding to the i-th primitive after the change. Depend on The maximum allowed value of the parameter corresponding to the i-th primitive in the mapping is determined by the specification. When the determination result is True, the primitive model and design parameters are updated synchronously. When it is False, a non-compliance warning is triggered and the basis for the warning is specified. The generation of the design parameter change traceability log is as follows: every parameter change, model adjustment, and drawing modification operation in the entire process is recorded through the corresponding topology code. The log content includes the operation time, the topology code of the operation object, the values before and after the change, the compliance verification results, and the operator information, forming an immutable full-process design traceability ledger, which is output synchronously with the final results.
[0020] In another aspect, the present invention also discloses a computer-readable storage medium storing a computer program, which, when executed by a processor, causes the processor to perform the steps of the method described above.
[0021] In another aspect, the present invention also discloses a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the steps of the method described above.
[0022] As can be seen from the above technical solution compared with the prior art, the present invention has the following beneficial effects: 1. This invention achieves parametric linkage generation and synchronous update of bridge 3D models and construction drawings by constructing a standardized primitive library of bridges with globally unique topology codes and bidirectional mapping rules between parameters, models and drawings. This results in a significant improvement in bridge design efficiency and completely solves the industry pain points of inconsistent model and drawing data and cumbersome modification.
[0023] 2. This invention achieves fully automated compliance annotation of construction drawings and traceability control of the entire design process through a multi-constraint optimization intelligent annotation and two-way closed-loop compliance verification mechanism based on topology coding. This results in full specification coverage and full-chain traceability of engineering design outcomes, avoiding human error and design compliance risks. Attached Figure Description
[0024] Figure 1 This is a schematic diagram of the method steps of the present invention; Figure 2 This is a schematic diagram of the data operation and change process in an embodiment of the present invention. Detailed Implementation
[0025] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are some embodiments of the present invention, but not all embodiments.
[0026] The embodiments of the present invention will be described in further detail below with reference to the accompanying drawings and examples. The following examples are used to illustrate the present invention, but should not be used to limit the scope of the present invention.
[0027] This invention provides a method for parametric modeling and drawing of bridge structures, such as... Figure 1 As shown, perform the following steps using a computer device: S1: Construct a general primitive library for bridges with unique topology codes. Decompose all types of bridges into four categories of the smallest standardized construction primitives, assign a globally unique topology code covering the core attributes to each primitive, and generate a general primitive library for bridges. S2: Establish a bidirectional mapping rule based on topology coding, using the unique topology code in the bridge general primitive library as the association index, to establish a bidirectional mapping rule among design parameters, primitive models, and drawing elements; S3: Generate parametric models and initial drawings. Based on bidirectional mapping rules, through parametric modeling and engineering drawing technology, after inputting design parameters, a 3D model of the bridge and the corresponding initial drawing framework are generated. S4: Complete drawing annotation and compliance verification, identify component priority based on unique topology code, construct multi-constraint global optimization objective, solve iteratively through improved genetic algorithm to obtain the globally optimal annotation layout scheme, complete the intelligent annotation of the initial drawing, and generate construction drawings; S5: Based on the linkage and output of bidirectional mapping rules, when design parameters change, the associated primitive model and drawings are updated synchronously; when the drawing annotations are modified, the corresponding design parameters are traced back to complete the standard compliance verification. After passing the verification, the primitive model and design parameters are updated synchronously, and the bridge 3D model, construction drawings and design parameter change traceability log are output.
[0028] Example: In this embodiment, a bridge is planned to be built in a certain urban area. However, the project has a tight schedule and the design phase requires frequent responses to the parameter adjustment needs of the owner and the construction party. The traditional manual modeling and CAD drawing mode has problems such as low modification efficiency, inconsistency between drawings and models, many errors and omissions in annotation, and difficulty in tracing changes. Therefore, the parametric modeling and drawing method described in this application is adopted to complete the design and delivery of the entire bridge.
[0029] Implementation begins; Step 1: Build a bridge type primitive library adapted to the project and complete the primitive topology coding binding. Based on the structural characteristics of the continuous box girder bridge in this project, first complete the full bridge structure decomposition and divide it into four types of minimum standardized structural primitives. Point elements include: bearing center point, pier pile control point, expansion joint positioning point, prestressed steel strand start and end point, etc.; line elements include: bridge longitudinal centerline, box girder prestressed steel strand, main reinforcement skeleton line, pier axis, etc.; surface elements include: box girder top plate, bottom plate, web section, diaphragm end face, pile cap top surface, pile foundation section, etc. Examples of basic elements include: standard segments of box girders, widening transition sections, piers, cap beams, pile caps, pile foundations, and bridge abutments. For each type of basic element, its geometric boundaries, combination constraint rules, and engineering attribute fields are predefined. Then, according to a four-segment topology coding rule, a globally unique topology code is assigned to each basic element. The specific topology code is as follows:
[0030] Where ID represents the encoding, and i represents the index of the primitive, representing the i-th primitive; Let T represent the topological code of the i-th primitive, T represent the type of the primitive, R represent the spatial location of the primitive, C represent the constraint relationship of the primitive, and A represent the attribute of the primitive. Right now This is the encoding for the primitive type, representing the enumerated values of the four primitive types; The spatial position encoding of primitive i is obtained by quantizing the spatial position and orientation of the primitive using a homogeneous transformation matrix; The constraint relationship of primitive i is encoded by quantifying the relationship between primitives using the adjacency correlation matrix; The attribute encoding of primitive i is obtained by quantifying the stress level and material property engineering information of the primitive; For example, the pier column element in this project. Marked as volume primitive enumeration value, Its spatial location in the bridge's total mileage and elevation system is quantified using a homogeneous transformation matrix. The constraint relationships between it and the lower foundation and the upper cap beam are clarified by using the adjacency relation matrix. Quantify the engineering properties of its concrete material and secondary load-bearing components.
[0031] After binding all primitives to unique codes, supplement them with derived primitive variants such as box girder variable cross-section segments and irregular end beams required for this project, forming a general bridge primitive library adapted to this project, such as... Figure 2 As shown, this provides basic support for the entire subsequent process.
[0032] Step 2: Establish bidirectional mapping rules based on topology coding to connect parameters, models, and drawings. Using the unique topology coding of primitives as the core association index, first define the three core association sets for this project: Design parameter set P: includes the core design parameters of the entire bridge, such as bridge span, beam height, web thickness, number of steel strands, pier dimensions, and pile length; Element model set B: corresponds to all structural element models of the entire bridge that have been coded in step 1; Drawing element set D: includes all drawing elements such as views, dimensions, material labels, and legends in the bridge elevation, plan, section, and reinforcement detail drawings.
[0033] Based on the above set, a forward mapping function from design parameters to primitive models and then to drawing elements is constructed, as well as a reverse mapping function from drawing elements to primitive models and then to design parameters. The entire chain achieves a one-to-one correspondence through topological coding. At the same time, predefined incremental calculation rules for parameter changes are defined. When subsequent design parameters are adjusted, the parameter change can be calculated through the incremental matrix ΔP, and then the incremental update of primitive models and drawing elements can be automatically completed through the forward mapping function, without the need for manual modification at each point.
[0034] When design parameters change, define a parameter change increment matrix:
[0035] Incremental updates of primitives and drawings are accomplished through a forward mapping function;
[0036]
[0037] Where ΔP represents the overall increment of the design parameters, Indicates the new design parameter set, This represents the old design parameter set. Let represent the parameter increment of the i-th primitive in hi. , Let ΔB represent the new and old parameter values of the i-th primitive, and let ΔB represent the increment of the primitive model. This represents the positive mapping function from parameters to the model; ΔD represents the increment of drawing elements. This represents the positive mapping function from the model to the drawing; Step 3: Input design parameters and generate a full-bridge parametric model and initial drawings with one click. The framework designer inputs the core design parameters for this project, and the system automatically completes two core tasks based on bidirectional mapping rules: 1. Parametric modeling: encoding constraint relationships based on primitives. It automatically completes the spatial combination and constraint application of the entire bridge's basic elements; for example, the coaxial constraint between the pier cap basic element and the pile foundation basic element, the longitudinal splicing constraint between box girder segments, and the positional constraint between the steel strands and the box girder section, etc., automatically generate a three-dimensional parametric model of the entire bridge that conforms to the design rules, without constraint conflicts or spatial misalignment; Initial drawing framework generation: Primitive-based spatial location encoding It automatically determines the cross-sectional cut-off positions of the entire bridge drawing, including cross-span sections, support sections, diaphragm sections, etc., view angles and layouts, matches the drawing frame, layers, and scale settings of highway bridge drawing standards, and automatically generates an initial drawing frame containing all views of the entire bridge, completing the basic layout of the drawings.
[0038] Step 4: Complete intelligent annotation and compliance verification of drawings to generate compliant construction drawings. Based on the initial drawing framework, intelligent annotation and compliance verification are completed through topology coding. The implementation logic is as follows: First, the annotation priority of the corresponding component is identified by the unique topological code of each primitive. For example, the core load-bearing components such as the box girder main body, prestressed steel strands, and piers are identified as having the highest annotation priority by using `IDAi`. The mandatory annotation requirements of the specifications are clarified, and the coordinate range, annotation content and constraints of the elements to be annotated in the whole bridge are extracted to generate the initial population of annotation layout. Construct a multi-constraint global optimization objective function with zero occlusion of core components as the highest priority, set weight priorities according to the project specifications, and match the corresponding weight coefficients; The multi-constraint global optimization objective is achieved through a total penalty function, the specific formula of which is:
[0039] in, This represents the total global penalty value for a single annotation layout scheme z. To specify the overlap penalty, the calculation is based on the percentage of overlapping area of the annotation boxes. The penalty for occlusion of core components is calculated based on the percentage of the occluded area of the component as indicated by the specifications. To standardize compliance penalties, the calculation is based on the number of non-compliance items multiplied by a fixed base. As a layout compactness penalty, it is calculated based on the distance deviation ratio between the annotation and the component. The preset weight coefficients are used, and the weight priority satisfies the following conditions: ; The overlap weight is determined by the primitive attribute encoding mapping; The core occlusion weight is amplified exponentially with the force level of the primitive and is determined by the primitive attribute encoding mapping. To standardize compliance weights, they are determined by primitive type encoding mapping; The layout compactness weight is determined by the primitive constraint encoding mapping; An improved genetic algorithm is used to iteratively solve the initial population. Each generation of iteration completes fitness calculation, selection, crossover, and mutation operations until the convergence threshold is reached, and the globally optimal labeling layout scheme with the minimum total penalty value is output. The improved genetic algorithm's solution logic is based on an original fitness function, the specific formula of which is:
[0040] in, The updated individual fitness of a single annotation layout scheme z after a change in design parameters ΔP. This is the recalculated value of the total penalty function after the parameter change. To determine the maximum global total penalty value within the current genetic algorithm population after changing the design parameter ΔP, Let G be the maximum global total penalty value within the current genetic algorithm population after the design parameter ΔP is changed, and let G be the current iteration number. The maximum number of iterations, This is a preset scaling factor used to prevent the algorithm from converging too early; e is a natural constant.
[0041] The optimal annotation scheme is automatically mapped to the initial drawing frame, and all the annotations of the bridge dimensions, elevation, materials, prestress parameters, etc. are completed. At the same time, the annotation coverage of the mandatory items of the "Technical Specification for Construction of Highway Bridges and Culverts" is checked to ensure that there are no omissions or errors in the annotations, and finally, bridge construction drawings that meet industry standards are generated.
[0042] Step 5: Achieve two-way linkage between parameters, model, and drawings, and complete the output of results and change traceability. This step is aimed at high-frequency change scenarios in the project design phase, and achieves a closed-loop linkage throughout the entire process. Divided into two scenarios: Forward linkage of design parameters: For example, during project implementation, if the owner requests that the bridge span be adjusted from 4×32m to 4×35m, the designers only need to modify the span value in the design parameter set. The system automatically calculates the parameter change increment ΔP and, through the forward mapping function, synchronously updates the 3D model of the corresponding box girder segment primitive, steel strand primitive, and bridge centerline primitive. At the same time, it automatically updates all related drawing elements such as span dimensions, cross-section positions, and steel strand length annotations in the drawings. No manual modification of the model and drawings is required throughout the process, and the entire bridge change adjustment can be completed within a few hours. Reverse tracing verification of drawing modifications: During the drawing review by the construction unit, if the web thickness annotation of the box girder needs to be optimized and adjusted, and the designer modifies the web thickness annotation value in the construction drawings, the system uses a reverse mapping function to trace back to the corresponding design parameters of the web surface primitives based on the topological code corresponding to the annotation. The system then uses a compliance judgment formula to verify whether the modified web thickness conforms to the allowable range of the specifications. If the verification passes, the system automatically updates the design parameters and the geometric dimensions of the web primitives in the 3D model. If the verification fails, a non-compliance warning is triggered, clarifying the relevant specifications.
[0043] Reverse compliance verification is achieved through a compliance determination formula, specifically:
[0044] in, This represents a compliance determination function used to verify whether parameter changes comply with specifications. Depend on The minimum allowed value of the parameter corresponding to the i-th primitive in the mapping is specified. The new value of the parameter corresponding to the i-th primitive after the change. Depend on The maximum allowed value of the parameter corresponding to the i-th primitive in the mapping is determined by the specification. When the determination result is True, the primitive model and design parameters are updated synchronously. When it is False, a non-compliance warning is triggered and the basis for the warning is specified. Throughout the process, every parameter change, model adjustment, and drawing modification is traceable and recorded using the corresponding topology code, generating a full-process design traceability ledger that includes the operation time, topology code, values before and after the change, compliance results, and operator information. Upon final project delivery, a complete 3D parametric model of the bridge, a full set of compliant construction drawings, and an unalterable design change traceability log are simultaneously output, successfully completing the project design delivery.
[0045] This application shortens the project design cycle compared to the traditional model, improves the efficiency of synchronously modifying the model and drawings after parameter changes, and effectively solves the difficulties of inconsistency between the model and drawings, repeated modifications, and difficulty in tracing errors and omissions in the traditional model. It provides a precise parametric model foundation for subsequent construction and operation and maintenance management.
[0046] In another aspect, the present invention also discloses a computer-readable storage medium storing a computer program, which, when executed by a processor, causes the processor to perform the steps of the method described above.
[0047] In another aspect, the present invention also discloses a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the steps of the method described above.
[0048] In another embodiment provided in this application, a computer program product containing instructions is also provided, which, when run on a computer, causes the computer to execute any of the bridge structure parametric modeling and drawing methods in the above embodiments.
[0049] It is understood that the systems, devices, and storage media provided in the embodiments of the present invention correspond to the methods provided in the embodiments of the present invention, and the explanations, examples, and beneficial effects of the relevant content can be referred to the corresponding parts of the above methods.
[0050] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transferred from one computer-readable storage medium to another.
[0051] For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access, or a data storage device such as a server or data center that integrates one or more available media.
[0052] The available media may be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., DVDs), or semiconductor media (e.g., solid state disks (SSDs)).
[0053] It should be noted that in this document, relational terms such as first and second are used only 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.
[0054] Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0055] The various embodiments in this specification are described in a related manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the system embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions of the method embodiments.
[0056] The embodiments of the present invention are given for the purposes of illustration and description. Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of the present invention.
Claims
1. A method for parametric modeling and drawing of bridge structures, characterized in that, Perform the following steps using a computer device: S1: Decompose all types of bridges into four types of minimum standardized construction primitives, assign a globally unique topology code covering the core attributes to each primitive, and generate a general primitive library for bridges. S2: Using the unique topology code in the bridge general primitive library as the associated index, establish a two-way mapping rule among design parameters, primitive models and drawing elements; S3: Based on bidirectional mapping rules, through parametric modeling and engineering drawing technology, after inputting design parameters, a three-dimensional model of the bridge and the corresponding initial drawing framework are generated; S4: Based on the unique topology code to identify component priority, construct a multi-constraint global optimization objective, and solve iteratively through an improved genetic algorithm to obtain the globally optimal annotation layout scheme, complete the intelligent annotation of the initial drawing, and generate construction drawings; S5: When design parameters change, synchronize the update of the associated primitive model and drawings; when drawing annotations are modified, trace back to the corresponding design parameters, complete the standard compliance verification, and after passing, synchronize the update of the primitive model and design parameters, and output the bridge 3D model, construction drawings and design parameter change traceability log.
2. The method for parametric modeling and drawing of bridge structures as described in claim 1, characterized in that: The specific implementation steps of S1 are as follows: S11: Deconstruct the structural components of all types of bridge structures, divide them into four categories of minimum standardized structural elements: line elements, surface elements, point elements, and volume elements, predefine the inherent geometric boundaries, combinable constraint rules, and engineering attribute fields of each type of element, and form a basic element template library; S12: Set a four-segment topology coding rule for each type of primitive. The four segments correspond to the primitive's type attribute, spatial location attribute, association constraint attribute, and engineering stress attribute, respectively. Each single code completely covers the full-dimensional information of the corresponding primitive. At the same time, the attributes of each primitive are quantitatively defined through a five-tuple structured model. S13: Assign a four-segment computable topological code to each type of primitive. Based on the pre-defined four-segment topological coding rules, assign a globally unique topological code to complete the binding between the primitive and the code. The specific topological code is as follows: Where ID represents the encoding, and i represents the index of the primitive, representing the i-th primitive; Let T represent the topological code of the i-th primitive, T represent the type of the primitive, R represent the spatial location of the primitive, C represent the constraint relationship of the primitive, and A represent the attribute of the primitive. Right now This is the encoding for the primitive type, representing the enumerated values of the four primitive types; The spatial position encoding of primitive i is obtained by quantizing the spatial position and orientation of the primitive using a homogeneous transformation matrix; The constraint relationship of primitive i is encoded by quantifying the relationship between primitives using the adjacency correlation matrix; The attribute encoding of primitive i is obtained by quantifying the stress level and material property engineering information of the primitive; S14: To meet the needs of covering all scenarios in bridge engineering, the basic primitive template library is supplemented with common derived variants of each type of primitive to form a general primitive library for bridges.
3. The method for parametric modeling and drawing of bridge structures as described in claim 2, characterized in that: The specific implementation steps of S2 are as follows: S21: Using topological coding as the unique index, define three associated sets: design parameter set P, primitive model set B, and drawing element set D. S22: Bidirectional mapping rule construction: Constructing a forward mapping function from design parameters to primitive models and drawing elements, and a reverse mapping function from drawing elements to primitive models and design parameters. Both forward and reverse mappings achieve end-to-end association through topological coding. When design parameters change, a parameter change increment matrix is defined. Incremental updates of primitives and drawings are accomplished through a forward mapping function; Where ΔP represents the overall increment of the design parameters, Indicates the new design parameter set, This represents the old design parameter set. Let represent the parameter increment of the i-th primitive in hi. , Let ΔB represent the new and old parameter values of the i-th primitive, and let ΔB represent the increment of the primitive model. This represents the positive mapping function from parameters to the model; ΔD represents the increment of drawing elements. This represents the forward mapping function from the model to the drawing.
4. The method for parametric modeling and drawing of bridge structures as described in claim 3, characterized in that: In S3, during the parametric modeling process, the constraint matrix is based on primitives. Constraint relationship encoding with topological coding The spatial combination and constraint application of primitives are completed, and the generated 3D bridge model conforms to the association rules between primitives; when the initial drawing framework is generated, spatial location encoding is based on topological encoding. Determine the section cut-off position and view angle, and match to generate the initial drawing frame.
5. The method for parametric modeling and drawing of bridge structures as described in claim 4, characterized in that: The specific implementation steps of S4 are as follows: S41: Based on primitive unique topological coding, identify the annotation priority of corresponding components, the range of core load-bearing components and the mandatory annotation requirements of specifications, extract the coordinate range, annotation content and constraints of the elements to be annotated, and generate the initial population of annotation layout; S42: Construct a multi-constraint global optimization objective function with zero occlusion of core components as the highest priority, and set the weight coefficients of the corresponding constraint terms; S43: The initial population is solved iteratively by an improved genetic algorithm. Each generation of iteration completes fitness calculation, selection, crossover and mutation operations until the preset maximum number of iterations or convergence threshold is reached, and the globally optimal labeling layout scheme with the minimum total penalty value is output. S44: Map the optimal annotation layout to the initial drawing frame, complete the full annotation layout, simultaneously verify the coverage of mandatory annotation items in the specification, and generate construction drawings.
6. The method for parametric modeling and drawing of bridge structures as described in claim 5, characterized in that: In S42, the multi-constraint global optimization objective is achieved through a total penalty function, the specific formula of which is: in, This represents the total global penalty value for a single annotation layout scheme z. To specify the penalty for overlapping annotations, the calculation is based on the percentage of overlapping area between the annotation boxes. The penalty for occlusion of core components is calculated based on the percentage of the occluded area of the component as indicated by the specifications. To standardize compliance penalties, the calculation is based on the number of non-compliance items multiplied by a fixed base. As a layout compactness penalty, it is calculated based on the distance deviation ratio between the annotation and the component. The preset weight coefficients are used, and the weight priority satisfies the following conditions: ; The overlap weight is determined by the primitive attribute encoding mapping; The core occlusion weight is amplified exponentially with the force level of the primitive and is determined by the primitive attribute encoding mapping. To standardize compliance weights, they are determined by primitive type encoding mapping; The layout compactness weight is determined by the primitive constraint encoding mapping.
7. The method for parametric modeling and drawing of bridge structures as described in claim 6, characterized in that: In S43, the solution logic of the improved genetic algorithm is based on the original fitness function, the specific formula of which is: in, The updated individual fitness of a single annotation layout scheme z after a change in design parameters ΔP. This is the recalculated value of the total penalty function after the parameter change. To determine the maximum global total penalty value within the current genetic algorithm population after changing the design parameter ΔP, Let G be the maximum global total penalty value within the current genetic algorithm population after the design parameter ΔP is changed, and let G be the current iteration number. The maximum number of iterations, This is a preset scaling factor used to prevent the algorithm from converging too early; e is a natural constant.
8. The method for parametric modeling and drawing of bridge structures as described in claim 7, characterized in that: In S5, the reverse compliance verification is implemented through a compliance determination formula, specifically as follows: in, This represents a compliance determination function used to verify whether parameter changes comply with specifications. Depend on The minimum allowed value of the parameter corresponding to the i-th primitive in the mapping is specified. The new value of the parameter corresponding to the i-th primitive after the change. Depend on The maximum allowed value of the parameter corresponding to the i-th primitive in the mapping is determined by the specification. When the determination result is True, the primitive model and design parameters are updated synchronously. When it is False, a non-compliance warning is triggered and the basis for the warning is specified. The generation of the design parameter change traceability log is as follows: every parameter change, model adjustment, and drawing modification operation in the entire process is recorded through the corresponding topology code. The log content includes the operation time, the topology code of the operation object, the values before and after the change, the compliance verification results, and the operator information, forming an immutable full-process design traceability ledger, which is output synchronously with the final results.
9. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it causes the processor to perform the steps of the method as described in any one of claims 1 to 8.
10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the computer program is executed by the processor, it causes the processor to perform the steps of the method as described in any one of claims 1 to 8.