An automatic design optimization method and system for the water supply and drainage system of rail transit

By using line elements-based detailed drawing project family, parameterized models and automated drawing algorithms in the design of water supply and drainage systems of rail transit stations, the problems of low design efficiency and high error rate in the existing technology are solved, and efficient and accurate system diagram design and real-time update are achieved.

CN118395564BActive Publication Date: 2025-06-20BEIJING URBAN CONSTRUCTION DESIGN & DEVELOPMENT GROUP CO LIMITED
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410612590.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-17
Publication Date
2025-06-20
Estimated Expiration
2044-05-17

AI Technical Summary

Technical Problem

The prior art has problems such as low design efficiency, high error rate, excessive graph size, weak abstraction ability and inability to achieve automatic updates in the design of water supply and drainage systems of rail transit stations, which is difficult to meet the needs of efficient and precise design.

Method used

The method of building a detailed project family based on line elements is adopted to create a pipeline parameterized model and a pipeline attachment parameterized model. The system diagram is automatically drawn and written through the axial measurement projection coordinate conversion algorithm module and the pipeline connection algorithm module, and the real-time update between the model and the drawing is achieved through the water supply and drainage system diagram update comparison algorithm unit and the automation script plug-in program unit.

Benefits of technology

It improves design efficiency and accuracy, reduces error rates, realizes automatic drawing of system diagrams and parameter writing, and updates system information in a timely and accurate manner, significantly improving the accuracy and consistency of design data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118395564B_ABST
    Figure CN118395564B_ABST
Patent Text Reader

Abstract

The present invention provides an automatic design optimization method and system for the water supply and drainage system of rail transit. A detail drawing project family is set up based on line elements, a symbol family is embedded in the detail drawing project family, a quick drawing mark is set, and the expression elements of the drawing are kept to adaptively adjust in size according to the drawing scale. A parametric model of pipelines and a parametric model of pipeline accessories are created, a parametric model library of the water supply and drainage system is constructed, and a component library of the water supply and drainage system diagram is obtained. Through the axonometric projection coordinate conversion algorithm module, the connection and scaling projection of pipelines in the system are carried out. Through the pipeline connection algorithm module, the phenomena of visual disconnection or visual misalignment are eliminated. Through the automatic drawing and parameter writing module of the system diagram, the automatic drawing of the system diagram and the automatic parameter writing are carried out. Through the water supply and drainage system diagram update and comparison algorithm unit and the automatic script plug-in program unit, the model changes are monitored in real time, and the model changes are automatically synchronized to the corresponding water supply and drainage system diagrams.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of intelligent design automatic control, and more specifically, to an automatic design optimization method and system for a rail transit water supply and drainage system. Background Art

[0002] At present, with the acceleration of the urbanization process, rail transit, as an important part of urban transportation, has increasingly higher requirements for the design of the water supply and drainage system. Building Information Modeling (BIM) has made great progress in aspects such as standardization, normalization, integration, intelligence, and informatization. However, BIM design software generally has problems such as insufficient standardization of design drawing and insufficient expression of abstract logic, which has become one of the main restrictive factors for the forward design of water supply and drainage BIM.

[0003] Currently, in the design of the Revit water supply and drainage professional system diagram for urban rail transit stations, there are usually two methods: locking the direction of the three-dimensional view for drawing and manually drawing using the Revit two-dimensional drawing view. The method of locking the three-dimensional view direction for drawing has insufficient expression of the system principle, connection relationship between equipment rooms, and control logic that the water supply and drainage system focuses on. There are often problems such as the lack of prominence in expressing the key principles of the system, too large drawing size, and weak abstraction ability; the Figure 2 manual drawing method in the drawing view often has problems such as low design efficiency, high error rate, and inability to be automatically updated later; both methods currently have difficulty meeting the requirements of the Revit water supply and drainage system diagram process for efficient and precise design, and these problems need to be solved. Therefore, it is necessary to propose an automatic design optimization method and system for a rail transit water supply and drainage system to at least partially solve the problems existing in the prior art. Summary of the Invention

[0004] A series of simplified concepts are introduced in the Summary of the Invention section, which will be further described in detail in the Detailed Implementation section; the Summary of the Invention section of the present invention does not mean to attempt to define the key features and essential technical features of the claimed technical solution, nor does it mean to attempt to determine the protection scope of the claimed technical solution.

[0005] To at least partially solve the above problems, the present invention provides an automatic design optimization method for a rail transit water supply and drainage system, including:

[0006] S100, setting up a detail project family based on line elements, embedding a symbol family in the detail project family, setting up a quick drawing mark, and keeping the drawing expression elements adaptively adjusted in size according to the drawing scale;

[0007] S200. Create a parametric model of pipelines and a parametric model of pipeline accessories, build a parametric model library for the water supply and drainage system, and obtain the component library of the water supply and drainage system diagram.

[0008] S300. Through the axonometric projection coordinate conversion algorithm module, perform the expression connection and scaling projection of pipelines in the system; through the pipeline connection algorithm module, eliminate the visual disconnection or visual misalignment phenomenon; through the automatic drawing and parameter writing module of the system diagram, perform the automatic drawing and automatic parameter writing of the system diagram.

[0009] S400. Through the water supply and drainage system diagram update and comparison algorithm unit and the automatic script plug-in program unit, monitor the model changes in real time and automatically synchronize the model changes to the corresponding water supply and drainage system diagram.

[0010] Preferably, S100 includes:

[0011] S101. When expressing pipelines in the system diagram, set up a detail project family based on line elements to draw the pipelines in the system diagram.

[0012] S102. When expressing pipeline accessories in the system diagram, adopt a symbol family embedded in the detail project family to draw the pipeline accessories in the system diagram.

[0013] S103. When there is a design change, set up a quick drawing mark to keep the drawing expression elements adaptively adjusted in size according to the drawing scale.

[0014] Preferably, S200 includes:

[0015] S201. Create a parametric model of pipelines and a parametric model of pipeline accessories according to the pipeline parameters and pipeline accessory parameters.

[0016] S202. Build a parametric model library for the water supply and drainage system according to the parametric model of pipelines and the parametric model of pipeline accessories.

[0017] S203. According to the parametric model library of the water supply and drainage system, through the traversal analysis of the same-type parameters, establish a connection relationship network database between the rail transit water supply and drainage pipelines and the rail transit water supply and drainage pipeline accessories, and obtain the component library of the water supply and drainage system diagram.

[0018] The parametric model of pipeline accessories includes: the parametric model of fire hydrants, the parametric model of butterfly valves, and the parametric model of gate valves; the model components of the parametric model of pipelines and the parametric model of pipeline accessories are dynamically modified and adjusted according to the settings of actual projects.

[0019] Preferably, S300 includes:

[0020] S301. Through the axonometric projection coordinate conversion algorithm module, convert the pipeline system coordinate points in the pipeline parametric model and the pipeline accessory parametric model into coordinate points under the oblique two - dimensional axonometric projection, and perform the expression connection of the pipelines in the system; project according to the different scaling ratios nx, ny, nz of the X - axis, Y - axis, and Z - axis, so that the axonometric drawing reflects the spatial depth and keeps the drawing intuitive, continuous, and without distortion breakpoints; achieve the accurate mapping coordinate conversion from three - dimensional coordinates to axonometric coordinates through the custom function P1toP2 module.

[0021] S302. Create a pipeline connection algorithm module: When generating the axonometric drawing, mark the positions and size information of pipeline connectors on the drawing; access the connector information in the model through the RevitAPI tool, call the Connector.Origin and Connector.AllRefs methods to obtain the three - dimensional coordinates of pipeline connectors, and make the pipeline graphics completely displayed on the drawing to the connection part, eliminating the visual disconnection or visual misalignment phenomenon; create a pipeline connection algorithm module.

[0022] S303. Create a system diagram automatic drawing and parameter writing module: Through the RevitAPI tool, screen out the pipeline elements related to the water supply and drainage system in the pipeline parametric model and the pipeline accessory parametric model, and extract the key pipeline parameters; convert the key pipeline parameters into the annotation content that can be directly written into the water supply and drainage system diagram, and perform the automatic drawing and automatic parameter writing of the system diagram.

[0023] The RevitAPI tool includes: FilteredElementCollector and ElementCategoryFilter.

[0024] The key pipeline parameters include: pipeline diameter, system type, system abbreviation, design number or offset.

[0025] Preferably, S400 includes:

[0026] S401. Through the water supply and drainage system diagram update and comparison algorithm unit, associate the pipelines and pipeline accessories in the system diagram with the pipeline components and pipeline accessories in the model according to the pipeline component attribute information and pipeline accessory attribute information; accurately reflect the latest state of the model through the system diagram in real - time.

[0027] S402. Use the RevitAPI secondary development tool, through the automatic script plug - in program unit, monitor the model changes in real - time and synchronize the model changes to the corresponding water supply and drainage system diagram.

[0028] The pipeline component attribute information includes: pipeline component ID, pipeline spatial location information, and pipeline attribute information; the pipeline accessory attribute information includes: pipeline accessory component ID, pipeline accessory spatial location information, and pipeline accessory attribute information.

[0029] The water supply and drainage system diagram update comparison algorithm unit includes: a system diagram pipeline element update algorithm module and a system diagram pipeline accessory element update algorithm module;

[0030] The automated script plugin program unit includes: a system diagram pipeline element update algorithm module program and a system diagram pipeline accessory element update algorithm module program;

[0031] S403, construct a system diagram pipeline element update algorithm module: Select the part of the pipe parametric model to be concerned in the 3D BIM model environment. The pipeline element update program automatically obtains the corresponding pipeline element data in the existing system diagram, and conducts an attribute comparison and analysis between the corresponding pipeline element data and the part of the pipe parametric model to be concerned; When there are differences between the water supply and drainage pipeline elements in the system diagram and the selected BIM pipeline model, the system automatically starts the update mechanism; When there are pipeline elements in the system diagram that have been deleted or do not exist in the model, the system will delete the redundant pipeline elements in the system diagram; Update the pipeline component attribute information;

[0032] The pipeline location information includes: the starting coordinate of the model pipeline and the ending coordinate of the model pipeline;

[0033] The pipeline attribute information includes: pipeline diameter, pipeline system, and pipeline elevation;

[0034] S404, construct a system diagram pipeline accessory element update algorithm module: Select the part of the pipeline accessory parametric model to be concerned in the 3D BIM model environment. The pipeline accessory element update program automatically obtains the corresponding pipeline accessory element data in the existing system diagram, and conducts an attribute comparison and analysis between the pipeline accessory element data and the part of the pipeline accessory parametric model to be concerned; When there are differences between the water supply and drainage pipeline accessory elements in the system diagram and the selected BIM pipeline accessory model, the system will automatically start the update mechanism, update the pipeline accessories in the system diagram, and correct the pipeline accessory direction.

[0035] An automatic design optimization system for the rail transit water supply and drainage system, including:

[0036] The line element project family construction subsystem sets up a detailed drawing project family based on line elements, adopts a symbol family embedded in the detailed drawing project family, sets up a quick drawing mark, and keeps the drawing expression elements adaptively adjusted in size according to the drawing scale;

[0037] The parametric model component library subsystem creates a pipe parametric model and a pipeline accessory parametric model, constructs a water supply and drainage system parametric model library, and obtains a water supply and drainage system diagram component library;

[0038] Axonometric projection automatic drawing parameter writing subsystem, through the axonometric projection coordinate conversion algorithm module, conducts pipeline expression connection and scaling projection in the system; through the pipeline connection algorithm module, eliminates visual disconnection or visual misalignment phenomena; through the system diagram automatic drawing and parameter writing module, conducts automatic drawing of the system diagram and automatic parameter writing.

[0039] Comparison monitoring synchronous update subsystem, through the water supply and drainage system diagram update comparison algorithm unit and the automatic script plug-in program unit, monitors model changes in real time and automatically synchronizes model changes to the corresponding water supply and drainage system diagrams.

[0040] Preferably, the line element project family construction subsystem includes:

[0041] System diagram pipeline drawing subsystem, when expressing the pipeline in the system diagram, sets up a detailed drawing project family based on line elements to conduct system diagram pipeline drawing;

[0042] System diagram pipeline accessory drawing subsystem, when expressing the pipeline accessories in the system diagram, uses a detailed drawing project family embedded symbol family to conduct system diagram pipeline accessory drawing;

[0043] Drawing adaptive adjustment subsystem, when there is a design change, sets up a quick drawing mark to keep the drawing expression elements adaptively sized with the drawing scale.

[0044] Preferably, the parametric model component library subsystem includes:

[0045] Parametric model creation subsystem, according to the pipeline parameters and pipeline accessory parameters, creates a pipeline parametric model and a pipeline accessory parametric model;

[0046] Water supply and drainage system model library subsystem, according to the pipeline parametric model and the pipeline accessory parametric model, constructs a water supply and drainage system parametric model library;

[0047] System diagram component library subsystem, according to the water supply and drainage system parametric model library, through homomorphic parameter traversal analysis, establishes a connection relationship network database for rail transit water supply and drainage pipelines and rail transit water supply and drainage pipeline accessories, and obtains the water supply and drainage system diagram component library;

[0048] The pipeline accessory parametric model includes: a fire hydrant parametric model, a butterfly valve parametric model, and a gate valve parametric model; the model components of the pipeline parametric model and the pipeline accessory parametric model are dynamically modified and adjusted according to the actual project settings.

[0049] Preferably, the axonometric projection automatic drawing parameter writing subsystem includes:

[0050] Axonometric projection coordinate conversion subsystem, through the axonometric projection coordinate conversion algorithm module, converts the pipeline system coordinate points in the pipeline parametric model and the pipeline accessory parametric model into coordinate points under the oblique two-measure axonometric projection, and performs the expression connection of pipelines in the system; projects according to different scaling ratios nx, ny, nz of the X-axis, Y-axis, and Z-axis, so that the axonometric drawing reflects the spatial depth and keeps the drawing intuitive, continuous, and without distortion breakpoints; realizes the accurate mapping coordinate conversion from three-dimensional coordinates to axonometric coordinates through the custom function P1toP2 module;

[0051] Pipeline connection operation subsystem, creates a pipeline connection algorithm module: when generating the axonometric drawing, marks the position and size information of pipeline connectors on the drawing; accesses the connector information in the model through the RevitAPI tool, calls the Connector.Origin and Connector.AllRefs methods to obtain the three-dimensional coordinates of pipeline connectors, and makes the pipeline graphics completely displayed on the drawing to the connection part, eliminating the visual disconnection or visual misalignment phenomenon; creates a pipeline connection algorithm module;

[0052] Automatic drawing parameter writing subsystem, creates a system drawing automatic drawing and parameter writing module: through the RevitAPI tool, filters out the pipeline graphic elements related to the water supply and drainage system in the pipeline parametric model and the pipeline accessory parametric model, and extracts the key pipeline parameters; converts the key pipeline parameters into the annotation content that can be directly written into the water supply and drainage system drawing, and performs the automatic drawing and automatic parameter writing of the system drawing;

[0053] The RevitAPI tool includes: FilteredElementCollector and ElementCategoryFilter;

[0054] The key pipeline parameters include: pipeline diameter, system type, system abbreviation, design number or offset.

[0055] Preferably, the comparison monitoring and synchronous update subsystem includes:

[0056] System drawing update comparison subsystem, through the water supply and drainage system drawing update comparison algorithm unit, associates the pipelines in the system drawing and the pipeline accessories in the system drawing with the pipeline components in the model and the pipeline accessories in the model according to the pipeline component attribute information and the pipeline accessory attribute information; accurately reflects the latest state of the model through the system drawing in real time;

[0057] Automatic script program subsystem, using the RevitAPI secondary development tool, through the automatic script plug-in program unit, monitors the model changes in real time and synchronizes the model changes to the corresponding water supply and drainage system drawing;

[0058] The attribute information of pipeline components includes: pipeline component ID, pipeline spatial location information, and pipeline attribute information; the attribute information of pipeline accessories includes: pipeline accessory component ID, pipeline accessory spatial location information, and pipeline accessory attribute information.

[0059] The comparison algorithm unit for updating the water supply and drainage system diagram includes: the update algorithm module for system diagram pipeline elements and the update algorithm module for system diagram pipeline accessory elements;

[0060] The automated script plugin program unit includes: the program for the update algorithm module of system diagram pipeline elements and the program for the update algorithm module of system diagram pipeline accessory elements;

[0061] Construct the update algorithm module for system diagram pipeline elements: Select the target of concern for the parametric model of the pipeline in the 3D BIM model environment. The pipeline element update program automatically obtains the corresponding pipeline element data in the existing system diagram, and conducts attribute comparison and analysis between the corresponding pipeline element data and the target of concern for the parametric model of the pipeline. When there are differences between the water supply and drainage pipeline elements in the system diagram and the selected BIM pipeline model, the system automatically activates the update mechanism. When there are pipeline elements in the system diagram that have been deleted or do not exist in the model, the system will delete the redundant pipeline elements in the system diagram; update the attribute information of pipeline components;

[0062] The pipeline location information includes: the starting coordinate of the model pipeline and the ending coordinate of the model pipeline;

[0063] The pipeline attribute information includes: pipeline diameter, pipeline system, and pipeline elevation;

[0064] Construct the update algorithm module for system diagram pipeline accessory elements: Select the target of concern for the parametric model of the pipeline accessory in the 3D BIM model environment. The pipeline accessory element update program automatically obtains the corresponding pipeline accessory element data in the existing system diagram, and conducts attribute comparison and analysis between the pipeline accessory element data and the target of concern for the parametric model of the pipeline accessory. When there are differences between the water supply and drainage pipeline accessory elements in the system diagram and the selected BIM pipeline accessory model, the system will automatically activate the update mechanism, update the pipeline accessories in the system diagram, and correct the direction of the pipeline accessories.

[0065] Compared with the prior art, the present invention has at least the following beneficial effects:

[0066] The present invention provides an automatic design optimization method and system for the water supply and drainage system of rail transit, which solves the problem of the expression form of system diagram elements: for the pipeline expression in the system diagram, the method of constructing a detail family based on line elements is selected, which solves the problem that the detail lines cannot carry the actual size and attribute information of the pipeline; for the expression of pipeline accessories in the system diagram, the method of embedding symbol families in the detail project family is adopted, which solves the problem that the pipeline accessories can not only write project parameters to carry attribute information but also adapt to the drawing scale, and at the same time solves the marking problem; it speeds up the drawing marking speed, and can also ensure that when the design is changed, the associated information can be updated by an algorithm; the drawing surface expression is rich in information and standardized: a building drawing annotation family library is established, which significantly improves the accuracy of pipeline accessories and marking information in the drainage system diagram, and the identification diagram is intuitive and continuous; through the parametric model, each component in the system diagram can be flexibly adjusted according to project requirements, further improving flexibility and practicability; it can perform efficient and accurate automatic drawing: by constructing a parametric model library and developing an axonometric drawing projection and pipeline connection algorithm, a rapid and accurate conversion from a three-dimensional model to a two-dimensional system diagram is realized, and at the same time, the problem that the pipeline in the system diagram generated by Revit is disconnected at the pipeline accessories is solved, greatly shortening the design cycle and reducing the design cost; timely and accurate update of system information management: the information between the model and the drawing is updated in a timely manner, and the addition, position modification, geometric modification or deletion of the model pipeline and pipeline accessories are accurately updated to the system. When the three-dimensional model changes, the relevant information in the system diagram can be automatically updated by an algorithm, significantly improving the degree of intelligence and precision, and greatly improving the accuracy and consistency of design data.

[0067] An automatic design optimization method and system for the water supply and drainage system of rail transit according to the present invention. Other advantages, objectives and features of the present invention will be partially reflected by the following description, and partially will be understood by those skilled in the art through the research and practice of the present invention. Brief Description of the Drawings

[0068] The drawings are used to provide a further understanding of the present invention, and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention, and do not constitute a limitation to the present invention. In the drawings:

[0069] Figure 1 It is a diagram of an embodiment of an automatic design optimization method for the water supply and drainage system of rail transit according to the present invention.

[0070] Figure 2 It is a diagram of an embodiment of an automatic design optimization system for the water supply and drainage system of rail transit according to the present invention.

[0071] Figure 3 It is a diagram of a schematic embodiment of the water supply and drainage plan view, the water supply and drainage system diagram and the pipeline projection algorithm for the automatic design optimization method and system of the water supply and drainage system of rail transit according to the present invention. Detailed implementation mode

[0072] The following further elaborates on the present invention in conjunction with the accompanying drawings and embodiments, so that those skilled in the art can implement it with reference to the specification; as Figures 1 - 3 shown, the present invention provides an automatic design optimization method for the rail transit water supply and drainage system, including:

[0073] S100, set up a detail project family based on line elements, adopt a symbol family embedded in the detail project family, set up a quick drawing mark, and keep the drawing expression elements adaptively adjusted in size according to the drawing scale;

[0074] S200, create a parametric model of pipelines and a parametric model of pipeline accessories, build a parametric model library for the water supply and drainage system, and obtain a component library for the water supply and drainage system diagram;

[0075] S300, through the axonometric projection coordinate conversion algorithm module, perform pipeline expression connection and scaling projection in the system; through the pipeline connection algorithm module, eliminate the visual disconnection or visual misalignment phenomenon; through the automatic drawing and parameter writing module for the system diagram, perform automatic drawing and automatic parameter writing of the system diagram;

[0076] S400, through the water supply and drainage system diagram update comparison algorithm unit and the automatic script plug-in program unit, monitor model changes in real time, and automatically synchronize model changes to the corresponding water supply and drainage system diagram;

[0077] The present invention is developed by secondary development based on the Python programming language. On the basis of ensuring that Python can access the RevitAPI, Revit Python Shell, Dynamo or other common editors can be used for development; the environment mainly depends on important libraries and namespaces such as clr, ProtoGeometry, Autodesk.DesignScript.Geometry, RevitAPI, Autodesk, Autodesk.Revit.DB, RevitServices, RevitNodes, Autodesk.Revit.Creation, System.Collections.Generic.List, math, etc.

[0078] In one embodiment, S100 includes:

[0079] S101, when expressing the pipelines in the system diagram, set up a detail project family based on line elements and draw the pipelines in the system diagram;

[0080] S102, when expressing the pipeline accessories in the system diagram, adopt a symbol family embedded in the detail project family and draw the pipeline accessories in the system diagram;

[0081] S103. When there is a design change, set quick drawing marks to keep the drawing expression elements adaptively sized according to the drawing scale.

[0082] Select the model scope in the BIM model that needs to be generated or updated in the system.

[0083] In one embodiment, S200 includes:

[0084] S201. Create a parametric model of the pipeline and a parametric model of pipeline accessories according to the pipeline parameters and pipeline accessory parameters.

[0085] S202. Construct a parametric model library of the water supply and drainage system based on the parametric model of the pipeline and the parametric model of pipeline accessories.

[0086] S203. Based on the parametric model library of the water supply and drainage system, through the traversal analysis of the same-type parameters, establish a connection relationship network database between the rail transit water supply and drainage pipelines and the rail transit water supply and drainage pipeline accessories, and obtain the component library of the water supply and drainage system diagram.

[0087] The parametric model of pipeline accessories includes: the parametric model of fire hydrants, the parametric model of butterfly valves, and the parametric model of gate valves; the model components of the parametric model of the pipeline and the parametric model of pipeline accessories are dynamically modified and adjusted according to the actual project settings.

[0088] Calibrate the Revit view to generate the system diagram, or calibrate the Revit view where the existing system diagram to be updated is located.

[0089] In one embodiment, S300 includes:

[0090] S301. Through the axonometric projection coordinate conversion algorithm module, convert the pipeline system coordinate points in the parametric model of the pipeline and the parametric model of pipeline accessories into coordinate points under the oblique two-measure axonometric projection for the connection of pipeline expressions in the system; project according to different scaling ratios nx, ny, nz of the X-axis, Y-axis, and Z-axis to make the axonometric drawing reflect the spatial depth and keep the drawing intuitive, continuous, and free of distortion breakpoints; achieve the accurate mapping coordinate conversion from three-dimensional coordinates to axonometric coordinates through the custom function P1toP2 module.

[0091] S302. Create a pipeline connection algorithm module: When generating the axonometric drawing, mark the positions and size information of pipeline connectors on the drawing; access the connector information in the model through the RevitAPI tool, call the Connector.Origin and Connector.AllRefs methods to obtain the three-dimensional coordinates of the pipeline connectors, and make the pipeline graphics fully displayed on the drawing to the connection part to eliminate visual disconnection or visual misalignment; create a pipeline connection algorithm module.

[0092] S303, Create a module for automatic drawing and parameter writing of system diagrams: Using the RevitAPI tool, filter out the pipe elements related to the water supply and drainage system in the parametric pipe model and the parametric pipe accessory model, and extract the key pipe parameters; convert the key pipe parameters into the annotation content that can be directly written into the water supply and drainage system diagram, and perform automatic drawing and automatic parameter writing of the system diagram;

[0093] The RevitAPI tool includes: FilteredElementCollector and ElementCategoryFilter;

[0094] The key pipe parameters include: pipe diameter, system type, system abbreviation, design number or offset;

[0095] Realize the automatic drawing of the system diagram through the program, or update the content of the existing system diagram.

[0096] In one embodiment, S400 includes:

[0097] S401, Through the water supply and drainage system diagram update and comparison algorithm unit, according to the pipeline component attribute information and the pipe accessory attribute information, associate the pipelines and pipe accessories in the system diagram with the pipeline components and pipe accessories in the model; accurately reflect the latest state of the model in real time through the system diagram;

[0098] S402, Using the RevitAPI secondary development tool, through the automatic script plug-in program unit, monitor the model changes in real time and synchronize the model changes to the corresponding water supply and drainage system diagram;

[0099] The pipeline component attribute information includes: pipeline component ID, pipeline spatial position information and pipeline attribute information; the pipe accessory attribute information includes: pipe accessory component ID, pipe accessory spatial position information and pipe accessory attribute information.

[0100] The water supply and drainage system diagram update and comparison algorithm unit includes: a system diagram pipeline element update algorithm module and a system diagram pipe accessory element update algorithm module;

[0101] The automatic script plug-in program unit includes: a system diagram pipeline element update algorithm module program and a system diagram pipe accessory element update algorithm module program;

[0102] S403. Build the system diagram pipeline element update algorithm module: In the 3D BIM model environment, select the part of the pipeline parametric model that is the focus. The pipeline element update program automatically obtains the corresponding pipeline element data in the existing system diagram, and performs attribute comparison and analysis on the corresponding pipeline element data and the part of the pipeline parametric model that is the focus. When there are differences between the water supply and drainage pipeline elements in the system diagram and the selected BIM pipeline model, the system automatically activates the update mechanism. When there are pipeline elements in the system diagram that have been deleted or do not exist in the model, the system will delete the redundant pipeline elements in the system diagram and update the attribute information of the pipeline components.

[0103] The pipeline position information includes: the starting coordinates of the model pipeline and the ending coordinates of the model pipeline.

[0104] The pipeline attribute information includes: pipeline diameter, pipeline system, and pipeline elevation.

[0105] S404. Build the system diagram pipeline accessory element update algorithm module: In the 3D BIM model environment, select the part of the pipeline accessory parametric model that is the focus. The pipeline accessory element update program automatically obtains the corresponding pipeline accessory element data in the existing system diagram, and performs attribute comparison and analysis on the pipeline accessory element data and the part of the pipeline accessory parametric model that is the focus. When there are differences between the water supply and drainage pipeline accessory elements in the system diagram and the selected BIM pipeline accessory model, the system will automatically activate the update mechanism, update the pipeline accessories in the system diagram, and correct the direction of the pipeline accessories.

[0106] Complete the annotation of the system diagram output through batch marking with shared parameters and multi-category marks.

[0107] An automatic design optimization system for the water supply and drainage system of rail transit includes:

[0108] The line element project family construction subsystem sets up the detailed drawing project family based on line elements, uses the detailed drawing project family to embed the symbol family, sets up quick drawing marks, and keeps the drawing expression elements adaptively adjusted in size according to the output scale.

[0109] The parametric model component library subsystem creates a pipeline parametric model and a pipeline accessory parametric model, constructs a parametric model library for the water supply and drainage system, and obtains the component library of the water supply and drainage system diagram.

[0110] The axonometric projection automatic drawing parameter writing subsystem performs the connection and scaling projection of the pipeline expression in the system through the axonometric projection coordinate conversion algorithm module. Eliminates the visual disconnection or visual misalignment phenomenon through the pipeline connection algorithm module. Performs automatic drawing and automatic parameter writing of the system diagram through the system diagram automatic drawing and parameter writing module.

[0111] The comparison monitoring and synchronous update subsystem monitors model changes in real time through the water supply and drainage system diagram update comparison algorithm unit and the automation script plug-in program unit, and automatically synchronizes the model changes to the corresponding water supply and drainage system diagrams.

[0112] In one embodiment, the line element project family construction subsystem includes:

[0113] The system diagram pipeline drawing subsystem sets up a detailed drawing project family based on line elements for system diagram pipeline drawing when expressing the system diagram pipeline.

[0114] The system diagram pipe fitting drawing subsystem uses a symbol family embedded in the detailed drawing project family for system diagram pipe fitting drawing when expressing the system diagram pipe fittings.

[0115] The drawing adaptive adjustment subsystem sets up quick drawing marks during design changes to keep the drawing expression elements adaptively sized with the drawing scale.

[0116] Select the model scope in the BIM model for the system to be generated or updated.

[0117] In one embodiment, the parametric model component library subsystem includes:

[0118] The parametric model creation subsystem creates a pipe parametric model and a pipe fitting parametric model according to pipe parameters and pipe fitting parameters.

[0119] The water supply and drainage system model library subsystem constructs a water supply and drainage system parametric model library based on the pipe parametric model and the pipe fitting parametric model.

[0120] The system diagram component library subsystem establishes a connection relationship network database for rail transit water supply and drainage pipes and rail transit water supply and drainage pipe fittings through homomorphic parameter traversal analysis based on the water supply and drainage system parametric model library, and obtains the water supply and drainage system diagram component library.

[0121] The pipe fitting parametric model includes: a fire hydrant parametric model, a butterfly valve parametric model, and a gate valve parametric model; the model components of the pipe parametric model and the pipe fitting parametric model are dynamically modified and adjusted according to the actual project settings.

[0122] Calibrate the Revit view for the system diagram to be generated, or calibrate the Revit view where the existing system diagram to be updated is located.

[0123] In one embodiment, the isometric projection automatic drawing parameter writing subsystem includes:

[0124] Axonometric projection coordinate conversion subsystem, through the axonometric projection coordinate conversion algorithm module, converts the pipeline system coordinate points in the pipeline parametric model and the pipeline accessory parametric model into coordinate points under the oblique two-measure axonometric projection, and conducts the expression connection of the pipelines in the system; projects according to different scaling ratios nx, ny, nz of the X-axis, Y-axis, and Z-axis, so that the axonometric drawing reflects the spatial depth and keeps the drawing intuitive, continuous, and free of distortion breakpoints; realizes the accurate mapping coordinate conversion from three-dimensional coordinates to axonometric coordinates through the custom function P1toP2 module;

[0125] Pipeline connection operation subsystem, creates a pipeline connection algorithm module: when generating the axonometric drawing, marks the positions and dimension information of pipeline connectors on the drawing; accesses the connector information in the model through the RevitAPI tool, calls the Connector.Origin and Connector.AllRefs methods to obtain the three-dimensional coordinates of pipeline connectors, and makes the pipeline graphics completely shown on the drawing to the connection part, eliminating visual disconnection or visual misalignment; creates a pipeline connection algorithm module;

[0126] Automatic drawing parameter writing subsystem, creates a system drawing automatic drawing and parameter writing module: through the RevitAPI tool, filters out the pipeline drawing elements related to the water supply and drainage system in the pipeline parametric model and the pipeline accessory parametric model, and extracts the key pipeline parameters; converts the key pipeline parameters into the annotation content that can be directly written into the water supply and drainage system drawing, and conducts the automatic drawing and automatic parameter writing of the system drawing;

[0127] The RevitAPI tool includes: FilteredElementCollector and ElementCategoryFilter;

[0128] The key pipeline parameters include: pipeline diameter, system type, system abbreviation, design number or offset;

[0129] Realize the automatic drawing of the system drawing or the update of the existing system drawing content through the program.

[0130] In one embodiment, the comparison monitoring and synchronous update subsystem includes:

[0131] System drawing update comparison subsystem, through the water supply and drainage system drawing update comparison algorithm unit, associates the pipelines in the system drawing and the pipeline accessories in the system drawing with the pipeline components in the model and the pipeline accessories in the model according to the pipeline component attribute information and the pipeline accessory attribute information; accurately reflects the latest state of the model through the system drawing in real time;

[0132] The automatic script program subsystem uses the Revit API secondary development tool. Through the automated script plug-in program unit, it monitors model changes in real time and synchronizes the model changes to the corresponding plumbing system diagram.

[0133] The pipeline component attribute information includes: pipeline component ID, pipeline spatial location information, and pipeline attribute information; the pipeline accessory attribute information includes: pipeline accessory component ID, pipeline accessory spatial location information, and pipeline accessory attribute information.

[0134] The plumbing system diagram update comparison algorithm unit includes: the system diagram pipeline element update algorithm module, and the system diagram pipeline accessory element update algorithm module.

[0135] The automated script plug-in program unit includes: the system diagram pipeline element update algorithm module program, and the system diagram pipeline accessory element update algorithm module program.

[0136] Construct the system diagram pipeline element update algorithm module: In the three-dimensional BIM model environment, select the part of the pipe parametric model as the focus target. The pipeline element update program automatically obtains the corresponding pipeline element data in the existing system diagram, and conducts an attribute comparison and analysis between the corresponding pipeline element data and the part of the pipe parametric model as the focus target; when there are differences between the plumbing pipeline elements in the system diagram and the selected BIM pipeline model, the system automatically starts the update mechanism; when there are pipeline elements in the system diagram that have been deleted or do not exist in the model, the system will delete the redundant pipeline elements in the system diagram; update the pipeline component attribute information.

[0137] The pipeline location information includes: the starting point coordinates of the model pipeline and the ending point coordinates of the model pipeline.

[0138] The pipeline attribute information includes: pipeline diameter, pipeline system, and pipeline elevation.

[0139] Construct the system diagram pipeline accessory element update algorithm module: In the three-dimensional BIM model environment, select the part of the pipeline accessory parametric model as the focus target. The pipeline accessory element update program automatically obtains the corresponding pipeline accessory element data in the existing system diagram, and conducts an attribute comparison and analysis between the pipeline accessory element data and the part of the pipeline accessory parametric model as the focus target; when there are differences between the plumbing pipeline accessory elements in the system diagram and the selected BIM pipeline accessory model, the system will automatically start the update mechanism, update the pipeline accessories in the system diagram, and correct the pipeline accessory directions.

[0140] Complete the annotation of the system diagram output through batch marking with shared parameters and multi-category marking.

[0141] The principle and effect of the above technical solution are as follows:

[0142] The present invention solves the problem of the expression form of system diagram elements: For the pipeline expression in the system diagram, the method of constructing a detail family based on line elements is selected, which solves the problem that the detail lines cannot carry the actual dimensions and attribute information of the pipeline; for the expression of pipeline accessories in the system diagram, the method of embedding symbol families in detail project families is adopted, which solves the problem that pipeline accessories can not only write project parameters to carry attribute information but also adapt to the drawing scale, and at the same time solves the marking problem; it speeds up the drawing marking speed and can also ensure that when the design is changed, the associated information can be updated by an algorithm; rich and standardized drawing surface expression: By establishing an architectural drawing annotation family library, the accuracy of pipeline accessories and annotation information in the drainage system diagram is significantly improved, and the identification diagram is intuitive and continuous; through the parametric model, each component in the system diagram can be flexibly adjusted according to project requirements, further improving flexibility and practicability; it can perform efficient and accurate automatic drawing: By constructing a parametric model library and developing an axonometric projection and pipeline connection algorithm, the rapid and accurate conversion from a 3D model to a 2D system diagram is realized, and at the same time, the problem that the pipeline in the system diagram generated by Revit is disconnected at the pipeline accessories is solved, greatly shortening the design cycle and reducing the design cost; timely and accurate update of system information management: The information between the model and the drawing is updated in a timely manner, and the addition, position modification, geometric modification or deletion of model pipelines and pipeline accessories are accurately updated to the system. When the 3D model changes, the relevant information in the system diagram can be automatically updated by an algorithm, significantly improving the degree of intelligence and precision, and greatly improving the accuracy and consistency of design data.

[0143] The axonometric projection coordinate conversion algorithm includes:

[0144] In the pipeline plan view, let the coordinates of point P1 be (x1, y1, z1); in the pipeline system diagram, let the coordinates of point P2 be (x2, y2, z2); calculate through the following geometric relationship formula:

[0145]

[0146] z2 = 0

[0147] According to the expression method of the system diagram, the water supply and drainage system diagram adopts the oblique two-measure axonometric projection method, and different ratios of scaling in three directions are considered during the drawing process, taking into account accurate and abstract expression and intuitive continuity; the coordinates of any three-dimensional point P1(x1, y1, z1) are converted to obtain the coordinates of P2 as Let the scaling ratio in the X direction be nx, the scaling ratio in the Y direction be ny, and the scaling ratio in the Z direction be nz. Therefore, the coordinates of P2 obtained after the X, Y, and Z ratio conversions are

[0148] The program of the custom function P1toP2 module includes:

[0149] def P1toP2(pxyz,nx,ny,nz):

[0150] x2 = pxyz.X * nx + pxyz.Y * ny / math.sqrt(2)

[0151] y2 = pxyz.Z * nz + pxyz.Y * ny / math.sqrt(2)

[0152] return XYZ(x2,y2,0)

[0153] Create a pipeline connection algorithm module: When generating an isometric view, mark the positions and size information of pipeline connectors on the drawing; access the connector information in the model through the RevitAPI tool, call the Connector.Origin and Connector.AllRefs methods to obtain the three-dimensional coordinates of the pipeline connectors, and make the pipeline graphics fully displayed on the drawing to the connection part, eliminating visual disconnection or visual misalignment; create a pipeline connection algorithm module;

[0154] Create a system diagram automatic drawing and parameter writing module: Through the Revit API tool, filter out the pipeline elements related to the water supply and drainage system in the pipeline parametric model and the pipeline accessory parametric model, and extract the key pipeline parameters; convert the key pipeline parameters into the annotation content that can be directly written into the water supply and drainage system diagram, and perform automatic drawing and parameter writing of the system diagram;

[0155] The Revit API tools include: FilteredElementCollector and ElementCategoryFilter;

[0156] The key pipeline parameters include: pipeline diameter, system type, system abbreviation, design number or offset; The program of the pipeline connection algorithm module includes:

[0157]

[0158] The program of the system diagram automatic drawing and parameter writing module includes:

[0159]

[0160]

[0161] System Diagram Pipeline Element Update Algorithm Module: In the 3D BIM model environment, select the parts of the pipe parametric model that need attention. The pipeline element update program automatically obtains the corresponding pipeline element data in the existing system diagram, and performs attribute comparison and analysis on the corresponding pipeline element data and the parts of the pipe parametric model that need attention; when there are differences between the water supply and drainage pipeline elements in the system diagram and the selected BIM pipeline model, the system automatically starts the update mechanism; when there are pipeline elements in the system diagram that have been deleted or do not exist in the model, the system will delete the redundant pipeline elements in the system diagram; update the attribute information of the pipeline components; obtain the system diagram pipeline element update algorithm module;

[0162] The pipeline location information includes: the starting coordinate of the model pipeline and the ending coordinate of the model pipeline;

[0163] The pipeline attribute information includes: pipeline diameter, pipeline system, and pipeline elevation;

[0164] The program of the system diagram pipeline element update algorithm module includes:

[0165]

[0166]

[0167] System Diagram Pipeline Fitting Element Update Algorithm Module: In the 3D BIM model environment, select the parts of the pipe fitting parametric model that need attention. The pipe fitting element update program automatically obtains the corresponding pipe fitting element data in the existing system diagram, and performs attribute comparison and analysis on the pipe fitting element data and the parts of the pipe fitting parametric model that need attention; when there are differences between the water supply and drainage pipe fitting elements in the system diagram and the selected BIM pipe fitting model, the system will automatically start the update mechanism, update the pipe fittings in the system diagram and correct the pipe fitting directions; obtain the system diagram pipe fitting element update algorithm module.

[0168] The program of the system diagram pipe fitting element update algorithm module includes:

[0169]

[0170]

[0171]

[0172]

[0173] Table 1, System Diagram Pipeline Element Update Logic Table:

[0174] Serial number Whether the pipeline ID changes Whether the pipeline position changes Whether the pipeline attributes are updated Operation 01 No No No No operation 02 No Yes No Update the pipeline position in the system diagram 03 No Yes Yes Update the pipeline position and attributes in the system diagram 04 No No Yes Update the pipeline attributes in the system diagram 05 Yes - - Create a new pipeline in the system diagram and write in the attributes

[0175] Table 2, System Diagram Pipeline Fitting Element Update Logic Table:

[0176]

[0177] Although the embodiments of the present invention have been disclosed as above, they are not limited to the applications listed in the specification and embodiments. It can be fully applied to various fields suitable for the present invention. For those familiar with the field, additional modifications can be easily achieved. Therefore, without departing from the general concept defined by the claims and the equivalent scope, the present invention is not limited to the specific details and the examples shown and described herein.

Claims

1. A method for automatic design optimization of rail transit water supply and drainage system, characterized in that: include: S100, set to build detailed drawing project family based on line elements, use embedded symbol family in detailed drawing project family, set fast drawing mark, and keep the drawing expression elements adaptively resized according to the output ratio; S200, creating a pipeline parametric model and a pipeline accessory parametric model, building a water supply and drainage system parametric model library, and obtaining a water supply and drainage system graphic component library; S300, through the axonometric projection coordinate conversion algorithm module, performs pipeline expression connection and scaling projection in the system; through the pipeline connection algorithm module, eliminates visual disconnection or visual dislocation; Through the system diagram automatic drawing and parameter writing module, the system diagram is automatically drawn and the parameters are automatically written; S400, through the water supply and drainage system diagram update comparison algorithm unit and the automatic script plug-in program unit, real-time monitoring of model changes, and automatic synchronization of model changes to the corresponding water supply and drainage system diagram; S300 includes: S301, through the axonometric projection coordinate conversion algorithm module, the pipeline system coordinate points in the pipeline parametric model and the pipeline accessory parametric model are converted into coordinate points under the oblique dimetric axonometric projection, and the pipeline expression connection in the system is performed; according to the different expansion ratios nx, ny, nz of the X-axis, Y-axis and Z-axis, the projection is performed so that the axonometric drawing reflects the spatial depth and keeps the drawing intuitive, continuous and without distortion breakpoints; the precise mapping coordinate conversion from three-dimensional coordinates to axonometric coordinates is realized through the custom function P1toP2 module; The custom function P1toP2 module program includes: def P1toP2(pxyz,nx,ny,nz): x2=pxyz.X*nx+pxyz.Y*ny / math.sqrt(2) y2=pxyz.Z*nz+pxyz.Y*ny / math.sqrt(2) return XYZ(x2,y2,0).

2. The method for automatic design and optimization of rail transit water supply and drainage system according to claim 1, characterized in that: S100 includes: S101, when expressing the pipeline of the system diagram, set to build a detailed drawing project family based on line elements to draw the pipeline of the system diagram; S102, when expressing the pipe accessories in the system diagram, use the embedded symbol family in the detailed drawing project family to draw the pipe accessories in the system diagram; S103, when the design changes, set the quick drawing mark to keep the drawing expression elements adaptively resized according to the output ratio.

3. The method for automatic design and optimization of rail transit water supply and drainage system according to claim 1, characterized in that: S200 includes: S201, creating a pipeline parameterized model and a pipeline accessory parameterized model according to pipeline parameters and pipeline accessory parameters; S202, constructing a water supply and drainage system parametric model library based on the pipeline parametric model and the pipeline accessory parametric model; S203, based on the water supply and drainage system parameterized model library, by traversing and analyzing the same type of parameters, a connection relationship network database of rail transit water supply and drainage pipelines and rail transit water supply and drainage pipeline accessories is established to obtain a water supply and drainage system graphic component library; The pipeline accessory parametric model includes: fire hydrant parametric model, butterfly valve parametric model and gate valve parametric model; the model components of the pipeline parametric model and pipeline accessory parametric model are dynamically modified and adjusted according to the actual project settings.

4. The method for automatic design and optimization of rail transit water supply and drainage system according to claim 1, characterized in that: S300 includes: S302, creating a pipeline connection algorithm module: when generating an axonometric drawing, marking the location and size information of the pipeline connector in the drawing; accessing the connector information in the model through the Revit API tool, calling the Connector.Origin and Connector.AllRefs methods, obtaining the three-dimensional coordinates of the pipeline connector, and making the pipeline graphics fully displayed on the drawing to the connection position, eliminating visual disconnection or visual dislocation; creating a pipeline connection algorithm module; S303, creating a system diagram automatic drawing and parameter writing module: using the Revit API tool, filter out the pipe elements related to the water supply and drainage system in the pipe parametric model and the pipe accessory parametric model, and extract the key parameters of the pipes; convert the key parameters of the pipes into annotation content that is directly written into the water supply and drainage system diagram, and perform automatic drawing of the system diagram and automatic parameter writing; Revit API tools include: FilteredElementCollector and ElementCategoryFilter; Key pipe parameters include: pipe diameter, system type, system abbreviation, design number or offset.

5. The method for automatic design and optimization of rail transit water supply and drainage system according to claim 1, characterized in that: S400 includes: S401, by updating the comparison algorithm unit of the water supply and drainage system diagram, according to the pipeline component attribute information and the pipeline accessory attribute information, the pipeline in the system diagram and the pipeline accessory in the system diagram are associated with the pipeline component in the model and the pipeline accessory in the model; the latest state of the model is reflected in real time and accurately through the system diagram; S402, using RevitAPI secondary development tools, through the automated script plug-in unit, real-time monitoring of model changes, and synchronization of model changes to the corresponding water supply and drainage system diagram; The pipeline component attribute information includes: pipeline component ID, pipeline spatial location information and pipeline attribute information; the pipeline accessory attribute information includes: pipeline accessory component ID, pipeline accessory spatial location information and pipeline accessory attribute information; The water supply and drainage system diagram update comparison algorithm unit includes: a system diagram pipeline graphic element update algorithm module and a system diagram pipeline accessory graphic element update algorithm module; The automated script plug-in program unit includes: a system diagram pipeline graphic element update algorithm module program, a system diagram pipeline accessory graphic element update algorithm module program; S403, constructing a system diagram pipeline element update algorithm module: selecting a pipeline parametric model partial focus target in a three-dimensional BIM model environment, the pipeline element update program automatically obtains the corresponding pipeline element data in the existing system diagram, and performs attribute comparison analysis on the corresponding pipeline element data and the pipeline parametric model partial focus target; when there is a difference between the water supply and drainage pipeline element in the system diagram and the selected BIM pipeline model, the system automatically starts the update mechanism; when there are pipeline elements in the system diagram that have been deleted or do not exist in the model, the system will delete the redundant pipeline elements in the system diagram; update the pipeline component attribute information; The pipeline location information includes: the coordinates of the model pipeline starting point and the coordinates of the model pipeline end point; Pipeline attribute information includes: pipeline diameter, pipeline system and pipeline elevation; S404, constructing a system diagram pipeline accessory element update algorithm module: selecting a pipeline accessory parametric model partial focus target in a three-dimensional BIM model environment, the pipeline accessory element update program automatically obtains the corresponding pipeline accessory element metadata in the existing system diagram, and performs attribute comparison analysis on the pipeline accessory element metadata and the pipeline accessory parametric model partial focus target; when there is a difference between the water supply and drainage pipeline accessory element in the system diagram and the selected BIM pipeline accessory model, the system will automatically start the update mechanism, update the pipeline accessories in the system diagram and correct the direction of the pipeline accessories.

6. An automatic design and optimization system for rail transit water supply and drainage system, characterized in that: include: Line element project family construction subsystem, set up detailed drawing project family based on line elements, use embedded symbol family in detailed drawing project family, set up fast drawing mark, and keep the drawing expression elements adaptively resized according to the output ratio; Parametric model component library subsystem, create pipeline parametric models and pipeline accessory parametric models, build water supply and drainage system parametric model library, and obtain water supply and drainage system graphic component library; The axonometric projection automatic drawing parameter writing subsystem uses the axonometric projection coordinate conversion algorithm module to express the connection and scale projection of the pipelines in the system; the pipeline connection algorithm module eliminates visual disconnection or visual dislocation. Through the system diagram automatic drawing and parameter writing module, the system diagram is automatically drawn and the parameters are automatically written; The comparison monitoring and synchronization updating subsystem updates the comparison algorithm unit and the automated script plug-in unit through the water supply and drainage system diagram, monitors the model changes in real time, and automatically synchronizes the model changes to the corresponding water supply and drainage system diagram; The axonometric projection automatic drawing parameter writing subsystem includes: an axonometric projection coordinate conversion subsystem, which converts the pipeline system coordinate points in the pipeline parametric model and the pipeline accessory parametric model into coordinate points under the oblique dimetric axonometric projection through the axonometric projection coordinate conversion algorithm module, and expresses and connects the pipelines in the system; projects according to the different expansion ratios nx, ny, and nz of the X-axis, Y-axis, and Z-axis, so that the axonometric drawing reflects the spatial depth and keeps the drawing intuitive, continuous, and free of distortion breakpoints; realizes the precise mapping coordinate conversion from three-dimensional coordinates to axonometric coordinates through the custom function P1toP2 module; The custom function P1toP2 module program includes: def P1toP2(pxyz,nx,ny,nz): x2=pxyz.X*nx+pxyz.Y*ny / math.sqrt(2) y2=pxyz.Z*nz+pxyz.Y*ny / math.sqrt(2) return XYZ(x2,y2,0).

7. The automatic design and optimization system for rail transit water supply and drainage system according to claim 6 is characterized in that: The line element project family construction subsystem includes: System diagram pipeline drawing subsystem: when expressing the system diagram pipeline, set up a detailed drawing project family based on line elements to draw the system diagram pipeline; The system diagram piping accessories drawing subsystem uses the embedded symbol family of the detailed drawing project family to draw the system diagram piping accessories when expressing the system diagram piping accessories. The drawing adaptive adjustment subsystem sets quick drawing marks when the design changes, so that the drawing expression elements can be adaptively resized according to the drawing ratio.

8. The automatic design and optimization system for rail transit water supply and drainage system according to claim 6 is characterized in that: The parametric model component library subsystem includes: The parametric model creation subsystem creates a pipeline parametric model and a pipeline accessory parametric model according to pipeline parameters and pipeline accessory parameters; The water supply and drainage system model library subsystem builds the water supply and drainage system parameterized model library based on the pipeline parameterized model and pipeline accessory parameterized model; The system diagram component library subsystem, based on the water supply and drainage system parameterized model library, establishes a connection relationship network database between rail transit water supply and drainage pipelines and rail transit water supply and drainage pipeline accessories through the same type parameter traversal analysis, and obtains the water supply and drainage system diagram component library; The pipeline accessory parametric model includes: fire hydrant parametric model, butterfly valve parametric model and gate valve parametric model; the model components of the pipeline parametric model and pipeline accessory parametric model are dynamically modified and adjusted according to the actual project settings.

9. The automatic design and optimization system for rail transit water supply and drainage system according to claim 6, characterized in that: The axonometric projection automatic drawing parameter writing subsystem includes: Pipeline connection operation subsystem, create a pipeline connection algorithm module: when generating an axonometric drawing, mark the location and size information of pipeline connectors in the drawing; access the connector information in the model through the RevitAPI tool, call the Connector.Origin and Connector.AllRefs methods, obtain the three-dimensional coordinates of the pipeline connector, and make the pipeline graphics fully displayed on the drawing to the connection position, eliminating visual disconnection or visual dislocation; create a pipeline connection algorithm module; Automatically draw and write parameters into the subsystem, and create a module for automatic drawing and parameter writing of system diagrams: Use the Revit API tool to filter out the pipe elements related to the water supply and drainage system in the pipe parametric model and the pipe accessory parametric model, and extract the key parameters of the pipes; convert the key parameters of the pipes into annotation content that is directly written into the water supply and drainage system diagram, and automatically draw the system diagram and write the parameters; Revit API tools include: FilteredElementCollector and ElementCategoryFilter; Key pipe parameters include: pipe diameter, system type, system abbreviation, design number or offset.

10. The automatic design and optimization system for rail transit water supply and drainage system according to claim 6, characterized in that: The comparative monitoring and synchronous updating subsystem includes: The system diagram update comparison subsystem uses the water supply and drainage system diagram update comparison algorithm unit to associate the pipelines and pipeline accessories in the system diagram with the pipeline components and pipeline accessories in the model according to the pipeline component attribute information and pipeline accessory attribute information; the system diagram accurately reflects the latest status of the model in real time; The automatic script program subsystem uses the RevitAPI secondary development tool to monitor model changes in real time through the automatic script plug-in program unit, and synchronizes the model changes to the corresponding water supply and drainage system diagram; The pipeline component attribute information includes: pipeline component ID, pipeline spatial location information and pipeline attribute information; the pipeline accessory attribute information includes: pipeline accessory component ID, pipeline accessory spatial location information and pipeline accessory attribute information; The water supply and drainage system diagram update comparison algorithm unit includes: a system diagram pipeline graphic element update algorithm module and a system diagram pipeline accessory graphic element update algorithm module; The automated script plug-in program unit includes: a system diagram pipeline graphic element update algorithm module program, a system diagram pipeline accessory graphic element update algorithm module program; Construct the pipeline element update algorithm module of the system diagram: select the pipeline parametric model part of the focus target in the 3D BIM model environment, and the pipeline element update program automatically obtains the corresponding pipeline element data in the existing system diagram, and compares the corresponding pipeline element data with the pipeline parametric model part of the focus target for attribute analysis; when there is a difference between the water supply and drainage pipeline element in the system diagram and the selected BIM pipeline model, the system automatically starts the update mechanism; when there are pipeline elements in the system diagram that have been deleted or do not exist in the model, the system will delete the redundant pipeline elements in the system diagram; update the pipeline component attribute information; The pipeline location information includes: the coordinates of the model pipeline starting point and the coordinates of the model pipeline end point; Pipeline attribute information includes: pipeline diameter, pipeline system and pipeline elevation; Construct an algorithm module for updating the pipe accessory graphics elements in the system diagram: select the pipe accessory parametric model as part of the focus target in the three-dimensional BIM model environment, and the pipe accessory graphics element update program automatically obtains the corresponding pipe accessory graphics element metadata in the existing system diagram, and performs attribute comparison analysis on the pipe accessory graphics element metadata and the pipe accessory parametric model as part of the focus target; when there is a difference between the water supply and drainage pipe accessory graphics element in the system diagram and the selected BIM pipe accessory model, the system will automatically start the update mechanism, update the pipe accessories in the system diagram and correct the direction of the pipe accessories.

Citation Information

Patent Citations

  • Auxiliary drawing system and auxiliary drawing method

    CN114547825A

  • Automatic labeling method and system for pipeline three-dimensional building information modeling

    WO2024045615A1