Hydraulic steel bar figure parameterized generation and analysis method and system
Patent Information
- Application Number
- CN202611459642.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-20
- Publication Date
- 2026-10-27
AI Technical Summary
[0006]现有技术存在的更深层次的不足在于:钢筋图的正向生成与逆向解析在技术体系上相互割裂
第一,本申请通过构建水工钢筋图的统一语义数据模型,从根本上解决了现有技术中钢筋图生成与解析相互割裂、数据标准不统一的问题。该模型定义了构件对象、断面对象、轮廓对象、钢筋对象、标注对象、投影对象和约束对象,以及各对象之间的指向关系,使得正向生成和逆向解析有了共同的数据底座。由此,同一工程在不同阶段产生的数据在格式和语义层面完全兼容,消除了信息孤岛和数据转换中的语义丢失。
Smart Images

Figure CN122987139A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the fields of water conservancy and hydropower engineering design, CAD engineering drawing and parametric reinforcement drawing technology, and in particular to a method and system for parametric generation and analysis of reinforcement drawings for hydraulic structures such as box culverts, sluice gates, retaining walls, inverted siphons, stilling basins and valve wells. Background Technology
[0002] In the field of water conservancy and hydropower engineering design, the design of hydraulic reinforcement drawings faces efficiency and cost issues. Design institutes and engineering units have accumulated a large number of historical CAD reinforcement construction drawings. These drawings typically consist of structural outlines, reinforcement lines, point reinforcement, surface reinforcement, annotations, reinforcement tables, drawing frames, and instructions. Designers can understand these drawings through their professional experience and can copy, modify, and reuse them in similar projects. However, for software systems, ordinary CAD elements are usually just collections of lines, circles, text, blocks, and tables, making it difficult to directly determine which component and section a particular reinforcement belongs to, which edge it originates from, its spacing, why it breaks or avoids a certain point, and whether it has already appeared as a projection in other sections.
[0003] In the current design process for hydraulic engineering reinforcement drawings, designers typically first draw various cross-sectional outlines based on the structural dimensions, and then manually draw reinforcement lines, point reinforcement, surface reinforcement, annotations, and reinforcement tables in cross-sections, longitudinal sections, plans, or partial details. For hydraulic structures with water-stop joints, construction joints, toothed joints, and other structural features, the reinforcement layout is not only constrained by the structural boundaries but also influenced by the protective layer, reinforcement spacing, anchorage length, hook type, location of structural joints, and the relationship between multiple cross-sections. Although existing CAD drawing methods can complete static drawing representations, much of the work still relies on manual judgment and repetitive drawing.
[0004] Existing technologies, such as the BIM-based parametric modeling method for tunnel transition sections and reinforcement, can acquire the geometric information and distances between the upstream and downstream sides of the tunnel transition section. Based on this geometric information, the upstream and downstream sides of the tunnel transition section are segmented, and the tunnel transition section shape is obtained through a layout operation. The reinforcement placement positions are determined within the shape based on reinforcement placement parameters, and the modeling is completed using BIM. Another example is the fully automated reinforcement design method for hydraulic structures, which can automatically generate reinforcement segments on each structural surface. Reinforcement segments on adjacent surfaces can be automatically connected or treated as "scissor reinforcement" according to specifications, and automatically grouped. Yet another example is the forward parametric intelligent modeling method for aqueducts based on Revit secondary development, which includes an intelligent management platform for forward aqueduct design, parametric creation of aqueduct component models, and parametric modeling of aqueduct reinforcement. While these methods improve the automation level of reinforcement modeling and drawing to some extent, they typically only cover the forward generation direction from parameters to drawings, lacking the ability to reverse engineer existing drawings.
[0005] There are two main types of existing methods for reusing drawings. One type involves manually copying old drawings and then manually modifying lines, annotations, and reinforcement tables. While this method is intuitive, it requires a large amount of modification and is prone to omissions and errors. The other type uses ordinary CAD element recognition or drawing classification methods, which can identify lines, text, layers, or block names, but usually only obtain the element category or text content, and cannot restore the basis for reinforcement generation and engineering rules. For hydraulic reinforcement drawings, simply identifying which lines are on the drawing is insufficient to support parametric reuse. The key is to restore the engineering association between the reinforcement and its source outline, layout path, constraint boundaries, projection relationships, waterstop joints, and annotations.
[0006] A deeper deficiency in existing technologies lies in the disconnect between the forward generation and reverse engineering of reinforcement drawings. Forward generation systems focus on parameter-driven drawing generation, but their output typically only preserves static geometric information, losing the rules governing reinforcement generation and engineering semantics. Reverse engineering systems focus on extracting information from drawings, but lack unified data standards, making it difficult to interface with forward generation systems. This disconnect leads to a break in the "generation → drawing → modification → regeneration" chain, meaning historical drawings can only be archived as static files and cannot be transformed into editable parametric assets.
[0007] Specifically, existing technologies have the following shortcomings. First, the linkage capability after parameter modification is weak. For example, when the width of the box culvert, wall thickness, waterstop position, or tooth foot size changes, the cross-section, longitudinal section, plan, details, and reinforcement table all need to be manually adjusted synchronously, which can easily lead to a situation where one section has been modified but other sections have not been modified synchronously. Second, reinforcement objects lack complete engineering semantics. Ordinary CAD lines only record geometric positions and are difficult to express their source boundary lines, the component to which they belong, the section to which they belong, the type of reinforcement, the measurement rules, and the projection source. Third, cross-section representation is prone to duplicate or omission statistics. The same actual reinforcement may appear as line reinforcement, point reinforcement, or surface reinforcement in different views, which can easily be mistaken for different reinforcements when manually merging them. Fourth, hydraulic structures such as waterstop joints, construction joints, and tooth feet have special requirements for the disconnection, avoidance, offset, and reconstruction of reinforcement, and general drawing software lacks a dedicated processing mechanism. Fifth, manually compiling reinforcement numbers and reinforcement tables requires repeated verification of graphics, annotations, and quantities, which is inefficient and prone to problems such as duplicate numbers, missing quantities, or inconsistencies between annotations and the reinforcement table after multiple rounds of modifications. Sixth, existing reinforcement drawings are difficult to directly convert into modifiable parametric results; historical drawings can only be reused as static files, and the asset value of historical drawings cannot be fully realized. Seventh, the lack of a unified semantic data model as a bridge causes forward generation and reverse parsing to operate independently, and the data formats generated at different stages of the same project are incompatible, making it impossible to form a closed loop.
[0008] Therefore, there is an urgent need for a parametric generation and parsing method for hydraulic reinforcement drawings based on a unified semantic data model. This method should be able to automatically generate complete reinforcement drawings from hydraulic structure parameters and reverse-parse existing reinforcement drawings into modifiable parametric results. By using a unified data standard, the barriers between the two can be broken down, enabling full-process coverage of rapid drawing generation for new projects, reuse and modification of historical drawings, and assetization of design data. Summary of the Invention
[0009] To address the aforementioned technical problems, this invention provides a method for parametric generation and parsing of hydraulic reinforcement drawings, comprising: A unified semantic data model for hydraulic reinforcement drawings is constructed, which includes: component objects, section objects, contour objects, reinforcement objects, annotation objects, projection objects, and constraint objects. Based on the unified semantic data model, a forward-driven mode is executed: Hydraulic structure parameters are acquired, and these parameters are transformed into component objects, cross-section objects, contour objects, reinforcement objects, annotation objects, projection objects, and constraint objects. The following relationships are established: the source contour reference field of the reinforcement object points to the contour object; the source reinforcement reference field of the projection object points to the reinforcement object; the reinforcement identifier list of the annotation object points to the reinforcement object; the affected reinforcement identifier list of the constraint object points to the reinforcement object; and the projection correspondence in the cross-section correspondence list of the cross-section object. Based on the transformed unified semantic data model, a reinforcement diagram with semantic association information is generated. Based on the unified semantic data model, a reverse-driven mode is executed: Existing CAD reinforcement drawings are obtained; graphic elements and pre-stored association information are extracted from the existing CAD reinforcement drawings; based on the association information, the graphic elements are mapped to component objects, section objects, contour objects, reinforcement objects, annotation objects, projection objects, and constraint objects; the following relationships are established: the source contour reference field of the reinforcement object and the contour object; the source reinforcement reference field of the projection object and the reinforcement object; the reinforcement identifier list of the annotation object and the reinforcement object; the affected reinforcement identifier list of the constraint object and the reinforcement object; and the projection correspondence in the section correspondence list of the section object; and the structured parameter data output from the unified semantic data model obtained through mapping is used. A bidirectional mapping mechanism is established between the forward-driven mode and the reverse-driven mode. The bidirectional mapping mechanism includes a forward serialization interface and a reverse deserialization interface. The forward serialization interface is used to convert the data of the unified semantic data model generated by the forward-driven mode into the associated information and embed it into the CAD drawing. The reverse deserialization interface is used to restore the data extracted from the associated information by the reverse-driven mode back to the data of the unified semantic data model.
[0010] Furthermore, the component object includes a component identifier and a component type, and one component object corresponds to one engineering structural unit; The section object includes a section identifier, view type, insertion point coordinates and scale. A component object includes at least one section object. The section object also includes a section correspondence list. Each entry in the section correspondence list records the projection correspondence between the current section object and other section objects. The contour object includes a contour identifier, a contour type, and a sequence of geometric coordinates; a cross-section object includes at least one contour object. The rebar object includes a rebar identifier, a rebar type, a source contour reference field, and a section reference field. The source contour reference field points to a contour object, indicating that the rebar object is generated by offsetting the contour object. The section reference field points to a section object, indicating the section where the rebar object is located. The annotation object includes annotation identifiers, rebar numbers, diameters, and spacings, and one of the annotation objects points to at least one of the rebar objects through its list of rebar identifiers; The projection object includes a projection identifier, a source section reference field, a source reinforcement reference field, and a target section reference field. The source section reference field points to the section where the reinforcement object is located, the source reinforcement reference field points to the reinforcement object being projected, and the target section reference field points to the section where the projection is expressed. The projection object is used to record the expression correspondence of the reinforcement object in the target section. The constraint object includes a constraint identifier, constraint type, and geometric location. The constraint object also includes a list of affected rebar identifiers. Each entry in the list of affected rebar identifiers points to a rebar object affected by the constraint object. Each entry also includes an influence relationship type, which includes disconnect and trim. Furthermore, the forward drive mode includes the following steps: S1: Create a hydraulic structure parameter object, which includes shape parameters, structural parameters, joint surface parameters, reinforcement parameters, and drawing parameters; S2: Create multiple section objects based on the building type. Each section object includes a section name, view type, insertion point, scale, and relationship with other sections. S3: Generate a semantic contour based on the parameter object. The semantic contour includes an outer contour, an inner contour, a chamfer contour, a toothed contour, a waterstop line, a construction joint line, a protective layer boundary, and a reinforcement area boundary. The semantic contour stores the contour name, contour type, and geometric coordinates. S4: Generate a steel reinforcement object based on the semantic contour. The steel reinforcement object includes line reinforcement, point reinforcement, and surface reinforcement. The steel reinforcement object stores the steel reinforcement type, source contour identifier, and section identifier. S5: For reinforcement that needs to be expressed in other sections, determine the projection rules according to the view types of the source section and the target section, convert the reinforcement of the source section into point reinforcement, line reinforcement or surface reinforcement in the target section, and generate a projection object. The projection object saves the source section identifier, the source reinforcement identifier and the target section identifier. S6: Determine the geometric relationship between the steel reinforcement object and the waterstop line and construction joint line. For line reinforcement that crosses the waterstop line or construction joint line, segment it at the intersection and add anchorage or hook. For point reinforcement, divide the arrangement interval according to the waterstop line and recalculate the quantity and spacing. For surface reinforcement, cut the arrangement range according to the waterstop line and generate constraint objects. The constraint objects are associated with the affected steel reinforcement through the influence relationship. S7: The steel reinforcement objects are grouped and numbered according to their diameter, shape, length, bends, spacing, quantity, source outline, projection source, and waterstop segmentation relationship. For target expressions generated by cross-section projection, it is determined whether to inherit the source steel reinforcement number based on the projection source relationship and not to count repeatedly. S8: Generate reinforcement table entries based on the merged numbering results, write the reinforcement numbers and annotations back to the drawings, arrange the cross-sectional views, drawing frames, title blocks and reinforcement tables according to the drawing parameters, and output a complete CAD reinforcement drawing.
[0011] Furthermore, in S1, the shape parameters include the building length, width, height, wall thickness, base plate thickness, top plate thickness, and chamfer dimensions; the structural parameters include tooth height, tooth width, and tooth slope; the joint parameters include the distance from the waterstop to the structural surface, the cross-section where the waterstop is located, the location of the waterstop line, and the location of the construction joint; the reinforcement parameters include the reinforcement diameter, protective layer thickness, spacing, anchorage length, hook type, whether it is measured, and the measurement multiplier; the drawing parameters include the drawing scale, drawing frame, title block, explanatory text, and reinforcement table layout.
[0012] Furthermore, in S2, the view type includes cross section, longitudinal section, plan, joint surface and partial detail; in S4, the line reinforcement generates the reinforcement path according to the source outline and protective layer offset and adds anchorage, hook or extension treatment at the end, the point reinforcement is generated along the arrangement path according to the spacing, end avoidance distance and retention quantity, and the surface reinforcement generates a set of parallel reinforcements according to two control paths, limit boundary and arrangement direction.
[0013] Furthermore, in S5, the projection rules are determined based on the source section view type and the target section view type: when the source section is a cross section and the target section is a longitudinal section, the linear reinforcement in the cross section is projected as the point reinforcement in the longitudinal section; the target expression method saved by the projection object includes point reinforcement expression, linear reinforcement expression and surface reinforcement expression.
[0014] Furthermore, in S6, when the reinforcing bar crosses the waterstop line or construction joint line, the reinforcing bar is cut into two segments at the intersection of the waterstop line or construction joint line and the reinforcing bar, and anchorages or hooks are added at the cut points respectively; when the spot reinforcement is arranged in sections according to the waterstop line, the original arrangement path is divided into two independent arrangement sections at the waterstop line position, and the number and spacing of spot reinforcement in each section are calculated respectively; when the surface reinforcement is cut and arranged according to the waterstop line, the waterstop line is used as the cutting boundary, and independent reinforcement areas are formed on both sides of the waterstop line.
[0015] Furthermore, in S7, if the diameter, shape, bends and spacing of the multiple steel bars formed by the waterstop line are the same, they are merged into the same steel bar number; the target expression generated by the cross-section projection inherits the source steel bar number and is marked as non-repeated in the quantity statistics of the steel bar table.
[0016] Furthermore, the reverse-drive mode includes the following steps: T1: Read the outline elements, rebar elements, annotation elements, table elements and drawing frame range from the existing CAD rebar drawing, and read the pre-stored associated information, which includes the component to which it belongs, the section to which it belongs, the name of the rebar, the number of the rebar, the type of the rebar, the source outline, the source edge line, the layout path, the restriction boundary, the water stop mark, the construction joint mark, the diameter of the rebar, the spacing, the end treatment, the hook rules, the avoidance rules, the projection source and the measurement attributes; T2: Based on component identification, section name, view type, drawing frame range, insertion point, scale, and spatial location, collect the outline elements, reinforcement elements, annotation elements, and table elements in the drawings to the corresponding components and sections; T3: Read the corresponding source outline, source edge line, layout path or constraint boundary for each rebar element; T4: For line reinforcement elements, read their respective cross-sections, source edge lines, offset distances, starting anchorages, ending anchorages, starting bends, ending bends, hook types, water-stop cut-offs, construction joint breaks, reinforcement diameters, reinforcement numbers, and whether they are measured, and generate rule objects that can regenerate line reinforcement. T5: For point reinforcement elements, read their layout path, inner and outer attributes, starting avoidance distance, ending avoidance distance, point reinforcement spacing, number of point reinforcements, number of points retained at the starting point and the number of points retained at the ending point, water stop segmentation rules, reinforcement diameter and reinforcement number, and restore the static points to point reinforcement rule objects arranged at intervals along the specified path. T6: For the surface reinforcement element, read the first control path, the second control path, the first limit boundary, the second limit boundary, the layout direction, the reinforcement spacing, the trimming rules, the water-stopping trimming rules, the measurement attributes, the reinforcement diameter and the reinforcement number, and generate a surface reinforcement rule object defined by the path, boundary, direction and spacing. T7: For projected reinforcement elements, read the source section, source reinforcement, target section, target representation, projection direction, numbering inheritance rules, and whether the measurement is repeated, and generate a projection relationship object; T8: Match the rebar number, diameter, spacing, quantity, style, text label, and rebar table row information to the corresponding rebar object. The matching criteria include the pre-stored associated ID, rebar number, section, leader endpoint, label position, table row number, and spatial proximity. T9: Read the geometric positions of waterstop joints, construction joints, expansion joints, toothed feet, secondary concrete boundaries, reserved holes and embedded parts avoidance zones, and establish their influence relationships with the reinforcing steel objects. The influence relationships include disconnection, offset, avoidance, trimming, segmented arrangement and anchorage adjustment. T10: Output structured intermediate data organized according to the unified semantic data model, which can be used as input to the positive drive mode.
[0017] This invention also provides a system for parametric generation and parsing of hydraulic reinforcement drawings, comprising: The unified semantic data model engine is used to store and manage component objects, section objects, contour objects, reinforcement objects, annotation objects, projection objects, and constraint objects, as well as the pointing relationships between these objects, and provides conversion interfaces, serialization interfaces, and deserialization interfaces. The forward-driving module is used to take the parameters of the hydraulic structure as input, call the transformation interface of the unified semantic data model engine to create the component object, the cross-section object, the contour object, the reinforcement object, the annotation object, the projection object and the constraint object, and establish the pointing relationship between the objects to generate the reinforcement drawing result with semantic association information; The reverse-drive module is used to extract data from the drawing elements and associated information of the existing CAD reinforcement drawing as input, call the deserialization interface of the unified semantic data model engine to restore the associated information into the component object, the section object, the contour object, the reinforcement object, the annotation object, the projection object and the constraint object, establish the pointing relationship between the objects, and output structured parameter data. A bidirectional conversion interface connects the forward driving module and the reverse driving module, and is used to call the serialization interface of the unified semantic data model engine to output the data model state as the associated information, and to call the deserialization interface to restore the associated information back to the data model state.
[0018] The embodiments of the present invention have the following technical effects: First, this application fundamentally solves the problems of fragmented generation and parsing of reinforcement drawings and inconsistent data standards in existing technologies by constructing a unified semantic data model for hydraulic reinforcement drawings. This model defines component objects, section objects, contour objects, reinforcement objects, annotation objects, projection objects, and constraint objects, as well as the relationships between these objects, providing a common data foundation for both forward generation and reverse parsing. As a result, data generated at different stages of the same project are fully compatible in terms of format and semantics, eliminating information silos and semantic loss during data conversion.
[0019] Secondly, this application achieves a complete closed loop of bidirectional conversion based on the forward-driven and reverse-driven modes provided by the unified semantic data model. The forward-driven mode transforms parameters into a data model and embeds it into the drawings; the reverse-driven mode restores the data model data from the drawings; and the bidirectional mapping mechanism directly converts the parsed output into the generated input. This forms a complete lifecycle closed loop of "parameter input → forward generation → drawing output → reverse parsing → parameter correction → regeneration," making historical drawings no longer static archives but dynamically reusable assets. For typical box culvert reinforcement drawings, the modification process that originally required checking each view can be transformed into a single parameter update and automatic regeneration, significantly reducing the probability of missed modifications.
[0020] Third, this application uses semantic contours as the common basis for rebar generation and parsing. In the forward-driven mode, rebar rules reference contour names with engineering meaning rather than fixed coordinates, and in the reverse-driven mode, these semantic reference relationships are recovered from the drawing association information. When structural dimensions, waterstop positions, or tooth foot shapes change, the semantic contours are updated with the parameters, and the rebar generation rules remain valid. The rule objects parsed in the reverse-driven mode can recalculate paths after structural dimensions change instead of just saving the static coordinates of the old drawings. The bidirectional management of cross-section projection source relationships, the bidirectional processing of hydraulic structural constraints such as waterstop joints and construction joints, and the bidirectional linkage between rebar numbering and rebar tables are all based on corresponding objects in a unified data model, ensuring that the system's understanding of the data structure is completely consistent regardless of whether it is forward or reverse, avoiding problems such as duplicate statistics in rebar tables, inconsistent charts, and manual omissions and miscalculations. As a result, this application significantly improves the automation level of hydraulic rebar drawing design, drawing consistency, the reuse value of historical drawings, and the degree of data assetization of design results. Attached Figure Description
[0021] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0022] Figure 1 This is a flowchart of the method for parametric generation and parsing of hydraulic reinforcement diagrams provided in an embodiment of the present invention. Detailed Implementation
[0023] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below. Obviously, the described embodiments are only a part of the embodiments of this invention, and not all of them. Based on the embodiments of this invention, all other embodiments obtained by those skilled in the art without creative effort are part of this invention. Specific Implementation Example 1 This invention relates to the fields of water conservancy and hydropower engineering design, CAD engineering drawing, and parametric reinforcement drawing technology, specifically to a method and system for parametric generation and parsing of hydraulic reinforcement drawings based on a unified semantic data model. This method is applicable to the automatic generation of reinforcement drawings for new hydraulic structures such as box culverts, sluice gates, retaining walls, inverted siphons, stilling basins, and valve wells. It is also suitable for the reuse and renovation of existing reinforcement drawings and the data assetization of historical CAD drawings.
[0025] This application is based on a bidirectional driving mechanism of a unified semantic data model. Through preset forward generation rules and reverse parsing rules, it determines various parameters and spatial locations of reinforcing bars, thereby realizing the full life-cycle parametric design of hydraulic reinforcement drawings and the efficient reuse of historical drawings. Figure 1 This is a flowchart of the parametric generation and parsing method for hydraulic reinforcement drawings provided in an embodiment of the present invention. See also... Figure 1 Specifically, it includes the following steps.
[0026] First, a unified semantic data model for hydraulic reinforcement drawings is constructed. This model includes component objects, section objects, contour objects, reinforcement objects, annotation objects, projection objects, and constraint objects. Component objects contain component identifiers and component types. One component object corresponds to one engineering structural unit. Components are the top-level units in the reinforcement drawing organization; all sections, contours, reinforcements, and annotations belong to a specific component. Section objects contain section identifiers, view types, insertion point coordinates, and scales. One component object contains at least one section object, and each section object also contains a section correspondence list. Each entry in the section correspondence list records the projection correspondence between the current section object and other section objects. View types include cross sections, longitudinal sections, plans, joint surfaces, and partial details. The view type determines how reinforcement is represented in that section; for example, reinforcement may be displayed as line reinforcement or point reinforcement in a cross section, and as a projection of surface reinforcement in a longitudinal section. The system automatically creates multiple section objects based on the building type. Section organization can be implemented using dictionaries, lists, tree structures, or relational databases. A contour object contains a contour identifier, contour type, and a sequence of geometric coordinates. A section object contains at least one contour object. Contour types include outer contour, inner contour, chamfer contour, toothed contour, waterstop line, construction joint line, protective layer boundary, and reinforcement area boundary. Each contour line, in addition to storing geometric coordinates, also stores the aforementioned semantic information, allowing subsequent reinforcement rules to reference named contours such as "base plate.top," "side wall.inner," and "waterstop.left" instead of fixed coordinates. Semantic contours can be generated from straight lines, polylines, arcs, splines, or 3D boundary projections. A reinforcement object contains a reinforcement identifier, reinforcement type, a source contour reference field, and a section reference field. The source contour reference field points to a contour object, indicating that the reinforcement object was generated by offsetting from that contour object. The section reference field points to a section object, indicating the section where the reinforcement object is located. Reinforcement types include line reinforcement, point reinforcement, and surface reinforcement. Linear reinforcement objects also include source edge references, offset distances, start anchorages, end anchorages, start bends, end bends, and hook forms; point reinforcement objects also include layout path references, inner and outer attributes, start avoidance distances, end avoidance distances, point reinforcement spacing, point reinforcement quantity, and water stop segmentation rules; surface reinforcement objects also include first control path references, second control path references, first constraint boundary references, second constraint boundary references, layout direction, reinforcement spacing, and trimming rules. Annotation objects include annotation identifiers, reinforcement numbers, diameters, and spacings. An annotation object points to at least one reinforcement object through its list of reinforcement identifiers. Projection objects include projection identifiers, source section reference fields, source reinforcement reference fields, and target section reference fields. The source section reference field points to the section where the reinforcement object is located, the source reinforcement reference field points to the projected reinforcement object, and the target section reference field points to the section where the projection is represented. Projection objects are used to record the correspondence between reinforcement objects and their representations in the target section.Each constraint object contains a constraint identifier, constraint type, and geometric location. It also includes a list of affected rebar identifiers, with each entry pointing to a rebar object affected by the constraint. Each entry also contains an influence relationship type, including break and trim. Hydraulic constraint object types include waterstop joints, construction joints, expansion joints, toothed joints, secondary concrete boundaries, reserved holes, and embedded part avoidance zones. Semantic association rules include: each rebar must point to a contour object via a source contour reference field; point and surface rebars must point to at least one path via a layout path reference or control path reference; projected representations must point to the rebar object of the source section via a source rebar reference field; constrained rebars must point to at least one constraint object via the affected rebar identifier list; and all rebar objects corresponding to each rebar number must be aggregated into a single rebar table entry. Each object is referenced and associated using a unique identifier, forming a complete semantic network. This unified semantic data model can be implemented as class objects, structures, database tables, JSON, XML, or project configuration files, and provides conversion, serialization, and deserialization interfaces.
[0027] Based on the aforementioned unified semantic data model, the forward-driven mode takes hydraulic structure parameters as input, calls the transformation interface of the unified semantic data model engine to create various objects, and establishes the pointing relationships between objects. For example... Figure 1 As shown, the forward drive mode includes the following steps.
[0028] S1: Create parameter objects for hydraulic structures. Parameter objects include shape parameters, structural parameters, joint parameters, reinforcement parameters, and drawing parameters. Shape parameters include the structure's length, width, height, wall thickness, base slab thickness, top slab thickness, and chamfer dimensions; structural parameters include tooth height, tooth width, and tooth slope; joint parameters include the distance from the waterstop to the structural surface, the cross-section where the waterstop is located, the location of the waterstop line, and the location of the construction joint; reinforcement parameters include the reinforcement diameter, protective layer thickness, spacing, anchorage length, hook type, whether it is measured, and the measurement multiplier; drawing parameters include the drawing scale, drawing frame, title block, explanatory text, and reinforcement table layout. Parameter objects can be saved as class objects, structures, database tables, JSON, XML, or project configuration files.
[0029] S2: Establish a multi-section model for hydraulic structures. The system automatically creates multiple section objects based on the building type. Each section object includes a section name, view type, insertion point, scale, and relationships with other sections. View types can include cross sections, longitudinal sections, plans, joint surfaces, and detailed views. A unified section organization method ensures that subsequent outlines, reinforcement, annotations, and reinforcement tables are all assigned to specific engineering views. Section organization can be implemented using dictionaries, lists, tree structures, or relational databases.
[0030] S3: Generate Semantic Contours. The system generates outer contours, inner contours, chamfer contours, toothed contours, waterstop lines, construction joint lines, protective layer boundaries, and reinforcement area boundaries based on parameter objects. Each contour line stores semantic information such as geometric coordinates, contour name, and contour type. Subsequent reinforcement rules do not directly reference fixed coordinates but instead reference named contours such as "bottom plate.top," "side wall.inner," and "waterstop.left." Semantic contours can be generated from straight lines, polylines, arcs, spline curves, or 3D boundary projections.
[0031] S4: Generate rebar objects based on semantic contours. The system generates line bars, point bars, and surface bars according to preset rules. Line bars generate rebar paths based on the source contour and protective layer offset, and automatically add anchorage, hooks, or extensions at the ends; point bars are generated along the layout path according to spacing, end clearance distance, and retention quantity; surface bars generate a set of parallel bars based on two control paths, constraint boundaries, and layout direction. Each rebar object stores the rebar type, source contour identifier, and corresponding section identifier. Rebar generation rules can be written to code, configuration files, rule tables, or a visual rule editor.
[0032] S5: Generate cross-sectional projection representation. For reinforcement that needs to be represented in other cross-sections, the system determines the projection rules based on the view types of the source and target cross-sections, converting the source cross-section reinforcement into point reinforcement, line reinforcement, or surface reinforcement in the target cross-section. The projection rules are determined based on the source and target cross-section view types: when the source cross-section is a cross-section and the target cross-section is a longitudinal cross-section, the line reinforcement in the cross-section is projected as point reinforcement in the longitudinal cross-section. The projected target reinforcement saves the source cross-section identifier, source reinforcement identifier, and target cross-section identifier, used to determine whether they are different view representations of the same actual reinforcement during subsequent merging and numbering. The projection source relationship can be saved in CAD extended data, named object dictionary, external database, or independent project file.
[0033] S6: Perform constraint reconstruction for waterstop joints and construction joints. The system determines the geometric relationship between the reinforcing steel objects and the waterstop line and construction joint line. For linear reinforcement crossing the waterstop line or construction joint line, the linear reinforcement is cut into two segments at the intersection of the waterstop line or construction joint line and the linear reinforcement, and anchorages or hooks are added at the cut-off points. For point reinforcement, the original layout path is divided into two independent layout intervals at the waterstop line position, and the number and spacing of point reinforcement in each interval are calculated separately. For surface reinforcement, independent reinforcement areas are formed on both sides of the waterstop line, using the waterstop line as the cutting boundary. After reconstruction, the relationship between the original reinforcing steel, constraint objects, and reconstruction strategy is preserved.
[0034] S7: Rebar Numbering Based on Source Relationships. The system first reads the diameter, shape, length, bends, spacing, quantity, source outline, projection source, and waterstop segmentation relationship of each rebar. For target representations generated by cross-section projection, the system determines whether to inherit the source rebar number and avoid duplicate counting based on the projection source relationship. For multiple rebar segments formed by waterstop line cuts, if the diameter, shape, bends, and spacing of each segment are the same, they are merged into the same rebar number. Target representations generated by cross-section projection inherit the source rebar number and are marked as not being counted repeatedly in the rebar quantity statistics table. Subsequently, the system compares the rebar style and geometric characteristics within the allowable tolerance range to complete the unified numbering. Numbering can be performed using a combination of strict matching, tolerance comparison, rule priority, or manual confirmation.
[0035] S8: Generate reinforcement table, annotations, and final drawing. The system generates reinforcement table entries based on the merged numbering results, including at least the number, diameter, shape, single-strand length, quantity, total length, and weight. Reinforcement numbers and annotations are automatically written back to the drawing, maintaining the association between the reinforcement table and drawing objects. Finally, the system arranges each section view, title block, explanatory text, and reinforcement table according to the drawing parameters, outputting a complete CAD reinforcement drawing. All objects converted from the unified semantic data model and their relationships are embedded or attached to the drawing in the form of CAD extended data, element attributes, named object dictionaries, or external files. The final drawing can be further output in DWG or DXF format.
[0036] like Figure 1 As shown, the reverse-driven mode takes existing CAD reinforcement drawings as input, extracts and restores semantic association information from the elements and related information of the drawings, calls the deserialization interface of the unified semantic data model engine to restore the association information into objects and establish the pointing relationships between objects. Specifically, it includes the following steps.
[0037] T1: Read Existing Reinforcement Drawings and Related Information. The system reads outline elements, reinforcement elements, annotation elements, table elements, and drawing frame range from existing CAD reinforcement drawings. Related information includes the component to which it belongs, the section to which it belongs, reinforcement name, reinforcement number, reinforcement type, source outline, source boundary, layout path, restriction boundary, waterstop mark, construction joint mark, reinforcement diameter, spacing, end treatment, hook rules, avoidance rules, projection source, and measurement attributes. Related information can be pre-saved in CAD extended data, element attributes, named object dictionaries, block attributes, external JSON files, XML files, or relational databases. For drawings with incomplete related information, auxiliary matching can be performed based on layer, color, line type, block name, text content, leader endpoints, spatial location, and table row information. Objects that cannot be uniquely identified are output as a list to be confirmed.
[0038] T2: Establish component and section hierarchy. Based on component identifiers, section names, view types, drawing frame ranges, insertion points, scales, and spatial locations, the system aggregates outline elements, reinforcement elements, annotation elements, and table elements from drawings to their corresponding components and sections, reconstructing the hierarchical structure of component and section objects in the unified semantic data model at the data level. Each section must at least store its section name, view type, insertion point, scale, associated component, outline set, reinforcement set, annotation set, and projection relationship with other sections. Component and section aggregation can be achieved based on drawing frame ranges, section numbers, view types, insertion points, scales, spatial bounding boxes, or manually specified ranges.
[0039] T3: Read and restore source contours, source edges, and layout paths. The system reads the corresponding source contour, source edge, layout path, or constraint boundary for each rebar element. For example, linear rebar can originate from "outer contour.right edge," point rebar can originate from "sidewall.inner edge," and surface rebar can be defined by a first control path, a second control path, and two constraint boundaries. The core of this step is that the system does not guess rules based on the graphic appearance, but rather restores the relationship between rebar and engineering boundaries based on the association information of drawing elements. This means mapping static elements in the drawing back to contour object references and semantic associations in the unified semantic data model.
[0040] T4: Restore Linear Reinforcement Generation Rules. For linear reinforcement elements, the system reads their respective cross-sections, source edges, offset distances, starting anchorages, ending anchorages, starting bends, ending bends, hook types, waterstop cutoffs, construction joint breaks, reinforcement diameters, reinforcement numbers, and whether measurement information is available, generating a rule object that can regenerate linear reinforcement. This rule object can recalculate the path after structural dimensions change, instead of simply saving static line segments from the old drawing.
[0041] T5: Restore Reinforcement Generation Rules. For reinforcement elements, the system reads their layout path, inner and outer attributes, start-point avoidance distance, end-point avoidance distance, reinforcement spacing, reinforcement quantity, start-point retention quantity, end-point retention quantity, water-stop segmentation rules, reinforcement diameter, and reinforcement number. The system restores a set of static points into reinforcement rule objects arranged along the specified path at intervals, allowing the reinforcement quantity and position to be recalculated as parameters change.
[0042] T6: Restore Reinforcement Generation Rules. For reinforcement elements, the system reads the first control path, second control path, first constraint boundary, second constraint boundary, layout direction, reinforcement spacing, trimming rules, water-stopping trimming rules, measurement attributes, reinforcement diameter, and reinforcement number. Reinforcement is no longer treated as multiple independent ordinary line segments, but is restored as a reinforcement rule object defined by path, boundary, direction, and spacing.
[0043] T7: Restore the cross-sectional projection relationship. For projected reinforcement elements, the system reads the source section, source reinforcement, target section, target representation, projection direction, numbering inheritance rules, and whether there is duplicate measurement, and generates a projection relationship object. Through this projection relationship, the system can distinguish between the source reinforcement and the represented reinforcement in the target section, avoiding duplicate counting of the same actual reinforcement in the reinforcement table.
[0044] T8: Matching Rebar Labels and Rebar Tables. The system matches rebar numbers, diameters, spacing, quantities, styles, text labels, and rebar table row information to the corresponding rebar objects. Matching criteria include pre-stored association IDs, rebar numbers, corresponding cross-sections, leader endpoints, label positions, table row numbers, and spatial proximity. When a unique match cannot be found, the system marks the relevant objects as pending confirmation and does not directly include them in the final parametric deliverables.
[0045] T9: Restore the influence relationships of hydraulic constraints. The system reads the geometric positions of waterstop joints, construction joints, expansion joints, toothed joints, secondary concrete boundaries, reserved holes, and embedded part avoidance zones, and establishes their influence relationships with the reinforcing steel objects. Influence relationships include disconnection, offset, avoidance, trimming, segmented arrangement, and anchorage adjustment.
[0046] T10: Outputs parametrically parsed intermediate data and supports regeneration. The system outputs structured intermediate data organized according to a unified semantic data model. This structured intermediate data fully conforms to the specifications of the unified semantic data model and can therefore be directly used as input for the forward-driven mode. When component dimensions, waterstop locations, rebar diameters, spacing, or cross-sectional relationships change, the system can regenerate rebar drawings, rebar annotations, and rebar tables based on the restored rules, and perform consistency verification between the regenerated results and the original drawings or target parameters. The output format of the structured intermediate data can be an object model, database record, JSON, XML, or script configuration. The regeneration process can be executed automatically or after the user confirms the parameters. The target drawing format can be DWG or DXF.
[0047] The bidirectional mapping mechanism involves transformation operations in two directions. From forward to reverse mapping: In the forward-driven mode, when outputting drawings in step S8, the complete state after the transformation of the unified semantic data model is converted into an associated information format via a serialization interface, embedded or attached to the CAD drawings. Specifically, key semantic information can be written into CAD extended data or element attributes, complex relationships can be written into external JSON files, XML files, or relational databases, and file reference paths can be saved in the drawings. In the reverse-driven mode, when reading drawings in step T1, this associated information is read and restored into the memory data of the unified semantic data model via a deserialization interface. From reverse to forward mapping: The structured intermediate data output in step T10 of the reverse-driven mode is itself the complete data of the unified semantic data model. The bidirectional mapping mechanism directly fills this data into the parameter object required by step S1 of the forward-driven mode through format conversion and parameter extraction. Specifically, shape parameters, construction parameters, joint parameters, rebar parameters, and drawing parameters are extracted from the data model and constructed as the input parameter object for the forward-driven mode, thereby initiating a new round of forward generation. For parameters that do not match perfectly, the system allows users to confirm and fine-tune the parameters before regeneration. Through the above bidirectional mapping mechanism, this invention forms a complete closed loop: parameter input → forward drive → semantic drawing → reverse drive → structured intermediate data → parameter correction → forward drive regeneration → new drawing output.
[0048] This application is based on a bidirectional driving mechanism of a unified semantic data model. Through preset forward generation rules and reverse parsing rules, it determines various parameters and spatial locations of steel bars, realizes the full life cycle parametric design of hydraulic steel bar drawings and efficient reuse of historical drawings, thereby improving design efficiency, ensuring drawing consistency, and activating the value of historical data assets. Specific Implementation Example 2 This invention provides a parametric generation method and system for hydraulic reinforcement drawings. The method takes the shape parameters, structural parameters, reinforcement parameters, and drawing parameters of the hydraulic structure as input, and achieves a closed loop from parameter input to complete reinforcement drawing output through steps such as multi-section organization, semantic contour modeling, reinforcement object generation, cross-section projection, waterstop joint constraint reconstruction, source relationship merging and numbering, and reinforcement table output.
[0050] The method of the present invention includes the following steps.
[0051] Step 1: Create parameter objects for hydraulic structures. These parameter objects should include at least the following: structural parameters such as length, width, height, wall thickness, base slab thickness, top slab thickness, and chamfer dimensions; special structural parameters such as tooth height, tooth width, and tooth slope; joint parameters such as distance from the waterstop to the structural surface, the cross-section where the waterstop is located, the location of the waterstop line, and the location of the construction joint; rebar parameters such as rebar diameter, protective layer thickness, spacing, anchorage length, hook type, whether it is measured, and measurement multiple; and drawing parameters such as drawing scale, drawing frame, title block, explanatory text, and rebar table layout.
[0052] Step two: Establish a multi-section model for hydraulic structures. The system automatically creates multiple section objects based on the building type. Each section object includes a section name, section key, view type, insertion point, scale, profile builder, reinforcement builder, annotation builder, and relationships with other sections. The view types can include cross sections, longitudinal sections, plans, joint surfaces, and partial details. Through a unified section organization method, subsequent profiles, reinforcement, annotations, and reinforcement tables can all be assigned to specific engineering views.
[0053] Step 3: Generate semantic contours. The system generates outer contours, inner contours, chamfer contours, toothed contours, waterstop lines, construction joint lines, protective layer boundaries, and reinforcement area boundaries based on the parameter objects. Each contour line, in addition to storing geometric coordinates, also stores semantic information such as section keys, component names, contour names, contour types, adjacency relationships, and whether it can serve as a reinforcement source boundary. Subsequent reinforcement rules do not directly reference fixed coordinates but instead use named contours such as "bottom plate.top," "side wall.inner," and "waterstop.left."
[0054] Step four: Generate reinforcement objects based on semantic contours. The system generates line reinforcement, point reinforcement, and surface reinforcement according to preset rules. Line reinforcement generates reinforcement paths based on the source contour and protective layer offset, and automatically adds anchorage, hooks, or extensions at the ends; point reinforcement is generated along the arrangement path according to spacing, end clearance distance, and retention quantity; surface reinforcement generates a set of parallel reinforcements based on two control paths, constraint boundaries, and arrangement direction. Each reinforcement object saves the source contour, offset direction, reinforcement type, reinforcement style, end treatment, measurement attributes, and the section it belongs to.
[0055] Step 5: Generate cross-sectional projection representations. For reinforcement that needs to be represented on other cross-sections, the system automatically determines the projection rules based on the view types of the source and target sections, converting the source section reinforcement into point reinforcement, line reinforcement, or surface reinforcement in the target section. The projected target reinforcement saves the source section, source reinforcement, target section, target representation method, and projection relationship, which are used to determine whether they are different view representations of the same actual reinforcement during subsequent merging and numbering.
[0056] Step Six: Reconstruct the constraints of the waterstop and construction joint. The system determines the geometric relationship between the reinforcing bars and the waterstop line, construction joint line, and toothed edge boundary. For linear reinforcing bars crossing the waterstop or construction joint, segments are added at the intersection points, and anchorages or hooks are added according to rules; for point reinforcing bars, the arrangement intervals are divided according to the waterstop line, and the quantity and spacing are recalculated; for surface reinforcing bars, the arrangement range is trimmed according to the waterstop line, forming independent arrangement areas on both sides of the waterstop. After reconstruction, the reinforcing bars retain the association relationship between the original reinforcing bars, constraint objects, and reconstruction strategies.
[0057] Step 7: Merge and number the reinforcing bars based on their source relationships. The system first reads the diameter, shape, length, bends, spacing, quantity, source outline, projection source, and waterstop segmentation relationship of each reinforcing bar. For target representations generated from cross-section projections, the system determines whether to inherit the source reinforcing bar number and avoid duplicate counting based on the projection source relationship. For multiple segments of reinforcing bars formed by waterstop cutting, the system determines whether to merge them into the same number or number them separately based on the waterstop segmentation relationship and construction rules. Subsequently, the system compares the reinforcing bar styles and geometric features within the allowable tolerance range to complete the unified numbering.
[0058] Step 8: Generate the reinforcement table, annotations, and final drawing. The system generates reinforcement table entries based on the merged numbering results, including at least the number, diameter, shape, single-piece length, quantity, total length, weight, or remarks. Reinforcement numbers and annotations are automatically written back to the drawing, maintaining the association between the reinforcement table and the drawing objects. Finally, the system arranges the cross-sectional views, title block, explanatory text, and reinforcement table according to the drawing parameters, outputting a complete CAD reinforcement drawing. It can also be further exported to DWG, DXF, PDF, or other engineering drawing formats. Specific Implementation Example 3 This invention provides a method and system for reparameterizing existing reinforcement drawings. The method reads reinforcement elements, outline elements, annotation elements, reinforcement tables, and associated information of drawing elements stored within existing CAD reinforcement drawings. It then groups drawing objects by component and section, restores the generation rules for line reinforcement, point reinforcement, surface reinforcement, and projected reinforcement, matches reinforcement annotation and reinforcement table information, recovers the influence relationships of hydraulic constraints, and outputs intermediate data that can be used for parametric regeneration.
[0060] The method of the present invention includes the following steps.
[0061] Step 1: Read existing reinforcement drawings and related information. The system reads the outline elements, reinforcement elements, annotation elements, table elements, drawing frame range, and project attributes from existing CAD reinforcement drawings. The related information may include the component to which it belongs, the section to which it belongs, the reinforcement name, the reinforcement number, the reinforcement type, the source outline, the source boundary line, the layout path, the restriction boundary, the water-stop mark, the construction joint mark, the reinforcement diameter, the spacing, the end treatment, the hook rules, the avoidance rules, the projection source, and the measurement attributes. The related information can be pre-saved in CAD extended data, element attributes, the named object dictionary, external files, or the project database.
[0062] Step two: Establish component and section hierarchy. The system, based on component identification, section name, view type, drawing frame range, insertion point, scale, and spatial location, aggregates outlines, reinforcement, annotations, and table objects from the drawing to their corresponding components and sections. Each section must at least retain its section name, view type, insertion point, scale, associated component, outline set, reinforcement set, annotation set, and projection relationship with other sections.
[0063] Step 3: Read and restore the source outline, source edge line, and layout path. The system reads the corresponding source outline, source edge line, layout path, or constraint boundary for each rebar element. For example, linear rebar can originate from "outer outline.right edge line", point rebar can originate from "side wall.inner edge line", and surface rebar can be defined by the first control path, the second control path, and two constraint boundaries. The core of this step is that the system does not guess the rules based on the graphic appearance, but rather restores the relationship between the rebar and the engineering boundary based on the association information of the drawing elements.
[0064] Step four: Restore the line reinforcement generation rules. For line reinforcement, the system reads its corresponding cross-section, source edge line, offset distance, starting anchorage, ending anchorage, starting bend, ending bend, hook type, waterstop cutoff, construction joint break, reinforcement diameter, reinforcement number, and whether it is measured, and forms a rule object that can regenerate line reinforcement. This rule object can recalculate the path after the structural dimensions change, instead of just saving the static line segments from the old drawing.
[0065] Step 5: Restore the reinforcement generation rules. For each reinforcement point, the system reads its layout path, inner and outer attributes, starting point avoidance distance, ending point avoidance distance, reinforcement spacing, number of reinforcement points, number of points retained at the starting point, number of points retained at the ending point, water stop segmentation rules, reinforcement diameter, and reinforcement number. The system restores a set of static points into reinforcement results arranged according to the rules along the specified path, allowing the number and position of reinforcement points to be recalculated as parameters change.
[0066] Step Six: Restore the Reinforcement Generation Rules. For reinforcement, the system reads the first control path, second control path, first constraint boundary, second constraint boundary, layout direction, rebar spacing, cutting rules, water-stop cutting rules, measurement attributes, rebar diameter, and rebar number. Reinforcement is no longer treated as multiple independent ordinary line segments, but is restored to the regional reinforcement layout rules jointly defined by path, boundary, direction, and spacing.
[0067] Step 7: Restore the cross-sectional projection relationship. For projected reinforcement, the system reads the source section, source reinforcement, target section, target representation, projection direction, numbering inheritance rules, and whether there is duplicate measurement. Through this projection relationship, the system can distinguish between the source reinforcement and the represented reinforcement in the target section, avoiding duplicate counting of the same actual reinforcement in the reinforcement table.
[0068] Step 8: Match rebar labels and rebar tables. The system matches rebar numbers, diameters, spacing, quantities, styles, text labels, and rebar table row information to the corresponding rebar objects. Matching criteria may include pre-stored association IDs, rebar numbers, corresponding cross-sections, leader endpoints, label positions, table row numbers, text content, and spatial proximity. When a unique match cannot be found, the system marks the relevant objects as pending confirmation and does not directly include them in the final parametric deliverables.
[0069] Step Nine: Restore the Influence Relationships of Hydraulic Constraints. The system reads hydraulic constraint objects such as waterstop joints, construction joints, expansion joints, toothed joints, secondary concrete boundaries, reserved holes, and embedded part avoidance zones, and establishes their influence relationships with the reinforcing steel. Influence relationships include reinforcing steel disconnection, offset, avoidance, trimming, segmented arrangement, anchorage adjustment, and whether they affect quantity statistics.
[0070] Step 10: Output parametric parsing intermediate data and support regeneration. The system outputs intermediate data organized according to "component—section—outline—reinforcement—annotation—projection—constraint". This intermediate data can be used as input for the parametric generation system. When the component dimensions, waterstop location, reinforcement diameter, spacing, or section relationship changes, the system can regenerate the reinforcement drawing, reinforcement annotation, and reinforcement table based on the restored rules, and verify the consistency between the regenerated results and the original drawing or target parameters.
[0071] To fully verify the advantages and beneficial effects of the parametric generation of hydraulic reinforcement drawings and the reverse analysis of existing drawings of this invention in terms of work efficiency compared with existing traditional manual drawing and conventional CAD drawing techniques, multiple parallel comparative experiments were conducted under the same engineering drawing conditions, the same drawing standards, and the same computer hardware environment. The performance indicators of the traditional drawing method and the parametric automatic drawing and reverse analysis of existing drawings of this invention were tested respectively. The experiments were conducted on box culverts and gate chambers of hydraulic structures. The specific test comparison results are shown in the table below.
[0072] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the technical solutions of the embodiments of the present invention.
Claims
1. A method for parametric generation and parsing of hydraulic reinforcement drawings, characterized in that, include: A unified semantic data model for hydraulic reinforcement drawings is constructed, which includes: component objects, section objects, contour objects, reinforcement objects, annotation objects, projection objects, and constraint objects. Based on the unified semantic data model, a forward-driven mode is executed: hydraulic structure parameters are obtained, and the hydraulic structure parameters are transformed into component objects, cross-section objects, contour objects, reinforcement objects, annotation objects, projection objects, and constraint objects. Based on the transformed unified semantic data model, reinforcement diagram results with semantic association information are generated. Based on the unified semantic data model, the reverse-driven mode is executed as follows: an existing CAD reinforcement drawing is obtained, graphic elements and pre-stored association information are extracted from the existing CAD reinforcement drawing, and the graphic elements are mapped to the component object, the section object, the contour object, the reinforcement object, the annotation object, the projection object and the constraint object according to the association information. The structured parameter data of the unified semantic data model is obtained based on the mapping result. A bidirectional mapping mechanism is established between the forward-driven mode and the reverse-driven mode. The bidirectional mapping mechanism includes a forward serialization interface and a reverse deserialization interface. The forward serialization interface is used to convert the data of the unified semantic data model generated by the forward-driven mode into the associated information and embed it into the CAD drawing. The reverse deserialization interface is used to restore the data extracted from the associated information by the reverse-driven mode back to the data of the unified semantic data model.
2. The method for parametric generation and parsing of hydraulic reinforcement drawings according to claim 1, characterized in that, The component object includes a component identifier and a component type, and one component object corresponds to one engineering structural unit; The section object includes a section identifier, view type, insertion point coordinates and scale. A component object includes at least one section object. The section object also includes a section correspondence list. Each entry in the section correspondence list records the projection correspondence between the current section object and other section objects. The contour object includes a contour identifier, a contour type, and a sequence of geometric coordinates; a cross-section object includes at least one contour object. The rebar object includes a rebar identifier, a rebar type, a source contour reference field, and a section reference field. The source contour reference field points to a contour object, indicating that the rebar object is generated by offsetting the contour object. The section reference field points to a section object, indicating the section where the rebar object is located. The annotation object includes annotation identifiers, rebar numbers, diameters, and spacings, and one of the annotation objects points to at least one of the rebar objects through its list of rebar identifiers; The projection object includes a projection identifier, a source section reference field, a source reinforcement reference field, and a target section reference field. The source section reference field points to the section where the reinforcement object is located, the source reinforcement reference field points to the reinforcement object being projected, and the target section reference field points to the section where the projection is expressed. The projection object is used to record the expression correspondence of the reinforcement object in the target section. The constraint object includes a constraint identifier, constraint type, and geometric location. The constraint object also includes a list of affected rebar identifiers, each entry in the list of affected rebar identifiers pointing to a rebar object affected by the constraint object. Each entry also includes an influence relationship type, which includes disconnect and trim.
3. The method for parametric generation and parsing of hydraulic reinforcement drawings according to claim 1, characterized in that, Converting the parameters of the hydraulic structure into component objects, cross-section objects, contour objects, reinforcement objects, annotation objects, projection objects, and constraint objects includes establishing the pointing relationship between the source contour reference field of the reinforcement object and the contour object, the pointing relationship between the source reinforcement reference field of the projection object and the reinforcement object, the pointing relationship between the reinforcement identifier list of the annotation object and the reinforcement object, the pointing relationship between the affected reinforcement identifier list of the constraint object and the reinforcement object, and the projection correspondence in the cross-section correspondence list of the cross-section object; Mapping the primitives to the component object, the section object, the contour object, the reinforcement object, the annotation object, the projection object, and the constraint object based on the associated information includes establishing the pointing relationship between the source contour reference field of the reinforcement object and the contour object, the pointing relationship between the source reinforcement reference field of the projection object and the reinforcement object, the pointing relationship between the reinforcement identifier list of the annotation object and the reinforcement object, the pointing relationship between the affected reinforcement identifier list of the constraint object and the reinforcement object, and the projection correspondence in the section correspondence list of the section object.
4. The method for parametric generation and parsing of hydraulic reinforcement drawings according to claim 1, characterized in that, The positive drive mode includes the following steps: S1: Create a hydraulic structure parameter object, which includes shape parameters, structural parameters, joint surface parameters, reinforcement parameters, and drawing parameters; S2: Create multiple section objects based on the building type. Each section object includes a section name, view type, insertion point, scale, and relationship with other sections. S3: Generate a semantic contour based on the parameter object. The semantic contour includes an outer contour, an inner contour, a chamfer contour, a toothed contour, a waterstop line, a construction joint line, a protective layer boundary, and a reinforcement area boundary. The semantic contour stores the contour name, contour type, and geometric coordinates. S4: Generate a steel reinforcement object based on the semantic contour. The steel reinforcement object includes line reinforcement, point reinforcement, and surface reinforcement. The steel reinforcement object stores the steel reinforcement type, source contour identifier, and section identifier. S5: For reinforcement that needs to be expressed in other sections, determine the projection rules according to the view types of the source section and the target section, convert the reinforcement of the source section into point reinforcement, line reinforcement or surface reinforcement in the target section, and generate a projection object. The projection object saves the source section identifier, the source reinforcement identifier and the target section identifier. S6: Determine the geometric relationship between the steel reinforcement object and the waterstop line and construction joint line. For line reinforcement that crosses the waterstop line or construction joint line, segment it at the intersection and add anchorage or hook. For point reinforcement, divide the arrangement interval according to the waterstop line and recalculate the quantity and spacing. For surface reinforcement, cut the arrangement range according to the waterstop line and generate constraint objects. The constraint objects are associated with the affected steel reinforcement through the influence relationship. S7: The steel reinforcement objects are grouped and numbered according to their diameter, shape, length, bends, spacing, quantity, source outline, projection source, and waterstop segmentation relationship. For target expressions generated by cross-section projection, it is determined whether to inherit the source steel reinforcement number based on the projection source relationship and not to count repeatedly. S8: Generate reinforcement table entries based on the merged numbering results, write the reinforcement numbers and annotations back to the drawings, arrange the cross-sectional views, drawing frames, title blocks and reinforcement tables according to the drawing parameters, and output a complete CAD reinforcement drawing.
5. The method for parametric generation and parsing of hydraulic reinforcement drawings according to claim 4, characterized in that, In S1, the shape parameters include the building length, width, height, wall thickness, base plate thickness, top plate thickness, and chamfer dimensions; the structural parameters include tooth height, tooth width, and tooth slope; the joint parameters include the distance from the waterstop to the structural surface, the cross-section where the waterstop is located, the location of the waterstop line, and the location of the construction joint; the reinforcement parameters include the reinforcement diameter, protective layer thickness, spacing, anchorage length, hook type, whether it is measured, and the measurement multiplier; the drawing parameters include the drawing scale, drawing frame, title block, explanatory text, and reinforcement table layout.
6. The method for parametric generation and parsing of hydraulic reinforcement drawings according to claim 4, characterized in that, In S2, the view types include cross-section, longitudinal section, plan, joint surface, and partial detail; in S4, the line reinforcement generates a reinforcement path based on the source contour and protective layer offset, and adds anchorage, hook, or extension treatment at the end; the point reinforcement is generated along the arrangement path according to the spacing, end avoidance distance, and retention quantity; the surface reinforcement generates a set of parallel reinforcements based on two control paths, limit boundaries, and arrangement direction.
7. The method for parametric generation and parsing of hydraulic reinforcement drawings according to claim 4, characterized in that, In step S6, when the reinforcing bar crosses the waterstop line or construction joint line, the reinforcing bar is cut into two segments at the intersection of the waterstop line or construction joint line and the reinforcing bar, and anchorages or hooks are added at the cut points respectively; when the point reinforcement is arranged in sections according to the waterstop line, the original arrangement path is divided into two independent arrangement sections at the waterstop line position, and the number and spacing of point reinforcement in each section are calculated respectively; when the surface reinforcement is cut according to the waterstop line, the waterstop line is used as the cutting boundary, and independent reinforcement areas are formed on both sides of the waterstop line.
8. The method for parametric generation and parsing of hydraulic reinforcement drawings according to claim 4, characterized in that, In S7, multiple segments of reinforcing bars formed by cutting off the waterstop line are grouped into the same reinforcing bar number if the diameter, shape, bend and spacing of each segment are the same; the target expression generated by the cross section projection inherits the source reinforcing bar number and is marked as non-repeated in the quantity statistics of the reinforcing bar table.
9. The method for parametric generation and parsing of hydraulic reinforcement drawings according to claim 1, characterized in that, The reverse drive mode Includes the following steps: T1: Read the outline elements, rebar elements, annotation elements, table elements and drawing frame range from the existing CAD rebar drawing, and read the pre-stored associated information, which includes the component to which it belongs, the section to which it belongs, the name of the rebar, the number of the rebar, the type of the rebar, the source outline, the source edge line, the layout path, the restriction boundary, the water stop mark, the construction joint mark, the diameter of the rebar, the spacing, the end treatment, the hook rules, the avoidance rules, the projection source and the measurement attributes; T2: Based on component identification, section name, view type, drawing frame range, insertion point, scale, and spatial location, collect the outline elements, reinforcement elements, annotation elements, and table elements in the drawings to the corresponding components and sections; T3: Read the corresponding source outline, source edge line, layout path or constraint boundary for each rebar element; T4: For line reinforcement elements, read their respective cross-sections, source edge lines, offset distances, starting anchorages, ending anchorages, starting bends, ending bends, hook types, water-stop cut-offs, construction joint breaks, reinforcement diameters, reinforcement numbers, and whether they are measured, and generate rule objects that can regenerate line reinforcement. T5: For point reinforcement elements, read their layout path, inner and outer attributes, starting avoidance distance, ending avoidance distance, point reinforcement spacing, number of point reinforcements, number of points retained at the starting point and the number of points retained at the ending point, water stop segmentation rules, reinforcement diameter and reinforcement number, and restore the static points to point reinforcement rule objects arranged at intervals along the specified path. T6: For the surface reinforcement element, read the first control path, the second control path, the first limit boundary, the second limit boundary, the layout direction, the reinforcement spacing, the trimming rules, the water-stopping trimming rules, the measurement attributes, the reinforcement diameter and the reinforcement number, and generate a surface reinforcement rule object defined by the path, boundary, direction and spacing. T7: For projected reinforcement elements, read the source section, source reinforcement, target section, target representation, projection direction, numbering inheritance rules, and whether the measurement is repeated, and generate a projection relationship object; T8: Match the rebar number, diameter, spacing, quantity, style, text label, and rebar table row information to the corresponding rebar object. The matching criteria include the pre-stored associated ID, rebar number, section, leader endpoint, label position, table row number, and spatial proximity. T9: Read the geometric positions of waterstop joints, construction joints, expansion joints, toothed feet, secondary concrete boundaries, reserved holes and embedded parts avoidance zones, and establish their influence relationships with the reinforcing steel objects. The influence relationships include disconnection, offset, avoidance, trimming, segmented arrangement and anchorage adjustment. T10: Output structured intermediate data organized according to the unified semantic data model, which can be used as input to the positive drive mode.
10. A system for parametric generation and parsing of hydraulic reinforcement drawings, characterized in that, The method for parametric generation and parsing of hydraulic reinforcement drawings as described in any one of claims 1-9 includes: The unified semantic data model engine is used to store and manage component objects, section objects, contour objects, reinforcement objects, annotation objects, projection objects, and constraint objects, as well as the pointing relationships between these objects, and provides conversion interfaces, serialization interfaces, and deserialization interfaces. The forward-driving module is used to take the parameters of the hydraulic structure as input, call the transformation interface of the unified semantic data model engine to create the component object, the cross-section object, the contour object, the reinforcement object, the annotation object, the projection object and the constraint object, and establish the pointing relationship between the objects to generate the reinforcement drawing result with semantic association information; The reverse-drive module is used to extract data from the drawing elements and associated information of the existing CAD reinforcement drawing as input, call the deserialization interface of the unified semantic data model engine to restore the associated information into the component object, the section object, the contour object, the reinforcement object, the annotation object, the projection object and the constraint object, establish the pointing relationship between the objects, and output structured parameter data. A bidirectional conversion interface connects the forward driving module and the reverse driving module, and is used to call the serialization interface of the unified semantic data model engine to output the data model state as the associated information, and to call the deserialization interface to restore the associated information back to the data model state.