CN111814283A - Method and device for calculating engineering quantity of spraying pipeline, storage medium and computer equipment - Google Patents

Method and device for calculating engineering quantity of spraying pipeline, storage medium and computer equipment Download PDF

Info

Publication number
CN111814283A
CN111814283A CN202010625108.5A CN202010625108A CN111814283A CN 111814283 A CN111814283 A CN 111814283A CN 202010625108 A CN202010625108 A CN 202010625108A CN 111814283 A CN111814283 A CN 111814283A
Authority
CN
China
Prior art keywords
pipeline
pipe diameter
tree structure
calculating
spray
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010625108.5A
Other languages
Chinese (zh)
Other versions
CN111814283B (en
Inventor
樊奇
吕尧
王朋飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Glodon Co Ltd
Original Assignee
Glodon Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Glodon Co Ltd filed Critical Glodon Co Ltd
Priority to CN202010625108.5A priority Critical patent/CN111814283B/en
Publication of CN111814283A publication Critical patent/CN111814283A/en
Application granted granted Critical
Publication of CN111814283B publication Critical patent/CN111814283B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/17Mechanical parametric or variational design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/18Network design, e.g. design based on topological or interconnect aspects of utility systems, piping, heating ventilation air conditioning [HVAC] or cabling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/14Tree-structured documents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/14Tree-structured documents
    • G06F40/143Markup, e.g. Standard Generalized Markup Language [SGML] or Document Type Definition [DTD]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2113/00Details relating to the application field
    • G06F2113/14Pipes

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Pure & Applied Mathematics (AREA)
  • Mathematical Optimization (AREA)
  • Evolutionary Computation (AREA)
  • Mathematical Analysis (AREA)
  • Computational Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a method and a device for calculating the engineering quantity of a spraying pipeline, a storage medium and computer equipment. The method comprises the following steps: acquiring construction drawing information; determining a spray head and a pipeline in the construction drawing information; constructing a tree structure according to the geometric position relation and the connection relation of the pipeline and the spray head; acquiring attribute information and professional specification information of a pipeline; and calculating the pipe diameter of the pipeline according to the tree structure, the attribute information and the professional specification information. By the method and the device, the accuracy of calculating the engineering quantity of the spraying pipeline can be improved.

Description

Method and device for calculating engineering quantity of spraying pipeline, storage medium and computer equipment
Technical Field
The embodiment of the invention relates to the technical field of engineering quantity calculation, in particular to a method and a device for calculating the engineering quantity of a spray pipeline, a storage medium and computer equipment.
Background
With the continuous development of computer technology, more and more engineering quantity calculation abandons manual calculation quantity and adopts software calculation quantity gradually, so that the calculation quantity efficiency can be greatly improved. The calculation of the engineering quantity (including the pipe diameter of the pipeline) of the fire-fighting spray pipeline is an important ring in the measurement of installation engineering, and is characterized by large drawing magnitude, fussy manual calculation and higher requirement on calculation precision.
In the related technology, when the engineering quantity of the fire-fighting spray pipeline is calculated, the pipe diameter marked on the drawing is directly identified, although the method can identify the pipe diameter, the method has the following problems that on one hand, the requirement on the original drawing paper is high, when the pipe diameter marked on the original drawing paper does not exist, or the pipe diameter standard is fuzzy, the calculation of the engineering quantity of the spray pipeline is influenced, and the accuracy of the calculation is reduced; on the other hand, when the attribute of the spraying pipeline to be calculated needs to be modified in real time or the pipeline needs to be adjusted according to the industry specification, the method for calculating the engineering quantity of the spraying pipeline cannot automatically calculate according to the modified and/or adjusted pipeline, and the flexibility is poor.
Therefore, how to improve the accuracy of calculating the engineering quantity of the spraying pipeline, and meanwhile, the existing pipeline arrangement on the drawing can be flexibly adjusted according to needs in the calculating process and the calculation can be performed according to the adjusted pipeline, which becomes a technical problem to be solved in the field.
Disclosure of Invention
The invention aims to provide a method and a device for calculating the engineering quantity of a spraying pipeline, a storage medium and computer equipment, which are used for solving the technical problems in the prior art.
In one aspect, the invention provides a method for calculating the engineering quantity of a spray pipeline.
The method for calculating the engineering quantity of the spraying pipeline comprises the following steps: acquiring construction drawing information; determining the spray head and the pipeline in the construction drawing information; constructing a tree structure according to the geometric position relation and the connection relation of the pipeline and the spray head; acquiring attribute information and professional specification information of the pipeline; and calculating the pipe diameter of the pipeline according to the tree structure, the attribute information and the professional specification information.
Further, the step of determining the spray heads and the pipelines in the construction drawing information comprises: extracting line elements and block elements in the construction drawing information; determining the block elements which accord with a preset shape and size as the spray heads; and determining the line element having a connection relationship with the showerhead as the pipeline.
Further, the step of constructing a tree structure according to the geometric positional relationship and the connection relationship between the pipeline and the sprinkler includes: taking the intersection position of the pipeline as a branch node of the tree structure; taking the spray head as a leaf node of the tree structure; and taking the tail end of the pipeline which is not connected with the spray head as a root node of the tree structure.
Further, the step of calculating the pipe diameter of the pipeline according to the tree structure, the attribute information and the professional specification information comprises: determining the number of the spray heads connected with the pipeline according to the tree structure; when the pipeline is determined to have the capacity of connecting the number of spray heads according to the professional specification information, obtaining a corresponding pipe diameter range to obtain a first pipe diameter range; and determining the pipe diameter of the pipeline in the first pipe diameter range according to the attribute information.
Further, before the step of calculating the pipe diameter of the pipeline according to the tree structure, the attribute information and the professional specification information, the method for calculating the engineering quantity of the spraying pipeline further comprises the following steps: carrying out external expansion on the pipeline according to the shape of the pipeline to obtain an external expansion area; extracting a digital identifier in the extended area; and when the digital identification is extracted, identifying the digital identification to obtain the pipe diameter of the pipeline, wherein when the digital identification cannot be extracted, the pipe diameter of the pipeline is calculated according to the tree structure, the attribute information and the professional specification information.
Further, when the digital identifier is not extracted, determining the pipe diameter of the pipeline within the first pipe diameter range according to the attribute information includes: determining an upstream pipeline and a downstream pipeline of the pipeline to obtain a second pipe diameter range, wherein the end point value of the second pipe diameter range is the pipe diameter of the upstream pipeline and the pipe diameter of the downstream pipeline; and determining the pipe diameter of the pipeline in the intersection area of the first pipe diameter range and the second pipe diameter range according to the attribute information.
Further, the step of constructing a tree structure according to the geometric positional relationship and the connection relationship between the pipeline and the sprinkler includes: responding to modification operation, modifying the spray head and/or the pipeline, and constructing the tree structure according to the modified geometric position relation and connection relation of the pipeline and the spray head; the method for calculating the engineering quantity of the spray pipeline further comprises the following steps: determining a sum of lengths of the pipelines from the tree structure.
In another aspect, the present invention provides a device for calculating the engineering quantity of a spray pipeline.
The computing device for the engineering quantity of the spraying pipeline comprises: the acquisition module is used for acquiring the construction drawing information, the attribute information of the pipeline and the professional specification information; the processing module is used for determining the spray heads and the pipelines in the construction drawing information and constructing a tree structure according to the geometric position relation and the connection relation of the pipelines and the spray heads; and the calculation module is used for calculating the pipe diameter of the pipeline according to the tree structure, the attribute information and the professional specification information.
In another aspect, to achieve the above object, the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and running on the processor, and when the processor executes the computer program, the steps of the method are implemented.
In a further aspect, to achieve the above object, the present invention further provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the above method.
The invention provides a method, a device, a storage medium and computer equipment for calculating the engineering quantity of a spraying pipeline, which are characterized in that firstly, building drawing information is obtained, then a spray head and a pipeline in the building drawing information are determined, a tree structure is constructed according to the geometric position relation and the connection relation of the pipeline and the spray head, then attribute information and professional specification information of the pipeline are obtained, finally, the pipe diameter of the pipeline is calculated according to the tree structure, the attribute information and the professional specification information, compared with the prior art that the pipe diameter is determined by completely depending on marks in the drawing, the invention can reduce the quality requirement of the drawing for the calculation of the engineering quantity of the spraying pipeline, can improve the calculation accuracy of the engineering quantity of the spraying pipeline, and can calculate based on the tree structure corresponding to a spraying system when the pipe diameter is calculated by combining the attribute information and the professional specification information of the pipeline, thereby ensuring that the, and the method meets the requirements of attribute requirements and professional specifications, and when a user modifies the attribute information as required and the professional specifications which the pipeline needs to meet, the pipe diameter calculation result of the pipeline is correspondingly the modified calculation result, so that the calculation of the engineering quantity of the spraying pipeline is more flexible, and the user can conveniently adjust and design the spraying pipeline.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a flowchart of a method for calculating a project load of a spray pipeline according to an embodiment of the present invention;
FIG. 2 is a block diagram of a device for calculating the engineering quantity of the spray pipeline according to the second embodiment of the present invention;
fig. 3 is a hardware structure diagram of a computer device according to a third embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the method for calculating the engineering quantity of the spraying pipeline, firstly, obtaining construction drawing information, then determining a spray head and a pipeline in the construction drawing information, constructing a tree structure according to the geometric position relation and the connection relation of the pipeline and the spray head, obtaining attribute information and professional specification information of the pipeline, and calculating the pipe diameter of the pipeline according to the tree structure, the attribute information and the professional specification information. It can be seen that when the pipe diameter of the pipeline is calculated, the identified geometric position relation and connection relation of the spray head and the pipeline are firstly utilized to construct a tree structure corresponding to a spray pipeline loop in a drawing identification range, and then calculation is performed based on the tree structure, the attribute information of the pipeline and professional specification information, on one hand, when no marked pipe diameter exists on an original drawing or a mark is not clear and is not easy to be identified correctly, the method provided by the invention can calculate the pipe diameter of the pipeline, the quality requirement of the calculation of the engineering quantity of the spray pipeline on the drawing is reduced, and the calculation accuracy of the engineering quantity of the spray pipeline can be improved; on the other hand, when the pipe diameter is calculated, the calculation is carried out based on the tree structure and by combining the attribute information and the professional specification information of the pipeline, the pipeline is ensured to be in the spray pipeline loop and meet the attribute requirements and the professional specification requirements, and meanwhile, when a user modifies the attribute information and the professional specification which the pipeline needs to meet according to needs, the pipe diameter calculation result of the pipeline is correspondingly the modified calculation result, so that the calculation of the project quantity of the spray pipeline is more flexible, and the user can conveniently adjust and design the spray pipeline.
Specific embodiments of the method, the device, the storage medium and the computer device for calculating the engineering quantity of the spray pipeline provided by the invention will be described in detail below.
Example one
The embodiment of the invention provides a method for calculating the engineering quantity of a spraying pipeline, which can improve the accuracy of calculating the engineering quantity of the spraying pipeline, meanwhile, the existing pipeline setting on a drawing can be correspondingly adjusted according to the adjustment of a user in the calculating process, and the engineering quantity of the spraying pipeline can be calculated according to the adjusted pipeline, specifically, fig. 1 is a flow chart of the method for calculating the engineering quantity of the spraying pipeline provided by the embodiment of the invention, and as shown in fig. 1, the method for calculating the engineering quantity of the spraying pipeline provided by the embodiment comprises the following steps S101 to S105.
Step S101: and acquiring the construction drawing information.
Optionally, in an embodiment, a user may import a building drawing to be calculated into a software system for executing the method of the embodiment, after the system displays the drawing, the user may select an area to be calculated through a frame selection operation or a fold line selection operation according to a service requirement, and the system acquires the building drawing information corresponding to the area selected by the user.
Or, in an embodiment, a user may import a building drawing to be calculated into a software system executing the method of the embodiment, and input parameters, such as the length and width of an area, which may limit the drawing identification range, in a parameter receiving window, and the system acquires building drawing information corresponding to the parameter-limited area input by the user.
Or, the construction drawing information may also be obtained based on other operations or instructions, which is not limited in this application.
Step S102: and determining the spray heads and the pipelines in the construction drawing information.
After the building drawing information is acquired, in step S102, the nozzles and the pipelines in the building drawing information are determined. Optionally, data corresponding to the spray heads and the pipelines can be screened from the construction drawing information in a data screening mode; optionally, the image corresponding to the nozzle and the pipeline may also be identified in the image corresponding to the building drawing information by means of image identification, for example, in the CAD drawing, the model is composed of CAD elements, specifically including a point element, a line element, a block element, and the like, where for the spray pipeline model, the pipeline is expressed by the line element, the nozzle is expressed by the block element, when the nozzle and the pipeline in the building drawing information are determined, the line element and the block element in the building drawing information are extracted, specifically, the CAD elements therein are filtered according to the drawing area determined by the user, and the line element and the block element are retained; then, the extracted block elements are further screened according to the shape and the size of the sprayer, the block elements which accord with the preset shape and the preset size are determined to be the sprayer, the preset shape and the preset size can be set based on the legend corresponding to the sprayer, and the line elements which have the connection relation with the sprayer are further determined to be the pipelines after the sprayer is determined according to the extracted line elements. Optionally, after the step of extracting the line elements and the block elements in the construction drawing information, when the spray head and the pipeline are determined, the information such as the layers and colors of the block elements and the line elements may be simultaneously combined for determination, for example, determining that a plurality of block elements which conform to a preset shape and size and belong to the same layer and/or have the same color are the spray head, and if a plurality of line elements which have a connection relationship with the spray head and belong to the same layer and/or have the same color are determined to be the pipeline, the accuracy of identifying the spray head and the pipeline is improved, and the accuracy of calculating the engineering quantity of the spray pipeline is further improved.
Step S103: and constructing a tree structure according to the geometric position relation and the connection relation of the pipeline and the spray head.
Specifically, the spraying system comprises a main pipeline, a branch pipeline and equipment arranged at the tail end of the branch pipeline, a water inlet is used as the starting end of the spraying system, a spray head is used as the tail end of the spraying system, the pipeline and the spray head are integrally communicated loops, and the pipeline and the spray head can be abstracted to be in a tree structure. Optionally, when a tree structure is constructed, the intersection position of the pipeline is used as a branch node of the tree structure, the nozzle is used as a leaf node of the tree structure, the tail end of the pipeline which is not connected with the nozzle is used as a root node of the tree structure, specifically, after the branch node and the leaf node are determined, branches are traced back according to the leaf node, then a trunk is traced back, finally, a loop which is clearly communicated through a geometric position relation and a connection relation is used, for the tail end of the pipeline which is not connected with the nozzle, the tail end belongs to a water inlet of the spraying system, the water inlet is used as the root of the tree structure, and finally, the tree structure of the spraying system is formed through step-by-step node.
Step S104: and acquiring attribute information and professional specification information of the pipeline.
Specifically, the attribute information of the pipeline includes a pipeline model, a pipeline arrangement style, material information of the pipeline, a connection mode of the pipeline and the spray head, and the like, and all pipeline limiting information influencing the pipeline diameter belongs to the attribute information of the pipeline in the invention; the professional specification information of the pipeline comprises pipeline pipe diameter ranges specified by the pipeline under different danger grade requirements and different use places, and the like, and the industrial specification aiming at the pipe diameters of the pipeline in the spraying system belongs to the professional specification information of the pipeline.
The system comprises a pipeline, a system and a display device, wherein a user can set the attribute information of the pipeline and the professional specification information to be followed by the pipeline according to actual requirements, for example, a configuration interface for setting the attribute information and the professional specification information of the pipeline is provided, the attribute information and the professional specification information of the pipeline are displayed through the interface, meanwhile, in the interface, the user can configure and adjust the attribute information and the professional specification information of the pipeline in the construction drawing information through selection operation and/or information input operation, and the system obtains the attribute information and the professional specification information of the pipeline based on the operation of the user.
Optionally, an interface can be configured through double-window design, common modification interactive controls are placed in the main window, regular settings are placed in the sub-windows, the parent window controls the sub-windows to be visible and invisible, and the life cycles of the two windows are consistent. The master window may control the type switching of the "modify" command state. All tables and controls in the configuration interface follow a Model/View principle, the display operations of a form, a preview and the like can only directly display data and can not perform correction display different from data authenticity, the what you see is what you get is ensured, the common attributes of the pipelines are provided for a user to be set in the configuration window, and the one-by-one modification after identification, namely the attributes of the pipelines are displayed in the configuration window to set the attributes of the pipelines, is avoided.
Step S105: and calculating the pipe diameter of the pipeline according to the tree structure, the attribute information and the professional specification information.
Specifically, in one case, the number of the nozzles connected to each pipeline may be determined according to the tree structure, for example, a certain pipeline may be branched into three branches, each branch is connected with two nozzles, the number of the nozzles connected to the pipeline is six, the number of the nozzles connected to the pipeline in which each branch is located is two, and then the pipe diameter of the pipeline is determined on the premise of connecting the corresponding number of the nozzles according to the attribute information and the professional specification information of the pipeline. Optionally, the number of the nozzles connected with the pipeline is determined according to the tree structure, then when the pipeline is determined to have the capacity of connecting the number of the nozzles according to the professional specification information, the corresponding pipe diameter range is obtained, and finally the pipe diameter of the pipeline is determined in the first pipe diameter range according to the attribute information. Therefore, when the user adjusts the attribute information and the professional specification information, the calculated pipe diameter can be changed correspondingly.
Or, in another case, the corresponding relation between the number of the nozzles to be connected to the pipeline and the pipe diameter is determined according to the attribute information and the professional specification information, then the number of the nozzles actually connected to the pipeline is determined based on the tree structure, and finally the pipe diameter of the pipeline is determined according to the corresponding relation between the number of the nozzles and the pipe diameter and the number of the nozzles actually connected to the pipeline, so that when the attribute information and the professional specification information are adjusted by a user, the calculated pipe diameter can be changed correspondingly.
In the method for calculating the engineering quantity of the spraying pipeline provided by the embodiment, the construction drawing information is firstly obtained, then the spray head and the pipeline are determined in the construction drawing information, the tree structure is constructed according to the geometric position relation and the connection relation of the pipeline and the spray head, the attribute information and the professional specification information of the pipeline are further obtained, finally the pipe diameter of the pipeline is calculated according to the tree structure, the attribute information and the professional specification information, and the pipe diameter is determined relatively and completely depending on the label in the drawing. When a user modifies the attribute information as required and the pipeline needs to meet the professional specification, the pipe diameter calculation result of the pipeline is correspondingly the modified calculation result, so that the calculation of the engineering quantity of the spraying pipeline is more flexible, and the user can conveniently adjust and design the spraying pipeline.
Optionally, in an embodiment, before the step of calculating the pipe diameter of the pipeline according to the tree structure, the attribute information, and the professional specification information, the method for calculating the engineering quantity of the spray pipeline further includes: carrying out external expansion on the pipeline according to the shape of the pipeline to obtain an external expansion area; extracting a digital mark in the outward expansion area; and when the digital identification is extracted, identifying the digital identification to obtain the pipe diameter of the pipeline, wherein in the calculation method of the spraying pipeline engineering quantity, when the digital identification cannot be extracted, the pipe diameter of the pipeline is calculated according to the tree structure, the attribute information and the professional specification information.
Specifically, this embodiment provides two ways of determining the pipe diameter of the pipeline, that is, determining the pipe diameter by using the digital identifier of the pipeline in the drawing, that is, performing the external expansion of the pipeline according to its shape, presetting a parameter threshold for limiting the size of the external expansion region, performing the external expansion within the threshold to obtain the external expansion region, extracting the digital identifier from the external expansion region for identification, using the pipe diameter identified by the digital identifier extracted from the external expansion region as the pipe diameter of the pipeline, and calculating the pipe diameter of the pipeline according to the tree structure, the attribute information, and the professional specification information when the digital identifier is not extracted.
By adopting the method for calculating the engineering quantity of the spraying pipeline provided by the embodiment, the pipe diameter can be determined based on the pipe diameter of the pipeline marked in the original paper, and for the pipeline which cannot be determined based on the original paper, the pipe diameter can be further determined based on the tree structure representing the spraying system loop and the attribute information and professional specification information of the pipeline set by the user, so that the configuration operation of the user can be reduced, and the calculation accuracy can be improved.
Further optionally, when the digital identifier is not extracted, determining the pipe diameter of the pipeline within the first pipe diameter range according to the attribute information includes: determining an upstream pipeline and a downstream pipeline of the pipeline to obtain a second pipe diameter range, wherein the end point value of the second pipe diameter range is the pipe diameter of the upstream pipeline and the pipe diameter of the downstream pipeline; and determining the pipe diameter of the pipeline in the intersection area of the first pipe diameter range and the second pipe diameter range according to the attribute information.
Specifically, based on the characteristics of loop circulation, the pipe diameter of a pipeline is smaller than that of an upstream pipeline and larger than that of a downstream pipeline, so that for a certain pipeline, when no digital identifier is extracted, the upstream pipeline and the downstream pipeline of the pipeline are determined by a tree structure, namely, one pipe diameter range of the pipeline is determined, named as a second pipe diameter range in the invention, then the intersection area of the first pipe diameter range and the second pipe diameter range is determined, and the pipe diameter of the pipeline is determined in the intersection area.
By adopting the method for calculating the engineering quantity of the spraying pipeline provided by the embodiment, the pipe diameter of the pipeline is limited by the pipe diameter of the upstream pipeline and the pipe diameter of the downstream pipeline, and the accuracy of calculating the pipe diameter of the pipeline can be further improved.
Optionally, in an embodiment, before constructing the tree structure according to the geometric position relationship and the connection relationship between the pipeline and the spray head, the method for calculating the engineering quantity of the spray pipeline further includes: modifying the spray head and/or the pipeline in response to the modifying operation;
specifically, in the process of calculating the engineering quantity of the spraying pipeline, a user can modify the spray heads and/or the pipelines, specifically, the modification can include adding pipelines, deleting pipelines, modifying pipeline positions, adding spray heads, deleting spray heads, modifying spray head positions, modifying pipeline pipe diameters and the like, for example, two fire zones can be communicated by adding and/or deleting selected pipelines; aiming at the non-standard drawing, a pipeline is additionally drawn to communicate the two fire-proof subareas; the identification content may be manually adjusted for incorrect pipeline number identification.
By adopting the method for calculating the engineering quantity of the spraying pipelines, a user can modify the spray heads and/or the pipelines in the spraying system before constructing the tree structure, so that the user can modify or flexibly design the spraying system on the basis of original drawing paper and obtain the calculation result of the engineering quantity of the spraying pipelines.
Optionally, in an embodiment, after the step of constructing the tree structure according to the geometric position relationship and the connection relationship between the pipeline and the spray head, the method for calculating the engineering quantity of the spray pipeline further includes: the sum of the lengths of all the pipelines in the tree structure is calculated.
Specifically, after the tree structure is obtained, the sum of the lengths of all pipelines in the tree structure is calculated, that is, the length of the pipeline in the spraying system is obtained, so that the influence of redundant line elements in a drawing or wrong pipeline setting on the calculation of the length of the pipeline is avoided.
Example two
Corresponding to the first embodiment, a second embodiment of the present invention provides a device for calculating the engineering quantity of a spray pipeline, and fig. 2 is a block diagram of the device for calculating the engineering quantity of a spray pipeline provided by the second embodiment of the present invention, as shown in fig. 2, the device includes: an acquisition module 201, a processing module 202 and a calculation module 203.
The obtaining module 201 is configured to obtain construction drawing information, attribute information of a pipeline, and professional specification information; the processing module 202 is configured to determine the nozzles and the pipelines in the construction drawing information, and construct a tree structure according to the geometric position relationship and the connection relationship between the pipelines and the nozzles; and the calculating module 203 is used for calculating the pipe diameter of the pipeline according to the tree structure, the attribute information and the professional specification information.
Optionally, in an embodiment, the processing module 202 includes an extracting unit, a first determining unit and a second determining unit, wherein the extracting unit is configured to extract a line element and a block element in the construction drawing information; the first determining unit is used for determining block elements which accord with the preset shape and size as the spray head; and a second determination unit for determining the line element having a connection relationship with the head as a pipeline.
Optionally, in an embodiment, the processing module 202 further includes a first processing unit, a second processing unit, and a third processing unit, where the first processing unit is configured to use the intersection position of the pipeline as a branch node of a tree structure; the second processing unit is used for taking the spray head as a leaf node of the tree structure; and the third processing unit is used for taking the tail end of the pipeline which is not connected with the spray head as a root node of the tree structure.
Optionally, in an embodiment, the calculation module 203 includes a third determination unit, a fourth determination unit and a fifth determination unit, wherein the third determination unit is configured to determine the number of the sprinklers connected by the pipeline according to a tree structure; the fourth determining unit is used for determining the corresponding pipe diameter range when the pipeline has the capacity of connecting the number of spray heads according to the professional specification information to obtain a first pipe diameter range; and the fifth determining unit is used for determining the pipe diameter of the pipeline in the first pipe diameter range according to the attribute information.
Optionally, in an embodiment, the device for calculating the engineering quantity of the spraying pipeline further includes an identification module, configured to perform external expansion on the pipeline according to its shape to obtain an external expansion area before the calculation module 203 calculates the pipe diameter of the pipeline according to the tree structure, the attribute information, and the professional specification information, extract a digital identifier in the external expansion area, and when the digital identifier is extracted, identify the digital identifier to obtain the pipe diameter of the pipeline, where the calculation module 203 is further configured to calculate the pipe diameter of the pipeline according to the tree structure, the attribute information, and the professional specification information when the digital identifier is not extracted by the identification module.
Optionally, in an embodiment, when the digital identifier cannot be extracted, the fifth determining unit is further configured to determine an upstream pipeline and a downstream pipeline of the pipeline, to obtain a second pipe diameter range, where end points of the second pipe diameter range are pipe diameters of the upstream pipeline and the downstream pipeline, and determine the pipe diameter of the pipeline in an intersection area of the first pipe diameter range and the second pipe diameter range according to the attribute information.
Optionally, in an embodiment, the processing module 203 is further configured to modify the sprinklers and/or the pipelines in response to the modification operation, construct a tree structure according to the modified geometric position relationship and connection relationship between the pipelines and the sprinklers, and the computing device for calculating the engineering quantity of the spray pipelines further includes a determining module configured to determine the sum of the lengths of the pipelines according to the tree structure.
EXAMPLE III
In a third embodiment, a computer device is provided, such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a rack server, a blade server, a tower server, or a rack server (including an independent server or a server cluster composed of multiple servers) capable of executing programs. As shown in fig. 3, the computer device 01 of the present embodiment at least includes but is not limited to: a memory 011 and a processor 012, which are communicatively connected to each other via a system bus, as shown in fig. 3. It is noted that fig. 3 only shows the computer device 01 having the component memory 011 and the processor 012, but it is to be understood that not all of the shown components are required to be implemented, and that more or fewer components may be implemented instead.
In this embodiment, the memory 011 (i.e., a readable storage medium) includes a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. In some embodiments, the storage 011 can be an internal storage unit of the computer device 01, such as a hard disk or a memory of the computer device 01. In other embodiments, the memory 011 can also be an external storage device of the computer device 01, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), etc. provided on the computer device 01. Of course, the memory 011 can also include both internal and external memory units of the computer device 01. In this embodiment, the memory 011 is generally used for storing an operating system installed in the computer apparatus 01 and various application software, such as program codes of the computing device of the spraying pipeline engineering quantity in the second embodiment. Further, the memory 011 can also be used to temporarily store various kinds of data that have been output or are to be output.
The processor 012 may be a Central Processing Unit (CPU), a controller, a microcontroller, a microprocessor, or other data Processing chip in some embodiments. The processor 012 is generally used to control the overall operation of the computer device 01. In this embodiment, the processor 012 is configured to run a program code stored in the memory 011 or process data, such as a method of calculating a shower line work amount.
Example four
The fourth embodiment provides a computer-readable storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, a server, an App application mall, etc., on which a computer program is stored, which when executed by a processor implements corresponding functions. The computer-readable storage medium of this embodiment is used for storing a computing device of the spray line engineering quantity, and when being executed by the processor, the computing device of the spray line engineering quantity of the first embodiment implements the computing method of the spray line engineering quantity of the first embodiment.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A method for calculating the engineering quantity of a spray pipeline is characterized by comprising the following steps:
acquiring construction drawing information;
determining the spray head and the pipeline in the construction drawing information;
constructing a tree structure according to the geometric position relation and the connection relation of the pipeline and the spray head;
acquiring attribute information and professional specification information of the pipeline; and
and calculating the pipe diameter of the pipeline according to the tree structure, the attribute information and the professional specification information.
2. The method for calculating the engineering quantity of the spray pipelines according to claim 1, wherein the step of determining the spray heads and the pipelines in the construction drawing information comprises the following steps:
extracting line elements and block elements in the construction drawing information;
determining the block elements which accord with a preset shape and size as the spray heads; and
determining the line element having a connection relationship with the showerhead as the pipeline.
3. The method for calculating the engineering quantity of the spray pipeline according to claim 1, wherein the step of constructing the tree structure according to the geometric position relation and the connection relation of the pipeline and the spray head comprises the following steps:
taking the intersection position of the pipeline as a branch node of the tree structure;
taking the spray head as a leaf node of the tree structure;
and taking the tail end of the pipeline which is not connected with the spray head as a root node of the tree structure.
4. The method for calculating the engineering quantity of the spraying pipeline according to claim 1, wherein the step of calculating the pipe diameter of the pipeline according to the tree structure, the attribute information and the professional specification information comprises the following steps:
determining the number of the spray heads connected with the pipeline according to the tree structure;
when the pipeline is determined to have the capacity of connecting the number of spray heads according to the professional specification information, obtaining a corresponding pipe diameter range to obtain a first pipe diameter range; and
and determining the pipe diameter of the pipeline in the first pipe diameter range according to the attribute information.
5. The method for calculating the engineering quantity of the spray pipelines according to claim 4, wherein before the step of calculating the pipe diameter of the pipeline according to the tree structure, the attribute information and the professional specification information, the method for calculating the engineering quantity of the spray pipelines further comprises:
carrying out external expansion on the pipeline according to the shape of the pipeline to obtain an external expansion area;
extracting a digital identifier in the extended area;
when the digital mark is extracted, the digital mark is identified to obtain the pipe diameter of the pipeline,
and when the digital identifier cannot be extracted, calculating the pipe diameter of the pipeline according to the tree structure, the attribute information and the professional specification information.
6. The method for calculating the engineering quantity of the spraying pipeline according to claim 5, wherein when the digital identifier is not extracted, determining the pipe diameter of the pipeline within the first pipe diameter range according to the attribute information comprises:
determining an upstream pipeline and a downstream pipeline of the pipeline to obtain a second pipe diameter range, wherein the end point value of the second pipe diameter range is the pipe diameter of the upstream pipeline and the pipe diameter of the downstream pipeline;
and determining the pipe diameter of the pipeline in the intersection area of the first pipe diameter range and the second pipe diameter range according to the attribute information.
7. The method of calculating the project quantity of a spray line according to claim 1,
the step of constructing a tree structure according to the geometric position relationship and the connection relationship between the pipeline and the spray head comprises the following steps: responding to modification operation, modifying the spray head and/or the pipeline, and constructing the tree structure according to the modified geometric position relation and connection relation of the pipeline and the spray head;
the method for calculating the engineering quantity of the spray pipeline further comprises the following steps: determining a sum of lengths of the pipelines from the tree structure.
8. A computing device for spray line engineering quantity, comprising:
the acquisition module is used for acquiring the construction drawing information, the attribute information of the pipeline and the professional specification information;
the processing module is used for determining the spray heads and the pipelines in the construction drawing information and constructing a tree structure according to the geometric position relation and the connection relation of the pipelines and the spray heads; and
and the calculation module is used for calculating the pipe diameter of the pipeline according to the tree structure, the attribute information and the professional specification information.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 7 are implemented by the processor when executing the computer program.
10. A computer-readable storage medium having stored thereon a computer program, characterized in that: the computer program when executed by a processor implements the steps of the method of any one of claims 1 to 7.
CN202010625108.5A 2020-07-01 2020-07-01 Method and device for calculating engineering quantity of spray pipeline, storage medium and computer equipment Active CN111814283B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010625108.5A CN111814283B (en) 2020-07-01 2020-07-01 Method and device for calculating engineering quantity of spray pipeline, storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010625108.5A CN111814283B (en) 2020-07-01 2020-07-01 Method and device for calculating engineering quantity of spray pipeline, storage medium and computer equipment

Publications (2)

Publication Number Publication Date
CN111814283A true CN111814283A (en) 2020-10-23
CN111814283B CN111814283B (en) 2024-04-30

Family

ID=72855827

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010625108.5A Active CN111814283B (en) 2020-07-01 2020-07-01 Method and device for calculating engineering quantity of spray pipeline, storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN111814283B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112861296A (en) * 2021-03-03 2021-05-28 广联达科技股份有限公司 Method and device for constructing earth cube model, computer equipment and storage medium
CN113111469A (en) * 2021-03-17 2021-07-13 中国电力工程顾问集团西南电力设计院有限公司 Cooling tower water distribution system design method for optimizing water distribution system check
CN113496050A (en) * 2021-05-27 2021-10-12 中机中联工程有限公司 Logistics building roof comprehensive design method combining CAD and intelligent algorithm

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009238210A (en) * 2008-03-05 2009-10-15 Toyama Prefecture Piping length measuring system
CN107526870A (en) * 2017-07-18 2017-12-29 巧夺天宫(深圳)科技有限公司 The design system and its design method of fire-fighting spraying pipeline
CN109086486A (en) * 2018-06-29 2018-12-25 国网江苏省电力有限公司南通供电分公司 Cable work amount faster statistical approach based on Python shell script
KR20190063317A (en) * 2017-11-29 2019-06-07 주식회사 타임텍 Method for modeling a pipe and record media recorded program realizing the same
CN109992797A (en) * 2017-12-29 2019-07-09 北京中盈安信技术服务股份有限公司 A kind of pipe design method and apparatus based on GIS
CN110795824A (en) * 2019-10-08 2020-02-14 上海建工五建集团有限公司 Fire-fighting spraying model establishing method and system
CN111079306A (en) * 2019-12-27 2020-04-28 广州燃气集团有限公司 Calculation method, system, device and storage medium for pipe fitting for pipeline connection

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009238210A (en) * 2008-03-05 2009-10-15 Toyama Prefecture Piping length measuring system
CN107526870A (en) * 2017-07-18 2017-12-29 巧夺天宫(深圳)科技有限公司 The design system and its design method of fire-fighting spraying pipeline
KR20190063317A (en) * 2017-11-29 2019-06-07 주식회사 타임텍 Method for modeling a pipe and record media recorded program realizing the same
CN109992797A (en) * 2017-12-29 2019-07-09 北京中盈安信技术服务股份有限公司 A kind of pipe design method and apparatus based on GIS
CN109086486A (en) * 2018-06-29 2018-12-25 国网江苏省电力有限公司南通供电分公司 Cable work amount faster statistical approach based on Python shell script
CN110795824A (en) * 2019-10-08 2020-02-14 上海建工五建集团有限公司 Fire-fighting spraying model establishing method and system
CN111079306A (en) * 2019-12-27 2020-04-28 广州燃气集团有限公司 Calculation method, system, device and storage medium for pipe fitting for pipeline connection

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112861296A (en) * 2021-03-03 2021-05-28 广联达科技股份有限公司 Method and device for constructing earth cube model, computer equipment and storage medium
CN112861296B (en) * 2021-03-03 2024-04-23 广联达科技股份有限公司 Method, device, computer equipment and storage medium for constructing earthwork model
CN113111469A (en) * 2021-03-17 2021-07-13 中国电力工程顾问集团西南电力设计院有限公司 Cooling tower water distribution system design method for optimizing water distribution system check
CN113111469B (en) * 2021-03-17 2023-03-14 中国电力工程顾问集团西南电力设计院有限公司 Cooling tower water distribution system design method for optimizing water distribution system check
CN113496050A (en) * 2021-05-27 2021-10-12 中机中联工程有限公司 Logistics building roof comprehensive design method combining CAD and intelligent algorithm
CN113496050B (en) * 2021-05-27 2024-02-13 中机中联工程有限公司 Logistics building roof comprehensive design method combining CAD and intelligent algorithm

Also Published As

Publication number Publication date
CN111814283B (en) 2024-04-30

Similar Documents

Publication Publication Date Title
CN111814283B (en) Method and device for calculating engineering quantity of spray pipeline, storage medium and computer equipment
CN108038894B (en) Animation creation method, animation creation device, electronic equipment and computer-readable storage medium
JP7280123B2 (en) 3D model creation support system and 3D model creation support method
CN111105507A (en) Virtual accessory model generation method and device, processor and electronic device
CN114202027B (en) Method for generating execution configuration information, method and device for model training
CN110781311B (en) Enterprise-consistent-person operation system and method
CN103970061A (en) Data creating device and method
CN114265941A (en) Method and system for converting relationship graph into tree-like form blood relationship graph
CN115393474A (en) Method and system for rapidly drawing flow chart
CN114385816A (en) Conversation flow mining method and device, electronic equipment and computer storage medium
CN104090953A (en) Map display method and device for LED lamp on virtual display terminal
CN104809534A (en) Business process management system
KR101903082B1 (en) Apparatus and method for providing material information, and recording medium
CN107220044B (en) Method and device for driving business object based on meta-model
CN102981842B (en) Method of generating interactive Gantt chart
CN111831193A (en) Automatic skin changing method, device, electronic equipment and storage medium
CN105303325A (en) Process control method based on transaction scene recognition and system thereof
CN111105563B (en) Water card data writing method, device, equipment and storage medium for preventing data loss
CN110796601B (en) Image sticker layout method, apparatus, computer device, and readable storage medium
CN110020017A (en) A kind of method and system of dynamic construction resources configuration management view
CN111738166A (en) Target contour delineation method, device, computer system and readable storage medium
CN111191057A (en) User-defined retrieval method and device, electronic equipment and storage medium thereof
CN113434935A (en) Method and device for marking temporary dimension, computer equipment and readable storage medium
CN117313282A (en) Method, device and equipment for constructing fire hydrant pipeline model based on floor
CN117114366A (en) Work order distribution method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant