Water supply schematic diagram generation method and device, equipment and storage medium
By obtaining water supply main pipe information and elevation information from the building information database, and using component matching algorithms and cluster analysis to generate water supply schematic diagrams, the problems of low efficiency and insufficient accuracy in existing technologies are solved, and efficient and accurate water supply system drawing generation is achieved.
Patent Information
- Application Number
- CN202210799080.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-06
- Publication Date
- 2025-12-05
- Estimated Expiration
- 2042-07-06
AI Technical Summary
Existing technologies rely on the designer's familiarity with and spatial abilities when drawing building water supply schematics, resulting in low efficiency and insufficient accuracy, and failing to effectively utilize floor plans or 3D models to generate consistent water supply system diagrams.
By obtaining water supply main pipe information and elevation information from the building information database, an initial water supply schematic diagram is generated using a component matching algorithm. Then, cluster analysis and pipe accessory matching are performed to generate the target water supply schematic diagram, maintaining consistency between the three-dimensional model and the two-dimensional plan view.
It improved the efficiency of drawing water supply schematic diagrams, avoided the generation of erroneous data, and ensured the accuracy and consistency of the drawings.
Smart Images

Figure CN115906227B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of architectural design, and in particular to a water supply principle diagram generation method, device, equipment and storage medium. BACKGROUND
[0002] In the design of building water supply and drainage, the water supply principle diagram is an indispensable part of the drawing, which reflects the water supply mode and the main pipe direction of the entire water supply system. Generally speaking, the water supply principle diagram includes horizontal pipes, vertical pipes, pipe accessories and equipment, pipe diameter annotations, vertical pipe annotations, and other text annotations. At present, the principle diagram is mainly drawn by manually drawing the water supply principle diagram or by adjusting the design parameters to generate a simple water supply principle diagram, and then adjusting it to be consistent with the actual situation, and then manually marking the pipe diameter and vertical pipe number.
[0003] In the existing technical solution, when drawing the principle diagram, it is not generated based on the plan view or the three-dimensional model, and it highly depends on the designer's familiarity with the entire water supply system and spatial ability, which can easily lead to inconsistencies between the principle diagram and the plan view. At the same time, whether manually drawing or modifying after generating the principle diagram, it requires more human intervention and a large amount of work, resulting in low efficiency and insufficient accuracy in drawing the water supply principle diagram. SUMMARY
[0004] The embodiments of the present application provide a water supply principle diagram generation method, device, equipment and storage medium, which can improve the efficiency of generating the water supply principle diagram.
[0005] The first aspect of the present application provides a water supply principle diagram generation method, comprising: obtaining water supply main pipe information and elevation information of a preset building from a preset building information database, and generating an initial water supply principle diagram through the elevation information; performing water supply component graph matching based on the water supply main pipe information through a preset component matching algorithm to obtain a plurality of water supply system component graphs; performing cluster analysis on the plurality of water supply system component graphs to obtain a plurality of water supply system component graph sets and a component type corresponding to each water supply system component graph set, wherein the component type includes vertical pipe type, horizontal main pipe type and horizontal branch pipe type; generating a pipeline corresponding to each water supply system component graph set through the water supply main pipe information; performing pipe accessory graph matching on each water supply system component graph set based on the component type corresponding to each water supply system component graph set to obtain a pipe accessory graph set; and generating a target water supply principle diagram through the pipe accessory graph set and the water supply system component graph set based on the initial water supply principle diagram and the water supply pipeline set.
[0006] Optionally, in the first implementation manner of the first aspect, the method further includes: obtaining water supply main pipe information and elevation information of the preset building from the preset building information database; and generating an initial water supply schematic diagram based on the elevation information.
[0007] Optionally, in the second implementation manner of the first aspect, the water supply component graph element matching based on the water supply main pipe information includes: determining corresponding main pipe connection relationships based on the water supply main pipe information; determining a set of water supply components to be processed based on the main pipe connection relationships; and filtering the set of water supply components to be processed based on the component matching algorithm to obtain a plurality of water supply system components.
[0008] Optionally, in the third implementation manner of the first aspect, the filtering the set of water supply components to be processed based on the component matching algorithm includes: filtering the set of water supply components to be processed to obtain a plurality of shutoff valve components; analyzing positions of the plurality of shutoff valve components to obtain position information corresponding to each shutoff valve component; and filtering the set of water supply components to be processed based on the component matching algorithm and the position information corresponding to each shutoff valve component to obtain the plurality of water supply system components.
[0009] Optionally, in the fourth implementation manner of the first aspect, the clustering analysis on the plurality of water supply system component graph elements includes: clustering the plurality of water supply system component graph elements to obtain a plurality of clustering points; calculating distances between the plurality of clustering points and preset clustering centers to obtain a plurality of clustering distances; and performing secondary clustering on the plurality of water supply system component graph elements based on the plurality of clustering distances to obtain a plurality of water supply system component graph element sets; and matching types of the plurality of water supply system component graph element sets to obtain a component type corresponding to each water supply system component graph element set, wherein the component type includes a riser type, a horizontal main pipe type, and a horizontal branch pipe type.
[0010] Optionally, in a fifth implementation form of the first aspect of the present application, the water supply system component graphic element set is matched with the pipe accessory graphic element set based on the component type corresponding to each water supply system component graphic element set, to obtain a pipe accessory graphic element set, including: analyzing the arrangement position of each water supply system component graphic element set based on the component type corresponding to each water supply system component graphic element set, to obtain the arrangement position corresponding to each water supply system component graphic element set; and filtering the pipe accessory graphic element set through the arrangement position corresponding to each water supply system component graphic element set.
[0011] Optionally, in a sixth implementation form of the first aspect of the present application, after the target water supply schematic diagram is generated through the pipe accessory graphic element set and the water supply system component graphic element set based on the initial water supply schematic diagram and the water supply pipeline set, the method further includes: obtaining pipe parameter information and pipe label information from a preset building information database, wherein the pipe parameter information includes pipe abbreviation name, pipe size data and pipe elevation data; and performing information labeling on the target water supply schematic diagram through a preset labeling algorithm.
[0012] The second aspect of the present application provides a water supply schematic diagram generation device, including: an information acquisition module, configured to obtain water supply main pipe information and elevation information of a preset building from a preset building information database, and generate an initial water supply schematic diagram through the elevation information; a first matching module, configured to match water supply component graphic elements through a preset component matching algorithm based on the water supply main pipe information, to obtain a plurality of water supply system component graphic elements; a clustering analysis module, configured to perform clustering analysis on the plurality of water supply system component graphic elements, to obtain a plurality of water supply system component graphic element sets and a component type corresponding to each water supply system component graphic element set, wherein the component type includes vertical pipe type, horizontal main pipe type and horizontal branch pipe type; a pipeline generation module, configured to generate pipelines through the water supply main pipe information, to obtain a corresponding water supply pipeline set; a second matching module, configured to match each water supply system component graphic element set with a pipe accessory graphic element set based on the component type corresponding to each water supply system component graphic element set, to obtain a pipe accessory graphic element set; and a drawing generation module, configured to generate a target water supply schematic diagram through the pipe accessory graphic element set and the water supply system component graphic element set based on the initial water supply schematic diagram and the water supply pipeline set.
[0013] Optionally, in a first implementation form of the second aspect of the present application, the information acquisition module is specifically configured to: match a water supply system through the water supply main pipe information, to obtain water supply system information; generate labeling graphic elements through the water supply system information and the elevation information, to obtain a labeling graphic element set; and generate an initial water supply schematic diagram based on the labeling graphic element set.
[0014] Optionally, in the second implementation of the second aspect of the present application, the first matching module further comprises: a relationship matching unit configured to determine a corresponding main pipe connection relationship by matching the main pipe connection relationship of the water supply main pipe information; an analysis unit configured to determine a set of water supply components to be processed based on the main pipe connection relationship; a screening unit configured to screen the set of water supply components to be processed by using the component matching algorithm to obtain a plurality of water supply system components; and a graph element matching unit configured to perform graph element matching on the plurality of water supply system components to obtain a plurality of water supply system component graph elements.
[0015] Optionally, in the third implementation of the second aspect of the present application, the screening unit is specifically configured to: screen the set of water supply components to be processed to obtain a plurality of shutoff valve components; perform position analysis on the plurality of shutoff valve components to obtain position information corresponding to each shutoff valve component; and screen the set of water supply components to be processed by using the component matching algorithm and the position information corresponding to each shutoff valve component to obtain a plurality of water supply system components.
[0016] Optionally, in the fourth implementation of the second aspect of the present application, the clustering analysis module is specifically configured to: perform clustering processing on the plurality of water supply system component graph elements to obtain a plurality of clustering points; perform distance calculation on the plurality of clustering points and a preset clustering center to obtain a plurality of clustering distances; perform secondary clustering on the plurality of water supply system component graph elements based on the plurality of clustering distances to obtain a plurality of water supply system component graph element sets; and perform type matching on the plurality of water supply system component graph element sets to obtain a component type corresponding to each water supply system component graph element set, wherein the component type comprises a riser type, a horizontal main pipe type, and a horizontal branch pipe type.
[0017] Optionally, in the fifth implementation of the second aspect of the present application, the second matching module is specifically configured to: perform arrangement position analysis on each water supply system component graph element set based on a component type corresponding to each water supply system component graph element set to obtain an arrangement position corresponding to each water supply system component graph element set; and perform pipe accessory graph element screening by using the arrangement position corresponding to each water supply system component graph element set to obtain a pipe accessory graph element set.
[0018] Optionally, in the sixth implementation of the second aspect of the present application, the water supply schematic diagram generation device further comprises: a parameter acquisition module configured to acquire pipe parameter information and pipe label information from a preset building information database, wherein the pipe parameter information comprises a pipe abbreviation name, pipe size data, and pipe elevation data; and an information labeling module configured to perform information labeling on the target water supply schematic diagram by using a preset labeling algorithm.
[0019] The third aspect of the present application provides a computer device, comprising a memory and at least one processor, the memory has instructions stored therein; the at least one processor invokes the instructions in the memory to enable the computer device to execute the water supply schematic diagram generation method.
[0020] The fourth aspect of the present application provides a computer readable storage medium, the computer readable storage medium has instructions stored therein, when the instructions are executed on a computer, the computer executes the water supply schematic diagram generation method.
[0021] In the technical solution provided by the present application, the server determines the corresponding water supply system information through the water supply main pipe information, and obtains subsequent pipe, pipe accessory, equipment and other component graph element information through the connection relationship of the main pipe. Meanwhile, the server first classifies a plurality of water supply system component graphs according to their angles, extracts coordinate characteristic values of the graphs of the same angle type, and performs clustering analysis on the graphs of the same angle type, so that the graphs with similar coordinate characteristic values are clustered into the same category. According to the connection relationship of the pipes and the number of branches, the pipes in the three-dimensional space are mapped into the pipelines in the two-dimensional plane while maintaining the connection relationship. Through the three-dimensional model of the water supply system, the positions and connection relationships of the pipes and pipe accessories in the schematic diagram are calculated, so that the pipes and pipe accessories in the schematic diagram do not conflict with each other and the error data generated when the water supply schematic diagram is drawn is avoided, and the efficiency of drawing the water supply schematic diagram is improved. Figure One BRIEF DESCRIPTION OF DRAWINGS
[0022] Figure 1 An embodiment of the water supply schematic diagram generation method in the present application is shown in the figure;
[0023] Figure 2 A schematic diagram of the water supply system in the present application is shown in the figure;
[0024] Figure 3 Another embodiment of the water supply schematic diagram generation method in the present application is shown in the figure;
[0025] Figure 4 A schematic diagram of the water supply schematic diagram after completing information labeling in the present application is shown in the figure;
[0026] Figure 5 An embodiment of the water supply schematic diagram generation device in the present application is shown in the figure;
[0027] Figure 6 Another embodiment of the water supply schematic diagram generation device in the present application is shown in the figure;
[0028] Figure 7 An embodiment of the computer device in the present application is shown in the figure. Detailed Implementation
[0029] This invention provides a method, apparatus, device, and storage medium for generating water supply schematic diagrams, which improves the efficiency of generating water supply schematic diagrams.
[0030] The terms "first," "second," "third," "fourth," etc. (if present) in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data used are interchangeable where appropriate so that the embodiments described herein can be implemented in a sequence other than that illustrated or described herein. Furthermore, the terms "comprising" or "having" and any variations thereof are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0031] For ease of understanding, the specific process of the embodiments of the present invention is described below. Please refer to [link / reference]. Figure 1 One embodiment of the water supply schematic diagram generation method in this invention includes the following steps:
[0032] 101. Obtain the water supply main pipe information and elevation information of the pre-built building from the pre-built building information database, and generate the initial water supply principle diagram based on the elevation information;
[0033] It is understood that the executing entity of this invention can be a water supply schematic diagram generation device or a server; the specific implementation is not limited here. This embodiment of the invention will be described using a server as an example.
[0034] It should be noted that building information is obtained from a building information database based on a building information model (BIM). The BIM is built upon various relevant information data of the building project, simulating the actual information of the building through digital information simulation. Specifically, the server first obtains the main pipes and elevations. When generating the water supply schematic diagram, the required input data includes elevation information and the water supply system layout, such as... Figure 2 As shown, Figure 2 The corresponding water supply system diagram is shown. The water supply system can be obtained through the main pipe. When generating the initial water supply principle diagram, the server needs to draw the elevation line and confirm the elevation symbol. After the server obtains the elevation, it initially draws the elevation line according to the actual height and places the elevation symbol at the endpoint of the elevation line. Then the server generates the initial water supply principle diagram based on the elevation information.
[0035] 102. Matching the water supply component primitives based on the water supply main pipe information through a preset component matching algorithm to obtain a plurality of water supply system component primitives;
[0036] Specifically, when drawing the water supply principle diagram, the server needs to convert the components in the water supply system into a two-dimensional principle diagram in a certain way, so it needs to obtain all the components of the water supply system. Therefore, after the server obtains the water supply main pipe information, it determines the corresponding water supply system information through the water supply main pipe information, and obtains the subsequent pipe, pipe accessory, equipment and other component primitive information through the connection relationship of the main pipe. It should be noted that after the server obtains the cross branch pipe component primitive, if there is a water meter primitive, the first shutoff valve after the water meter is obtained, and the acquisition of component information stops. If there is no water meter primitive after the cross branch pipe primitive, the first shutoff valve primitive of the cross branch pipe primitive is obtained, and the acquisition of component information stops. The definition of shutoff valve is stop valve, ball valve or gate valve.
[0037] 103. Cluster analysis is performed on the plurality of water supply system component primitives to obtain a plurality of water supply system component primitive sets and a component type corresponding to each water supply system component primitive set, wherein the component type includes vertical pipe type, horizontal main pipe type and horizontal branch pipe type;
[0038] Specifically, the server first classifies the plurality of water supply system component primitives according to their angles, extracts the coordinate characteristic values of the primitives of the same angle type, performs cluster analysis on the primitives of the same angle type, so that the primitives with similar coordinate characteristic values are clustered into the same class, and sorts the primitives according to the clustering results, and stores the sorted primitives according to the angle type of the primitives, that is, obtains a plurality of water supply system component primitive sets. At the same time, the server analyzes the type according to the preset cluster center to obtain the component type corresponding to each water supply system component primitive set.
[0039] 104. Generating a pipeline through water supply main pipe information to obtain a corresponding water supply pipeline set;
[0040] Specifically, the server marks each region drawing in the initial water supply principle diagram based on the water supply equipment information in the water supply main pipe information. For example, the water supply pipeline data of region A in the water supply equipment information in the initial water supply principle diagram is exported, and the corresponding drawing is marked as the water supply pipeline data of region A, thereby facilitating the classification and preservation in the later pipeline prefabrication process. It should be noted that the water supply pipeline data at least includes pipe length information data, pipe diameter information, pipe thickness information and pipe connection point information, and then the server generates a pipeline according to the above water supply pipeline data to obtain a corresponding water supply pipeline set.
[0041] 105. Match the pipe accessory element set with each water supply system component element set based on the corresponding component type of each water supply system component element set to obtain a pipe accessory element set;
[0042] Specifically, the server matches accessories according to the component type corresponding to each water supply system component element set, and it should be noted that the component type includes vertical pipe type, horizontal main pipe type and horizontal branch pipe type. The server filters vertical pipes according to the pipe direction, and then filters vertical pipes according to whether they are in the water heating well and whether they cross the floor. Then, the server defines the pipe between the main pipe and the vertical pipe as the horizontal main pipe, and defines the pipe branching out from the vertical pipe for water supply of each floor as the horizontal branch pipe. For example, when the component type is vertical pipe type, the server arranges the vertical pipes from left to right according to the horizontal position of the vertical pipe, and then draws the vertical pipes on the drawing according to the height of the vertical pipe. If the two ends of the vertical pipe are connected to the same pipe fitting, they are merged into one. Then, the server obtains the pipe accessories connected to each vertical pipe, and then matches the accessories according to the pipe accessories to obtain a pipe accessory element set.
[0043] 106. Based on the initial water supply schematic diagram and the water supply pipeline set, the target water supply schematic diagram is generated through the pipe accessory element set and the water supply system component element set.
[0044] Specifically, the server determines the configuration parameters of the arranged water supply and drainage facilities based on the arranged water supply and drainage facilities in the initial water supply schematic diagram in response to the generation operation of the target water supply schematic diagram, and performs pipeline drawing in the initial water supply schematic diagram according to the water supply pipeline set. Then, the server determines the connection relationship of the arranged water supply and drainage facilities based on the arranged pipeline element in the initial water supply schematic diagram, and generates the target water supply schematic diagram through the pipe accessory element set, the water supply system component element set, and the configuration parameters and connection relationship of the water supply and drainage facilities.
[0045] In the embodiment of the application, the server determines the corresponding water supply system information through the water supply main pipe information, and obtains the subsequent pipe, pipe accessory, equipment and other component element information through the connection relationship of the main pipe. At the same time, the server first classifies the plurality of water supply system component elements according to their angles, extracts the coordinate characteristic values of the elements of the same angle type, and performs clustering analysis on the elements of the same angle type, so that the elements with similar coordinate characteristic values are clustered into the same class. According to the connection relationship of the pipe and the number of branches, the pipe in the three-dimensional space is mapped into a two-dimensional plane, and the connection relationship is kept unchanged. Through the three-dimensional model of the water supply system, the position and connection relationship of the pipe and pipe accessory in the schematic diagram are calculated, which ensures that the plane Figure One is not conflicted, and avoids the situation that error data is generated when drawing the water supply schematic diagram, and improves the efficiency of drawing the water supply schematic diagram.
[0046] Please refer toFigure 3 Another embodiment of the water supply schematic generation method in the embodiment of the present application includes the following steps:
[0047] 301. Obtain the water supply main information and elevation information of the preset building from the preset building information database, and generate an initial water supply schematic through the elevation information;
[0048] Specifically, the server matches the water supply system through the water supply main information to obtain water supply system information; the server generates a set of labeled graph elements through the water supply system information and the elevation information; and the server generates an initial water supply schematic based on the set of labeled graph elements.
[0049] It should be noted that the water supply system is a general system composed of water intake, water transportation, water quality treatment, and water distribution facilities in a certain way. In this step, the server first matches the water supply system through the water supply main information to obtain water supply system information. Specifically, the server analyzes the system identification through the water supply main information to determine the corresponding water supply system identification. It should be noted that the water supply system identification refers to the characteristics of the water supply system pipeline. The server determines the corresponding water supply system information based on the water supply pipeline characteristics. Then, the server determines whether the state data of the received graph element matches the state data of the current graph element block based on one or more graph element section size constraints, and in response to determining that the state data of the received graph element matches the state data of the current graph element block, determines whether to add the received graph element to the current graph element section of the current graph element block in the preset database. Then, in response to determining to add the received graph element to the current graph element section, the server adds the received graph element to the current graph element section. In response to determining not to add the received graph element to the current graph element section, the server finally outputs the current graph element section to obtain a set of labeled graph elements. Finally, the server generates an initial water supply schematic based on the set of labeled graph elements.
[0050] 302. Match the main pipe connection relationship through the water supply main pipe information to determine the corresponding main pipe connection relationship;
[0051] It should be noted that the connection types include threaded connection, welding connection, socket connection, etc. In this step, the server analyzes the connection relationship through the water supply main pipe information. Specifically, when the pipeline is arranged, it can be divided into two forms of branch and ring according to the reliability requirements of water supply. The server determines the corresponding pipeline layout through the above water supply main pipe information. Then, the server determines the corresponding pipeline layout form based on the pipeline layout, and determines the connection relationship between the water supply main pipes based on the preset connection conditions, and finally obtains the corresponding main pipe connection relationship.
[0052] 303. Analyze the water supply components based on the main pipe connection relationship to determine a set of water supply components to be processed;
[0053] It should be noted that the generation of the water supply schematic diagram requires the components in the water supply system to be converted and drawn into a two-dimensional schematic diagram in a certain way, so all components of the system need to be obtained. The server obtains the subsequent pipe, pipe accessory, device, etc. component information according to the above main pipe connection relationship, wherein after each layer of horizontal branch pipe, if there is a water meter, the first shutoff valve after the water meter is obtained; if there is no water meter after each layer of horizontal branch pipe, the first shutoff valve of the layer of horizontal branch pipe is obtained. The definition of the shutoff valve is a stop valve, a ball valve or a gate valve, and then the server analyzes the water supply components according to the above main pipe connection relationship through the pre-set connection relationship component matching table to determine the water supply component set to be processed.
[0054] 304、screening the water supply component set to be processed through the component matching algorithm to obtain a plurality of water supply system components;
[0055] Specifically, the server screens the water supply component set to be processed to obtain a plurality of shutoff valve components; the server analyzes the position of the plurality of shutoff valve components to obtain the position information corresponding to each shutoff valve component; and the server screens the water supply component set to be processed through the component matching algorithm and the position information corresponding to each shutoff valve component to obtain a plurality of water supply system components.
[0056] After the server obtains the above water supply component set to be processed, the server screens the water supply component set to be processed to obtain a plurality of shutoff valve components in the above water supply component set to be processed. It should be noted that the definition of the shutoff valve is a stop valve, a ball valve or a gate valve. Further, the server analyzes the position of the plurality of shutoff valves, wherein the significance of the position analysis is to determine whether the shutoff valve is located after the water meter. When drawing the water supply schematic diagram, the first shutoff valve after the water meter is obtained, and the subsequent water supply components are stopped. If there is no shutoff valve after the horizontal branch pipe when analyzing the horizontal branch pipe, the first shutoff valve on the horizontal branch pipe is obtained, and the water supply components are stopped. In this step, the server screens the water supply component set to be processed to obtain a plurality of water supply system components after obtaining the position information of each shutoff valve through the above component acquisition principle.
[0057] 305, performing primitive matching on the plurality of water supply system components to obtain a plurality of water supply system component primitives;
[0058] It should be noted that during element matching, the server first obtains the feature information of each standard legend in the standard library. Then, it searches the drawing template for target core elements that are of the same category as the basic core elements of each standard legend. Next, it checks if a target legend centered on the target core element exists in the drawing template. The target legend contains reference elements of the same category and number as the corresponding standard legend contains basic elements. If found, the server determines whether the positional topology between the reference elements in the target legend is the same as the positional topology between the basic elements in the standard legend. If they are the same, the target legend is determined to match the standard legend, thus obtaining multiple water supply system component elements.
[0059] 306. Perform cluster analysis on multiple water supply system component elements to obtain multiple sets of water supply system component elements and the component type corresponding to each set of water supply system component elements. The component types include riser pipes, horizontal main pipes, and horizontal branch pipes.
[0060] Specifically, the server performs clustering processing on multiple water supply system component elements to obtain multiple cluster points; the server calculates the distance between the multiple cluster points and the preset cluster centers to obtain multiple cluster distances; the server performs secondary clustering on the multiple water supply system component elements based on the multiple cluster distances to obtain multiple sets of water supply system component elements; the server performs type matching on the multiple sets of water supply system component elements to obtain the component type corresponding to each set of water supply system component elements, where the component types include riser pipes, horizontal main pipes, and horizontal branch pipes.
[0061] In this process, multiple water supply system construction primitives are clustered to obtain multiple cluster points. K objects are randomly selected as initial cluster centers. Then, the distance between each object and each seed cluster center is calculated. The cluster centers and the objects assigned to them represent a cluster. Clustering multiple water supply system construction primitives will calculate the distance between all points in the dataset and these centroids, and assign these primitives to the class closest to their centroids. After completion, the average value of each cluster needs to be calculated, and this point is used as the new centroid until convergence. The distance between multiple cluster points and the preset cluster center is calculated to obtain multiple cluster distances. Based on the multiple cluster distances, multiple water supply system construction elements are clustered in a secondary manner to obtain multiple sets of water supply system component elements. The multiple sets of water supply system component elements include multiple secondary clustering results. Type matching is performed on the multiple sets of water supply system component elements. Each set of water supply system component elements corresponds to a construction type. The multiple sets of water supply system component elements are traversed and the construction type corresponding to each set of water supply system component elements is obtained. The component types include riser type, horizontal trunk pipe type, and horizontal branch pipe type.
[0062] 307. generating the pipeline by giving the water main information to obtain the corresponding water supply pipeline set;
[0063] Specifically, the server marks each area drawing in the initial water supply schematic based on the water supply equipment information in the water supply main information. For example, the water supply pipeline data of region A in the water supply equipment information in the initial water supply schematic is exported, and the corresponding drawing is marked as the water supply pipeline data of region A, thereby facilitating the classification and preservation in the later pipeline prefabrication process. It should be noted that the water supply pipeline data at least includes pipeline length information data, pipeline diameter information, pipeline thickness information and pipeline connection point information, and then the server generates the pipeline according to the above water supply pipeline data to obtain the corresponding water supply pipeline set.
[0064] 308. based on the component type corresponding to each water supply system component meta set, the pipeline accessory meta set is matched to each water supply system component meta set to obtain the pipeline accessory meta set;
[0065] Specifically, the server arranges the position of each water supply system component meta set based on the component type corresponding to each water supply system component meta set to obtain the arrangement position corresponding to each water supply system component meta set. The server filters the pipeline accessory meta set through the arrangement position corresponding to each water supply system component meta set to obtain the pipeline accessory meta set.
[0066] It should be noted that the size of each meta is determined according to the shape category corresponding to each meta. For example, if the meta is a circle, the size of the meta is the radius and the height, if the meta is a straight line, the size of the meta is the length, etc. Specifically, the server determines the corresponding meta attribute data based on the target water supply pipeline set, wherein the meta attribute data is the title name of the water and drainage accessory. It should be noted that the meta attribute data set includes a plurality of preset meta attribute data, and each preset meta attribute data is a synonym, a near-synonym or a word with the same meaning of the drawing name. For example, drawing name, drawing name, drawing name, etc. Then the server obtains the component associated with each meta from the building information model component database. The server determines the shape category to which each meta belongs, analyzes the arrangement position between the metas with the same shape category according to the determination result, and when the arrangement position matches any one of the preset arrangement positions in the arrangement position set, obtains the corresponding water and drainage accessory component information from the building information model component database according to the arrangement position. For example, according to the plan position of the riser, arrange it from left to right, and then according to the height of the riser, draw it to the drawing, and if the two ends of the riser are connected to the same pipe, merge them into one. Then obtain the pipeline accessory connected to each riser, and at the same time, the server adds a pipe breaking symbol at the end of the main pipe according to the branch position of the horizontal main pipe from the main pipe to the riser. Then obtain the pipeline accessory meta set connected to each horizontal main pipe.
[0067] 309、based on the initial water supply schematic diagram and the water supply pipeline set, the target water supply schematic diagram is generated through the pipeline accessory graph element set and the water supply system component graph element set.
[0068] Specifically, the server filters and extracts components of the building information model family according to the task requirements of the architectural design and the characteristic values of the water and drainage equipment, forms a project graph element library, and then the server divides the grid based on the building contour plane, and subdivides according to the functions and regions of the pipelines in the water supply system. Then the server determines the configuration parameters of the water and drainage facilities that have been arranged based on the water and drainage facility graph elements that have been arranged in the initial water supply schematic diagram, and performs pipeline drawing on the initial water supply schematic diagram according to the above water supply pipeline set. Then the server determines the connection relationship of the water and drainage facilities that have been arranged based on the pipeline graph elements that have been arranged in the initial water supply schematic diagram, and generates the target water supply schematic diagram through the pipeline accessory graph element set, the water supply system component graph element set, and the configuration parameters and connection relationship of the water and drainage facilities.
[0069] Optionally, after the server generates the target water supply schematic diagram through the pipeline accessory graph element set and the water supply system component graph element set based on the initial water supply schematic diagram and the water supply pipeline set, the server can further include: the server obtains pipeline parameter information and pipeline label information from a pre-set building information database, wherein the pipeline parameter information includes pipeline abbreviation name, pipeline size data and pipeline elevation data; and the server performs information labeling on the target water supply schematic diagram through a pre-set labeling algorithm.
[0070] Wherein, the server obtains the riser number information in the riser, draws the number and its lead-out line to the corresponding riser line, and at the same time, the server obtains the elevation line, obtains the horizontal branch line, takes the horizontal branch line farthest in the horizontal direction as the terminal point of the elevation line, and extends all the elevation lines to this point to obtain the riser, the horizontal main pipe and the horizontal branch pipe. Finally, the server obtains the pipe diameter information in the riser, the horizontal main pipe and the horizontal branch pipe, and draws it to the corresponding riser line, horizontal branch line and horizontal main pipe line. When the server labels through the above labeling algorithm, it will analyze the labeling position of the pipeline abbreviation name, pipeline size data and pipeline elevation data to be labeled, and automatically avoid overlapping areas, and finally complete the information labeling of the water supply schematic diagram, as shown in Figure 4 , Figure 4 a schematic view of the water supply schematic diagram after completing the information labeling.
[0071] In the embodiment of the present application, when performing graph element matching, the server first acquires feature information of each standard graph example in the standard library, then finds a target core graph element with the same category as the basic core graph element of each standard graph example in the drawing template, and then finds whether a target graph example centered on the target core graph element exists in the drawing template. Meanwhile, the server iterates through a plurality of water supply system component graph element sets and obtains a construction type corresponding to each water supply system component graph element set. Finally, when the server performs labeling through the above labeling algorithm, the server will perform labeling position analysis on the pipe abbreviation name, pipe size data and pipe elevation data to be labeled, and automatically avoid overlapping areas, and finally complete information labeling of the water supply principle. The server directly generates a principle diagram through an algorithm, and batch labels pipe diameter and vertical pipe number, thereby saving the process of manual drawing and modification, saving time and cost, and improving the efficiency of water supply principle drawing.
[0072] Referring to Figure 5 In an embodiment of the water supply principle diagram generation device, the embodiment includes the following steps:
[0073] The information acquisition module 501 is configured to acquire water supply main pipe information and elevation information of a preset building from a preset building information database, and generate an initial water supply principle diagram based on the elevation information.
[0074] The first matching module 502 is configured to perform water supply component graph element matching based on the water supply main pipe information through a preset component matching algorithm, and obtain a plurality of water supply system component graph elements.
[0075] The clustering analysis module 503 is configured to perform clustering analysis on the plurality of water supply system component graph elements, and obtain a plurality of water supply system component graph element sets and a component type corresponding to each water supply system component graph element set. The component type includes a vertical pipe type, a horizontal main pipe type, and a horizontal branch pipe type.
[0076] The pipeline generation module 504 is configured to perform pipeline generation based on the water supply main pipe information, and obtain a corresponding water supply pipeline set.
[0077] The second matching module 505 is configured to perform pipe accessory graph element matching on each water supply system component graph element set based on the component type corresponding to each water supply system component graph element set, and obtain a pipe accessory graph element set.
[0078] The drawing generation module 506 is configured to generate a target water supply principle diagram based on the initial water supply principle diagram and the water supply pipeline set, the pipe accessory graph element set, and the water supply system component graph element set.
[0079] Referring to Figure 6 In another embodiment of the water supply principle diagram generation device, the embodiment includes the following steps:
[0080] The information acquisition module 501 is configured to acquire water supply main pipe information and elevation information of a preset building from a preset building information database, and generate an initial water supply principle diagram based on the elevation information.
[0081] The first matching module 502 is configured to perform water supply component primitive matching on the water supply main pipe information based on a preset component matching algorithm, to obtain a plurality of water supply system component primitives.
[0082] The clustering analysis module 503 is configured to perform clustering analysis on the plurality of water supply system component primitives, to obtain a plurality of water supply system component primitive sets and a component type corresponding to each water supply system component primitive set, wherein the component type includes a vertical pipe type, a horizontal main pipe type, and a horizontal branch pipe type.
[0083] The pipeline generation module 504 is configured to perform pipeline generation based on the water supply main pipe information, to obtain a corresponding water supply pipeline set.
[0084] The second matching module 505 is configured to perform pipe accessory primitive matching on each water supply system component primitive set based on a component type corresponding to each water supply system component primitive set, to obtain a pipe accessory primitive set.
[0085] The drawing generation module 506 is configured to generate a target water supply principle diagram based on the initial water supply principle diagram and the water supply pipeline set, the pipe accessory primitive set, and the water supply system component primitive set.
[0086] Optionally, the information acquisition module 501 is specifically configured to perform water supply system matching based on the water supply main pipe information, to obtain water supply system information; perform annotation primitive generation based on the water supply system information and the elevation information, to obtain an annotation primitive set; and generate an initial water supply principle diagram based on the annotation primitive set.
[0087] Optionally, the first matching module 502 further includes a relationship matching unit 5021 configured to perform water supply main pipe connection relationship matching based on the water supply main pipe information, to determine a corresponding main pipe connection relationship; an analysis unit 5022 configured to perform water supply component analysis based on the main pipe connection relationship, to determine a water supply component set to be processed; a screening unit 5023 configured to screen the water supply component set to be processed based on the component matching algorithm, to obtain a plurality of water supply system components; and a primitive matching unit 5024 configured to perform primitive matching on the plurality of water supply system components, to obtain a plurality of water supply system component primitives.
[0088] Optionally, the screening unit 5023 is specifically used for screening the set of water supply components to be processed to obtain a plurality of shutoff valve components; performing position analysis on the plurality of shutoff valve components to obtain position information corresponding to each shutoff valve component; and screening the set of water supply components to be processed by using the component matching algorithm and the position information corresponding to each shutoff valve component to obtain a plurality of water supply system components.
[0089] Optionally, the clustering analysis module 503 is specifically used for performing clustering processing on the plurality of water supply system component graph elements to obtain a plurality of clustering points; performing distance calculation on the plurality of clustering points and a preset clustering center to obtain a plurality of clustering distances; performing secondary clustering on the plurality of water supply system component graph elements based on the plurality of clustering distances to obtain a plurality of water supply system component graph element sets; and performing type matching on the plurality of water supply system component graph element sets to obtain a component type corresponding to each water supply system component graph element set, wherein the component type includes a riser type, a horizontal main pipe type, and a horizontal branch pipe type.
[0090] Optionally, the second matching module 505 is specifically used for performing arrangement position analysis on each water supply system component graph element set based on the component type corresponding to each water supply system component graph element set to obtain an arrangement position corresponding to each water supply system component graph element set; and performing pipe accessory graph element screening by using the arrangement position corresponding to each water supply system component graph element set to obtain a pipe accessory graph element set.
[0091] Optionally, the water supply schematic diagram generation apparatus further includes a parameter acquisition module 507, configured to acquire pipe parameter information and pipe label information from a preset building information database, wherein the pipe parameter information includes pipe abbreviation name, pipe size data, and pipe elevation data; and an information labeling module 508, configured to perform information labeling on the target water supply schematic diagram by using a preset labeling algorithm.
[0092] Figure 7Fig. 7 is a schematic diagram of a computer device according to an embodiment of the present application. The computer device 700 can have a great difference due to different configurations or performances, and can include one or more processors (Central Processing Units, CPU) 710 (for example, one or more processors) and a memory 720, and one or more storage media 730 (for example, one or more mass storage devices) storing application programs 733 or data 732. The memory 720 and the storage media 730 can be temporary storage or persistent storage. The programs stored in the storage media 730 can include one or more modules (not shown in the figure), each of which can include a series of instruction operations on the computer device 700. Further, the processor 710 can be configured to communicate with the storage media 730 to execute a series of instruction operations in the storage media 730 on the computer device 700.
[0093] The computer device 700 can further include one or more power supplies 740, one or more wired or wireless network interfaces 750, one or more input / output interfaces 760, and / or one or more operating systems 731, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, etc. Those skilled in the art can understand that the computer device 700 can include more or fewer components than those shown in the figure, or some components can be combined, or different components can be arranged. Figure 7 The computer device structure shown does not constitute a limitation on the computer device, and can include more or fewer components than those shown in the figure, or some components can be combined, or different components can be arranged.
[0094] The present application also provides a computer device including a memory and a processor, the memory storing computer readable instructions, and the computer readable instructions being executed by the processor to cause the processor to perform the steps of the water supply schematic diagram generation method in each of the embodiments.
[0095] The present application also provides a computer readable storage medium, which can be a non-volatile computer readable storage medium or a volatile computer readable storage medium, and the computer readable storage medium stores instructions, and the instructions, when executed on a computer, cause the computer to perform the steps of the water supply schematic diagram generation method.
[0096] The integrated unit, if in the form of a software function unit and sold or used as an independent product, can be stored in a computer-readable storage medium. Based on such an understanding, the technical solutions of the present application, essentially or in part or all or part of the technical solutions, can be embodied in the form of a software product. The computer software product is stored in a storage medium, and includes several instructions for causing a computer device to perform all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory, a random access memory, a magnetic disk or an optical disk, and various media that can store program codes.
Claims
1. A water supply schematic generation method characterized by, The method comprises: obtaining water supply main pipe information and elevation information of a preset building from a preset building information database, and generating an initial water supply principle diagram through the elevation information; performing water supply component primitive matching on the water supply main pipe information through a preset component matching algorithm to obtain a plurality of water supply system component primitives; performing angle classification on the plurality of water supply system component primitives, and performing cluster analysis on water supply system component primitives of the same angle type, so that water supply system component primitives with similar coordinate characteristic values are clustered into the same category to obtain a plurality of water supply system component primitive sets, and determining a component type corresponding to each water supply system component primitive set, wherein the component type comprises a riser type, a horizontal main pipe type, and a horizontal branch pipe type; generating a pipeline through the water supply main pipe information to obtain a corresponding water supply pipeline set; performing pipeline accessory primitive matching on each water supply system component primitive set based on the component type corresponding to each water supply system component primitive set to obtain a pipeline accessory primitive set; generating a target water supply principle diagram through the pipeline accessory primitive set and the water supply system component primitive set based on the initial water supply principle diagram and the water supply pipeline set.
2. The water service schematic generation method of claim 1, wherein, The method comprises: performing water supply system matching through the water supply main pipe information to obtain water supply system information; generating a labeling primitive set through the water supply system information and the elevation information; generating an initial water supply principle diagram based on the labeling primitive set.
3. The water service schematic generation method of claim 1, wherein, The method comprises: performing water supply main pipe connection relationship matching through the water supply main pipe information to determine a corresponding main pipe connection relationship; performing water supply component analysis based on the main pipe connection relationship to determine a water supply component set to be processed; performing screening on the water supply component set to be processed through the component matching algorithm to obtain a plurality of water supply system components; performing primitive matching on the plurality of water supply system components to obtain a plurality of water supply system component primitives.
4. The water service schematic generation method according to claim 3, characterized by, The method comprises: performing screening on the water supply component set to be processed to obtain a plurality of shutoff valve components; performing position analysis on the plurality of shutoff valve components to obtain position information corresponding to each shutoff valve component; performing screening on the water supply component set to be processed through the component matching algorithm and the position information corresponding to each shutoff valve component to obtain a plurality of water supply system components.
5. The water service schematic generation method of claim 1, wherein, The method comprises: The plurality of water supply system component graph elements are clustered to obtain a plurality of clustering points; The plurality of clustering points and preset clustering centers are distance calculated to obtain a plurality of clustering distances; The plurality of water supply system component graph elements are secondarily clustered based on the plurality of clustering distances to obtain a plurality of water supply system component graph element sets; The plurality of water supply system component graph element sets are type matched to obtain a component type corresponding to each water supply system component graph element set.
6. The water service schematic generation method of claim 1, wherein, The plurality of water supply system component graph element sets are type matched to obtain a component type corresponding to each water supply system component graph element set. The plurality of water supply system component graph element sets are type matched to obtain a component type corresponding to each water supply system component graph element set. The plurality of water supply system component graph element sets are type matched to obtain a component type corresponding to each water supply system component graph element set.
7. The water principle diagram generating method according to any one of claims 1 to 6, characterized by, After the target water supply schematic diagram is generated based on the initial water supply schematic diagram and the water supply pipeline set through the pipeline accessory graph element set and the water supply system component graph element set, the method further includes: Pipeline parameter information and pipeline label information are obtained from a preset building information database, wherein the pipeline parameter information includes pipeline abbreviation name, pipeline size data, and pipeline elevation data; The target water supply schematic diagram is information labeled through a preset labeling algorithm.
8. A water supply schematic generating apparatus characterized by comprising: The water supply schematic diagram generation device includes: An information obtaining module is configured to obtain water supply main pipeline information and elevation information of a preset building from a preset building information database, and generate an initial water supply schematic diagram based on the elevation information; A first matching module is configured to match water supply component graph elements based on the water supply main pipeline information through a preset component matching algorithm to obtain a plurality of water supply system component graph elements; A clustering analysis module is configured to classify the plurality of water supply system component graph elements by angle, and perform clustering analysis on water supply system component graph elements of the same angle type, so that water supply system component graph elements with similar coordinate characteristic values are clustered into the same category to obtain a plurality of water supply system component graph element sets, and determine a component type corresponding to each water supply system component graph element set, wherein the component type includes vertical pipe type, horizontal main pipe type, and horizontal branch pipe type; A pipeline generation module is configured to generate a corresponding water supply pipeline set based on the water supply main pipeline information; A second matching module is configured to match pipeline accessory graph elements based on a component type corresponding to each water supply system component graph element set to obtain a pipeline accessory graph element set; A drawing generation module is configured to generate a target water supply schematic diagram based on the initial water supply schematic diagram and the water supply pipeline set through the pipeline accessory graph element set and the water supply system component graph element set.
9. A computer device, comprising: The computer device includes a memory and at least one processor, and the memory stores instructions; The at least one processor invokes the instructions in the memory to cause the computer device to perform the water supply schematic generation method as claimed in any one of claims 1-7.
10. A computer-readable storage medium having stored thereon instructions, the instructions comprising, The instructions, when executed by a processor, implement the water supply schematic generation method as claimed in any one of claims 1-7.
Citation Information
Patent Citations
Data processing method and device for water supply and drainage construction drawing and drawing operating system
CN113901560A