CN111428358A - Method and system for converting two-dimensional CAD drawing into three-dimensional spraying system model data - Google Patents

Method and system for converting two-dimensional CAD drawing into three-dimensional spraying system model data Download PDF

Info

Publication number
CN111428358A
CN111428358A CN202010200315.6A CN202010200315A CN111428358A CN 111428358 A CN111428358 A CN 111428358A CN 202010200315 A CN202010200315 A CN 202010200315A CN 111428358 A CN111428358 A CN 111428358A
Authority
CN
China
Prior art keywords
pipe
dimensional
spraying
spray
data
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
CN202010200315.6A
Other languages
Chinese (zh)
Other versions
CN111428358B (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.)
Xiamen Hymake Technology Co ltd
Original Assignee
Xiamen Hymake Technology 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 Xiamen Hymake Technology Co ltd filed Critical Xiamen Hymake Technology Co ltd
Priority to CN202010200315.6A priority Critical patent/CN111428358B/en
Publication of CN111428358A publication Critical patent/CN111428358A/en
Application granted granted Critical
Publication of CN111428358B publication Critical patent/CN111428358B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Graphics (AREA)
  • Geometry (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The embodiment of the invention discloses a method, a construction system and a computer storage medium for converting a two-dimensional CAD drawing into three-dimensional spraying system model data, which are used for quickly converting the two-dimensional CAD spraying drawing into the three-dimensional spraying system model data for modeling, reducing the time cost of modeling and more efficiently and conveniently realizing the requirement of converting the CAD drawing into the three-dimensional model data. The method provided by the embodiment of the invention comprises the following steps: acquiring input data for modeling a spraying system, wherein the input data comprises parameter data, two-dimensional CAD base map information and three-dimensional data; establishing model data of a spraying system; and generating a three-dimensional spraying system model according to the input data of the spraying system modeling and the spraying system model data.

Description

Method and system for converting two-dimensional CAD drawing into three-dimensional spraying system model data
Technical Field
The invention relates to a method for converting a two-dimensional CAD drawing into three-dimensional spraying system model data, a construction system and a computer storage medium.
Background
In the whole life cycle of a building, the drawings of the spraying system drawings provided by a designer need to be converted into an objective three-dimensional model system, so that the problem can be found in an early stage by combining the three-dimensional model system more intuitively, the designer is also reversely prompted to design a more accurate model system, the reworking is reduced, and the overall efficiency is improved. Further calculations, guidance of construction, etc. may be performed over the entire life cycle of the model. At present, the manual modeling efficiency is low, and an automatic generation spraying system is difficult to combine the corresponding relation between the water flow direction of the spraying system, the corresponding pipe diameter of a pipeline and the number of spray heads and to accurately master the true intention of a drawing designer to show.
Disclosure of Invention
The embodiment of the invention provides a method, a construction system and a computer storage medium for converting a two-dimensional CAD drawing into three-dimensional spraying system model data, which are used for quickly converting the two-dimensional CAD spraying drawing into the three-dimensional spraying system model data for modeling, reducing the time cost of modeling and more efficiently and conveniently realizing the requirement of converting the CAD drawing into the three-dimensional model data.
In view of the above, a first aspect of the present invention provides a method for converting a two-dimensional CAD drawing into three-dimensional spray system model data, which may include:
acquiring input data for modeling a spraying system, wherein the input data comprises parameter data, two-dimensional CAD base map information and three-dimensional data;
establishing model data of a spraying system;
and generating a three-dimensional spraying system model according to the input data of the spraying system modeling and the spraying system model data.
Alternatively, in some embodiments of the present invention,
the parameter data includes: the corresponding relation between the pipe diameter of the pipeline and the number of the spray heads, the type of the spray heads of the real model and the connection mode of the legend of the spray heads of the drawing;
the two-dimensional CAD base map information includes: spray pipe layer information and spray header layer information;
the three-dimensional data includes: pipeline offset, sprinkler offset, three-dimensional height of floor and three-dimensional model family.
Optionally, in some embodiments of the present invention, the establishing spraying system model data includes:
establishing a spraying system tree-shaped data structure consisting of element spraying pipes;
the tree-shaped data structure of the spraying system comprises a water inlet end drawing two-dimensional coordinate StartPoint, a water outlet end drawing two-dimensional coordinate EndPoint, a self spraying Pipe, Pipe Diameter information Diameter, directly connected spraying heads PenTouCount and a sub-element Pipe SubPipe, wherein one element spraying Pipe is at most associated with one direct spraying head legend, and the rest spraying heads are from the sub-element Pipe.
Optionally, in some embodiments of the present invention, the establishing spraying system model data includes:
determining a first CAD line entity as a main pipe graphic primitive according to the spray pipe graphic layer selected by the spray pipe graphic layer information and a water inlet main pipe position point;
determining the water flow direction of the main pipe primitive;
reconstructing a first spraying tree according to the spraying pipe layer information, wherein the first spraying tree comprises a first element pipe and a first sub element pipe;
reconstructing a second spray tree according to the spray header layer information, wherein the second spray tree comprises a second element pipe and a second sub element pipe;
and when the first element pipe, the first sub element pipe, the second element pipe and the second sub element pipe only have water outlet ends and are only connected with spray heads, calculating the total number of the spray heads which need to supply water for each sub element pipe.
Optionally, in some embodiments of the present invention, the three-dimensional spraying system model includes: horizontal shower, shower head, vertical shower, pipe fitting.
A second aspect of the present invention provides a build system, which may include:
the acquisition module is used for acquiring input data for modeling of the spraying system, wherein the input data comprises parameter data, two-dimensional CAD base map information and three-dimensional data;
the establishing module is used for establishing model data of the spraying system;
and the generating module is used for generating a three-dimensional spraying system model according to the input data of the spraying system modeling and the spraying system model data.
Alternatively, in some embodiments of the present invention,
the parameter data includes: the corresponding relation between the pipe diameter of the pipeline and the number of the spray heads, the type of the spray heads of the real model and the connection mode of the legend of the spray heads of the drawing;
the two-dimensional CAD base map information includes: spray pipe layer information and spray header layer information;
the three-dimensional data includes: pipeline offset, sprinkler offset, three-dimensional height of floor and three-dimensional model family.
Alternatively, in some embodiments of the present invention,
the establishing module is specifically used for establishing a spraying system tree-shaped data structure consisting of the meta-spraying pipes;
the tree-shaped data structure of the spraying system comprises a water inlet end drawing two-dimensional coordinate StartPoint, a water outlet end drawing two-dimensional coordinate EndPoint, a self spraying Pipe, Pipe Diameter information Diameter, directly connected spraying heads PenTouCount and a sub-element Pipe SubPipe, wherein one element spraying Pipe is at most associated with one direct spraying head legend, and the rest spraying heads are from the sub-element Pipe.
Alternatively, in some embodiments of the present invention,
the establishing module is specifically used for determining a first CAD line entity as a main pipe primitive according to the spray pipe layer selected by the spray pipe layer information and the water inlet main pipe position point; determining the water flow direction of the main pipe primitive; reconstructing a first spraying tree according to the spraying pipe layer information, wherein the first spraying tree comprises a first element pipe and a first sub element pipe; reconstructing a second spray tree according to the spray header layer information, wherein the second spray tree comprises a second element pipe and a second sub element pipe; when only the water outlet ends of the first element pipe and the first sub element pipe, and the second element pipe and the second sub element pipe are provided with the nozzles and only the nozzles are connected, calculating the total number of the nozzles needing to supply water for each sub element pipe;
optionally, in some embodiments of the present invention, the three-dimensional spraying system model includes: horizontal shower, shower head, vertical shower, pipe fitting.
A third aspect of the present invention provides a construction apparatus, which may include:
a transceiver, a processor, and a memory, wherein the transceiver, the processor, and the memory are connected by a bus;
the memory is used for storing operation instructions;
the transceiver is used for acquiring input data for modeling the spraying system, and the input data comprises parameter data, two-dimensional CAD base map information and three-dimensional data;
the processor is configured to call the operation instruction, and execute the steps of the method for converting the two-dimensional CAD drawing into the three-dimensional spraying system model data according to any one of the first aspect and the first optional implementation manner of the present invention.
A fourth aspect of the present invention provides a computer-readable storage medium storing a computer program, where the computer program enables a computer to execute the method for converting a two-dimensional CAD drawing into three-dimensional spraying system model data according to any one of the optional implementations of the first aspect and the first aspect of the embodiments of the present invention.
According to the technical scheme, the embodiment of the invention has the following advantages:
in the embodiment of the invention, input data for modeling the spraying system are obtained, wherein the input data comprise parameter data, two-dimensional CAD base map information and three-dimensional data; establishing model data of a spraying system; and generating a three-dimensional spraying system model according to the input data of the spraying system modeling and the spraying system model data. By the method, the water flow direction of the two-dimensional CAD drawing system can be intelligently and scientifically judged according to input data, and a three-dimensional spraying system model which meets design intentions and real building requirements is formed by combining scientific spraying professional knowledge.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the embodiments and the drawings used in the description of the prior art, and obviously, the drawings in the following description are only some embodiments of the present invention, and other drawings can be obtained according to the drawings.
FIG. 1 is an overall logic flow diagram of a method for converting a two-dimensional CAD drawing into three-dimensional spray system model data in an embodiment of the present invention;
FIG. 2A is a schematic diagram of an interface style for parameter data according to an embodiment of the present invention;
FIG. 2B is a schematic diagram of an interface style associated with three-dimensional data according to an embodiment of the present disclosure;
FIG. 2C is a class structure diagram of a meta shower in an embodiment of the present invention;
FIG. 2D is a schematic diagram of model data for a spray system created in an embodiment of the present invention;
FIG. 2E is a schematic diagram of an embodiment of the invention illustrating a simplified spray model;
FIG. 2F is a schematic diagram of a simple spray model with a spray header according to an embodiment of the present invention;
FIG. 2G is a schematic flow chart of a process for generating a three-dimensional spray system model according to an embodiment of the present invention;
FIG. 3A is a schematic diagram of the overall effect of the finally produced shower pipe model in an embodiment of the present invention;
FIG. 3B is a partially enlarged schematic view of a spray pipe model according to an embodiment of the invention;
FIG. 4 is a schematic diagram of one embodiment of a construction system in an embodiment of the invention;
fig. 5 is a schematic diagram of another embodiment of the construction system in the embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a method, a construction system and a computer storage medium for converting a two-dimensional CAD drawing into three-dimensional spraying system model data, which are used for quickly converting the two-dimensional CAD spraying drawing into the three-dimensional spraying system model data for modeling, reducing the time cost of modeling and more efficiently and conveniently realizing the requirement of converting the CAD drawing into the three-dimensional model data.
In order to make the technical solutions of the present invention better understood by those skilled in the art, the technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments. The embodiments based on the present invention should fall into the protection scope of the present invention.
Fig. 1 is a general logic flow diagram of a method for converting a two-dimensional CAD drawing into three-dimensional spray system model data according to an embodiment of the present invention. It should be noted that, the embodiment of the present invention may be applied to a plug-in product based on Revit, or other products.
And S1, acquiring input data of the spray system modeling.
It will be appreciated that the input data for spray system modeling may include: parameter data, two-dimensional CAD base map information and three-dimensional data.
Wherein, (1) the parameter data can contain information such as the pipe diameter of the pipeline and the corresponding relation of the number of spray heads, the types of spray heads of the real model (upper spray, lower spray, upper and lower spray), the connection mode of drawings spray head legends, and the like. Fig. 2A is a schematic diagram of an interface style related to parameter data according to an embodiment of the present invention.
(2) Two-dimensional CAD base map information: entering a function program after the Revit imports a two-dimensional CAD drawing can prompt a user to carry out operation of picking up base map information, and spray pipe layer information and spray header layer information in the drawing can be obtained through a selection and PickObject method provided by the Revit API, and the selection and PickPoint specify the position point of a water inlet main pipe.
(3) Three-dimensional data: and after the picking operation is finished, the functional program pops up a window to provide a relevant three-dimensional data input interface for a user. Fig. 2B is a schematic diagram of an interface style associated with three-dimensional data according to an embodiment of the present invention.
It is understood that the three-dimensional data may include, but is not limited to, the following information:
pipeline offset: the height of the spraying main pipe from the floor ground is high;
offset of the spray head: offset of the spray header from the branch pipe height pipeline;
three-dimensional height of floor: linking the height value of the elevation where the drawing is located on the Revit;
three-dimensional model families: and generating a specific family file required by the three-dimensional model in Revit software.
And S2, establishing model data of the spraying system.
The method specifically comprises the following steps: establishing a spraying system tree-shaped data structure consisting of element spraying pipes; the element Pipe is called as an element Pipe below the element spray Pipe, the element Pipe data structure comprises a water inlet end drawing two-dimensional coordinate StartPoint, a water outlet end drawing two-dimensional coordinate EndPoint, a self spray Pipe, Pipe Diameter information Diameter, a spray head PenTouCount and a sub element Pipe SubPipe which are directly connected, one element Pipe is at most associated with one direct spray head legend, and the rest spray heads come from the sub element Pipe. Fig. 2C is a diagram showing a class structure of the meta shower in the embodiment of the present invention.
Fig. 2D is a schematic diagram of the spraying system model data established in the embodiment of the present invention. Fig. 2E is a schematic view of an auxiliary simple spraying model according to an embodiment of the present invention; fig. 2F is a schematic diagram of a simple spray model with a spray header according to an embodiment of the present invention. Wherein, establishing the spraying system model data may include, but is not limited to, the following steps:
s2-1, determining a main pipe: and determining a first CAD line entity as a main pipe graphic element according to the selected spray pipe layer and the water inlet main pipe position point, such as 1 in the 2E schematic diagram. Then, combining the line entities on the same layer and on the same straight line into a first-stage spraying trunk pipe FirstPIPe through a reasonable combination distance, wherein parts 1, 2 and 3 in a 2E schematic diagram are represented as first-stage trunk pipes;
s2-2, determining the water flow direction: and judging whether the end part of the main pipe is in accordance with one end without connection and the other end with connection according to the main pipe data obtained in the step S2-1, wherein water flows to the connecting end 1-2 from the non-connection state. Other water flows through the water outflow end of the previous stage, namely the water inflow end of the next stage in turn;
s2-3, reconstructing a first spray tree according to the spray pipes, wherein the first spray tree comprises a first element pipe and a first sub-element pipe: breaking the last-level element pipe of the formed spray tree by intersecting the first-level main pipe FirstPoint with other pipelines (4, 5, 6 and 7) to form new first-level element pipe data (1, 2 and 3), changing the hierarchical relation of the first-level element pipe data into a sub-element pipe with 2 being 1 and a sub-element pipe with 3 being 2 according to the water flow direction, and simultaneously adding the broken pipelines into the spray tree in sequence, wherein the broken pipelines are 4 sub-element pipes with 1, 5 and 6 sub-element pipes with 2 and 7 sub-element pipes with 3;
s2-4, reconstructing a second spray tree according to the spray header, wherein the second spray tree comprises a second element pipe and a second sub-element pipe: the element pipe that the latest one-level produced judges whether there is spray header that links to each other, and the mode that the spray header is connected has two kinds: one is that the spray header connected with the water outlet end is continuously searched for other connected next-level pipelines through the spray header to establish next-level element pipe data, for example, 4-2 is a 4-1 subelement pipe in fig. 2F, and the other is that the spray header is at a certain position in the middle of the drawing line entity, at this time, the spray header needs to be interrupted at the position of the spray header, the data of the element pipe at the current level is changed, and the hierarchical relationship among the interrupted element pipe data is established according to the water flow direction, for example, 9 in fig. 2E is a 6 subelement pipe, if 6 has a spray header in the middle, the step is changed into 6-1 subelement pipe 6-2 and 6-2 subelement pipe 9 in fig. 2F;
s2-5, loop S2-3, S2-4 steps: gradually searching, breaking and establishing a data hierarchy for the newly generated first-stage element pipes step by step according to the modes of S2-3 and S2-4 until the path searching is finished when only the water outlet ends of all the element pipes are connected with the spray header and no other connection exists;
s2-6, determining pipe diameter: and checking and eliminating unreasonable data and invalid data according to the output data obtained in the step S2-5, and calculating the total number of the nozzles needing water supply for each sub-unit pipe after elimination. The calculation mode is the spray head of the spray head and the spray heads on all the daughter pipes, including the daughter pipes of the daughter pipes. And determining the pipe diameter of each element pipe from the pipe diameter comparison table according to the total number of the nozzles. Namely, when the first element pipe and the first sub element pipe, the second element pipe and the second sub element pipe only have water outlet ends and are only connected with spray heads, the total number of the spray heads which need to supply water for each sub element pipe is calculated.
And S3, generating a three-dimensional spraying system model.
And S3, establishing a three-dimensional spraying system model according to the spraying pipe tree structure with two-dimensional information output in S2 and the three-dimensional data input by the spraying system modeling in S1. Fig. 2G is a schematic flow chart illustrating generation of a three-dimensional spray system model according to an embodiment of the present invention.
Wherein generating the three-dimensional spray system model may include, but is not limited to, the steps of:
s3-1, generating a horizontal spray pipe: confirming X, Y coordinates according to metadata StartPoint and EndPoint two-dimensional coordinates in a spraying tree at a water inlet end and an water outlet end, confirming a Z coordinate according to the sum of the pipeline offset and the three-dimensional height of a floor, obtaining three-dimensional pipeline EndPoint model coordinates, and establishing a pipeline model of a corresponding pipe diameter in Revit by adding pipe diameter information determined by S2-6;
s3-2, generating a spray header: if the number of the direct spray heads in the element pipe data is one, the spray heads are upwardly offset at the three-dimensional coordinates of the water outlet end points according to the three-dimensional coordinates of the water outlet end points, the offset of the spray heads and the type of the spray heads of the real model, and the spray heads are downwardly offset at the three-dimensional coordinates of the water outlet end points according to the lower spray, so that the coordinates of the spray heads are calculated, and a spray head model is created at the coordinate points of the spray heads according to the corresponding group of the spray heads in Re;
s3-3, generating a vertical spray pipe: creating a vertical pipeline model between the spray header and the branch pipe according to the three-dimensional coordinate position point of the spray header and the three-dimensional coordinate of the water outlet end of the branch pipe generated in S3-2 in Revit, wherein the pipe diameter is DN25 with the minimum pipe diameter;
s3-4, pipe fitting generation: in the element pipe data, a pipe fitting needs to be established at the three-dimensional position of the water outlet end, wherein the pipe fitting is specifically a big end, a small end, an elbow, a tee joint or a four-way joint, the type of the pipe fitting is determined according to the number of the element pipes in the element pipe data, the number of direct spray heads and the connected pipe diameter data, and a corresponding pipe fitting model is established.
It should be noted that the rule for generating the pipe fittings is specifically as follows:
reducing the size: if a water outlet of a primary pipe of DN100 is provided with a pipe diameter DN80 of a secondary primary pipe and no spray head is provided, a reducer with a corresponding pipe diameter is generated;
bending: if the water outlet of the primary pipe of DN25 has no secondary pipe and has a direct nozzle, a DN25 elbow is generated;
a positive tee: if the water outlet of the primary pipe of DN25 has no secondary pipe and has an upper nozzle and a lower nozzle, a DN25 positive tee is generated;
a tee joint: if two sub-elementary tubes are arranged at the position of the elementary tube water outlet of DN50, and the tube diameters are DN50 and DN30 respectively, a tee joint with the corresponding tube diameter is generated;
four-way: if three sub-elementary tubes are arranged at the position of the elementary tube water outlet of DN100 and no spray head is arranged, a four-way tube with the corresponding tube diameter is generated.
Fig. 3A is a schematic diagram illustrating the overall effect of the finally produced shower pipe model in the embodiment of the present invention. Fig. 3B is a partially enlarged schematic view of the shower module according to an embodiment of the present invention.
In the embodiment of the invention, input data for modeling the spraying system are obtained, wherein the input data comprise parameter data, two-dimensional CAD base map information and three-dimensional data; establishing model data of a spraying system; and generating a three-dimensional spraying system model according to the input data of the spraying system modeling and the spraying system model data. The method has the advantages that the two-dimensional CAD spraying drawing can be quickly converted into the three-dimensional spraying system model data for modeling, the time cost of modeling is reduced, and the requirement that the CAD drawing is converted into the three-dimensional model data is realized more efficiently and conveniently. The method can intelligently and scientifically judge the water flow direction of the two-dimensional CAD drawing system according to input data, and combines scientific spraying professional knowledge to form a three-dimensional spraying system model which meets the design intention and the real building requirements.
As shown in fig. 4, a schematic diagram of an embodiment of the system for constructing an embodiment of the present invention may include:
the acquisition module 401 is configured to acquire input data for modeling of the spraying system, where the input data includes parameter data, two-dimensional CAD base map information, and three-dimensional data;
an establishing module 402, configured to establish spraying system model data;
and a generating module 403, configured to generate a three-dimensional spraying system model according to the input data for modeling the spraying system and the spraying system model data.
Alternatively, in some embodiments of the present invention,
the parameter data includes: the corresponding relation between the pipe diameter of the pipeline and the number of the spray heads, the type of the spray heads of the real model and the connection mode of the legend of the spray heads of the drawing;
the two-dimensional CAD base map information includes: spray pipe layer information and spray header layer information;
the three-dimensional data includes: pipeline offset, sprinkler offset, three-dimensional height of floor and three-dimensional model family.
Alternatively, in some embodiments of the present invention,
the establishing module is specifically used for establishing a spraying system tree-shaped data structure consisting of the meta-spraying pipes;
the tree-shaped data structure of the spraying system comprises a water inlet end drawing two-dimensional coordinate StartPoint, a water outlet end drawing two-dimensional coordinate EndPoint, a self spraying Pipe, Pipe Diameter information Diameter, directly connected spraying heads PenTouCount and a sub-element Pipe SubPipe, wherein one element spraying Pipe is at most associated with one direct spraying head legend, and the rest spraying heads are from the sub-element Pipe.
Alternatively, in some embodiments of the present invention,
the establishing module is specifically used for determining a first CAD line entity as a main pipe primitive according to the spray pipe layer selected by the spray pipe layer information and the water inlet main pipe position point; determining the water flow direction of the main pipe primitive; reconstructing a first spraying tree according to the spraying pipe layer information, wherein the first spraying tree comprises a first element pipe and a first sub element pipe; reconstructing a second spray tree according to the spray header layer information, wherein the second spray tree comprises a second element pipe and a second sub element pipe; and when the first element pipe, the first sub element pipe, the second element pipe and the second sub element pipe only have water outlet ends and are only connected with spray heads, calculating the total number of the spray heads which need to supply water for each sub element pipe.
Optionally, in some embodiments of the present invention, the three-dimensional spraying system model includes: horizontal shower, shower head, vertical shower, pipe fitting.
As shown in fig. 5, a schematic diagram of another embodiment of the system according to the embodiment of the present invention may include:
the system comprises a transceiver 501, a processor 502 and a memory 503, wherein the transceiver 501, the processor 502 and the memory 503 are connected through a bus;
a memory 503 for storing operation instructions;
the transceiver 501 is used for acquiring input data for modeling the spraying system, wherein the input data comprises parameter data, two-dimensional CAD base map information and three-dimensional data;
a processor 502, configured to invoke the operation instruction, and configured to perform the following steps:
establishing model data of a spraying system;
and generating a three-dimensional spraying system model according to the input data of the spraying system modeling and the spraying system model data.
Alternatively, in some embodiments of the present invention,
the parameter data includes: the corresponding relation between the pipe diameter of the pipeline and the number of the spray heads, the type of the spray heads of the real model and the connection mode of the legend of the spray heads of the drawing;
the two-dimensional CAD base map information includes: spray pipe layer information and spray header layer information;
the three-dimensional data includes: pipeline offset, sprinkler offset, three-dimensional height of floor and three-dimensional model family.
Optionally, in some embodiments of the present invention, the processor 502 is configured to invoke the operation instruction, and specifically is configured to execute the following steps:
establishing a spraying system tree-shaped data structure consisting of element spraying pipes;
the tree-shaped data structure of the spraying system comprises a water inlet end drawing two-dimensional coordinate StartPoint, a water outlet end drawing two-dimensional coordinate EndPoint, a self spraying Pipe, Pipe Diameter information Diameter, directly connected spraying heads PenTouCount and a sub-element Pipe SubPipe, wherein one element spraying Pipe is at most associated with one direct spraying head legend, and the rest spraying heads are from the sub-element Pipe.
Optionally, in some embodiments of the present invention, the processor 502 is configured to invoke the operation instruction, and specifically is configured to execute the following steps:
determining a first CAD line entity as a main pipe graphic primitive according to the spray pipe graphic layer selected by the spray pipe graphic layer information and a water inlet main pipe position point;
determining the water flow direction of the main pipe primitive;
reconstructing a first spraying tree according to the spraying pipe layer information, wherein the first spraying tree comprises a first element pipe and a first sub element pipe;
reconstructing a second spray tree according to the spray header layer information, wherein the second spray tree comprises a second element pipe and a second sub element pipe;
and when the first element pipe, the first sub element pipe, the second element pipe and the second sub element pipe only have water outlet ends and are only connected with spray heads, calculating the total number of the spray heads which need to supply water for each sub element pipe.
Optionally, in some embodiments of the present invention, the three-dimensional spraying system model includes: horizontal shower, shower head, vertical shower, pipe fitting.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product.
The computer instructions may be stored in or transmitted from one computer readable storage medium to another computer readable storage medium, e.g., from one website site, computer, server, or data center, over a wired (e.g., coaxial cable, fiber optic, digital subscriber line (DS L)) or wireless (e.g., infrared, wireless, microwave, etc.) medium to be stored by a computer or a data center integrated server, data center, etc. the computer readable storage medium may be any available medium that can be stored by a computer or a data storage device including one or more available media such as a magnetic medium, (e.g., a floppy Disk, a magnetic tape), an optical medium (e.g., a Solid State medium), a DVD, or a Solid State medium (SSD)).
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for converting a two-dimensional CAD drawing into three-dimensional spraying system model data is characterized by comprising the following steps:
acquiring input data for modeling a spraying system, wherein the input data comprises parameter data, two-dimensional CAD base map information and three-dimensional data;
establishing model data of a spraying system;
and generating a three-dimensional spraying system model according to the input data of the spraying system modeling and the spraying system model data.
2. The method of claim 1,
the parameter data includes: the corresponding relation between the pipe diameter of the pipeline and the number of the spray heads, the type of the spray heads of the real model and the connection mode of the legend of the spray heads of the drawing;
the two-dimensional CAD base map information includes: spray pipe layer information and spray header layer information;
the three-dimensional data includes: pipeline offset, sprinkler offset, three-dimensional height of floor and three-dimensional model family.
3. The method of claim 1 or 2, wherein the establishing spray system model data comprises:
establishing a spraying system tree-shaped data structure consisting of element spraying pipes;
the tree-shaped data structure of the spraying system comprises a water inlet end drawing two-dimensional coordinate StartPoint, a water outlet end drawing two-dimensional coordinate EndPoint, a self spraying Pipe, Pipe Diameter information Diameter, directly connected spraying heads PenTouCount and a sub-element Pipe SubPipe, wherein one element spraying Pipe is at most associated with one direct spraying head legend, and the rest spraying heads are from the sub-element Pipe.
4. The method of claim 2, wherein the establishing spray system model data comprises:
determining a first CAD line entity as a main pipe graphic primitive according to the spray pipe graphic layer selected by the spray pipe graphic layer information and a water inlet main pipe position point;
determining the water flow direction of the main pipe primitive;
reconstructing a first spraying tree according to the spraying pipe layer information, wherein the first spraying tree comprises a first element pipe and a first sub element pipe;
reconstructing a second spray tree according to the spray header layer information, wherein the second spray tree comprises a second element pipe and a second sub element pipe;
and when the first element pipe, the first sub element pipe, the second element pipe and the second sub element pipe only have water outlet ends and are only connected with spray heads, calculating the total number of the spray heads which need to supply water for each sub element pipe.
5. The method of claim 4, wherein the three-dimensional spray system model comprises: horizontal shower, shower head, vertical shower, pipe fitting.
6. A construction system, comprising:
the acquisition module is used for acquiring input data for modeling of the spraying system, wherein the input data comprises parameter data, two-dimensional CAD base map information and three-dimensional data;
the establishing module is used for establishing model data of the spraying system;
and the generating module is used for generating a three-dimensional spraying system model according to the input data of the spraying system modeling and the spraying system model data.
7. The build system of claim 6,
the parameter data includes: the corresponding relation between the pipe diameter of the pipeline and the number of the spray heads, the type of the spray heads of the real model and the connection mode of the legend of the spray heads of the drawing;
the two-dimensional CAD base map information includes: spray pipe layer information and spray header layer information;
the three-dimensional data includes: pipeline offset, sprinkler offset, three-dimensional height of floor and three-dimensional model family.
8. The building system according to claim 6 or 7,
the establishing module is specifically used for establishing a spraying system tree-shaped data structure consisting of the meta-spraying pipes;
the tree-shaped data structure of the spraying system comprises a water inlet end drawing two-dimensional coordinate StartPoint, a water outlet end drawing two-dimensional coordinate EndPoint, a self spraying Pipe, Pipe Diameter information Diameter, directly connected spraying heads PenTouCount and a sub-element Pipe SubPipe, wherein one element spraying Pipe is at most associated with one direct spraying head legend, and the rest spraying heads are from the sub-element Pipe.
9. The build system of claim 7,
the establishing module is specifically used for determining a first CAD line entity as a main pipe primitive according to the spray pipe layer selected by the spray pipe layer information and the water inlet main pipe position point; determining the water flow direction of the main pipe primitive; reconstructing a first spraying tree according to the spraying pipe layer information, wherein the first spraying tree comprises a first element pipe and a first sub element pipe; reconstructing a second spray tree according to the spray header layer information, wherein the second spray tree comprises a second element pipe and a second sub element pipe; when only the water outlet ends of the first element pipe and the first sub element pipe, and the second element pipe and the second sub element pipe are provided with the nozzles and only the nozzles are connected, calculating the total number of the nozzles needing to supply water for each sub element pipe;
the three-dimensional spray system model includes: horizontal shower, shower head, vertical shower, pipe fitting.
10. A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out a method of converting a two-dimensional CAD drawing into three-dimensional spray system model data as claimed in any of claims 1 to 5.
CN202010200315.6A 2020-03-20 2020-03-20 Method and system for converting two-dimensional CAD drawing into three-dimensional spraying system model data Active CN111428358B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010200315.6A CN111428358B (en) 2020-03-20 2020-03-20 Method and system for converting two-dimensional CAD drawing into three-dimensional spraying system model data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010200315.6A CN111428358B (en) 2020-03-20 2020-03-20 Method and system for converting two-dimensional CAD drawing into three-dimensional spraying system model data

Publications (2)

Publication Number Publication Date
CN111428358A true CN111428358A (en) 2020-07-17
CN111428358B CN111428358B (en) 2023-02-10

Family

ID=71553501

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010200315.6A Active CN111428358B (en) 2020-03-20 2020-03-20 Method and system for converting two-dimensional CAD drawing into three-dimensional spraying system model data

Country Status (1)

Country Link
CN (1) CN111428358B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112926197A (en) * 2021-02-09 2021-06-08 中国神华能源股份有限公司 Mine accident scene construction module and emergency rescue comprehensive training and drilling system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102622476A (en) * 2012-03-01 2012-08-01 成都鹏业软件股份有限公司 CAD (Computer Aided Design) drawing integration system for field of building amount of computation
CN107526870A (en) * 2017-07-18 2017-12-29 巧夺天宫(深圳)科技有限公司 The design system and its design method of fire-fighting spraying pipeline
CN107577888A (en) * 2017-09-18 2018-01-12 巧夺天宫(深圳)科技有限公司 Fire-fighting spraying head design system, design method, electronic equipment and computer program product
CN109710963A (en) * 2018-11-05 2019-05-03 陈树铭 Three-dimensional rapid modeling system and method based on building two-dintension CAD drawing
CN110795824A (en) * 2019-10-08 2020-02-14 上海建工五建集团有限公司 Fire-fighting spraying model establishing method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102622476A (en) * 2012-03-01 2012-08-01 成都鹏业软件股份有限公司 CAD (Computer Aided Design) drawing integration system for field of building amount of computation
CN107526870A (en) * 2017-07-18 2017-12-29 巧夺天宫(深圳)科技有限公司 The design system and its design method of fire-fighting spraying pipeline
CN107577888A (en) * 2017-09-18 2018-01-12 巧夺天宫(深圳)科技有限公司 Fire-fighting spraying head design system, design method, electronic equipment and computer program product
CN109710963A (en) * 2018-11-05 2019-05-03 陈树铭 Three-dimensional rapid modeling system and method based on building two-dintension CAD drawing
CN110795824A (en) * 2019-10-08 2020-02-14 上海建工五建集团有限公司 Fire-fighting spraying model establishing method and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112926197A (en) * 2021-02-09 2021-06-08 中国神华能源股份有限公司 Mine accident scene construction module and emergency rescue comprehensive training and drilling system
CN112926197B (en) * 2021-02-09 2024-02-02 中国神华能源股份有限公司 Mine accident scene construction module and emergency rescue comprehensive training and exercise system

Also Published As

Publication number Publication date
CN111428358B (en) 2023-02-10

Similar Documents

Publication Publication Date Title
US7698110B2 (en) Method for dynamically generating multiple views of three-dimensional models for utility networks
US8180597B2 (en) Utility network engineering and design rules in three-dimensional models of utility networks
US20110047516A1 (en) Rapid manipulation of flowsheet configurations
US5706453A (en) Intelligent real-time graphic-object to database linking-actuator for enabling intuitive on-screen changes and control of system configuration
US8823751B2 (en) Size based display of piping systems
JP6429682B2 (en) Network simulation apparatus, network simulation method, and network simulation program
US9158866B2 (en) Layout-design support system and layout-design support program
CN110109999B (en) System for converting SMART3D three-dimensional model into FlowMaster model and conversion method
CN111428358B (en) Method and system for converting two-dimensional CAD drawing into three-dimensional spraying system model data
CN105468869B (en) Topological relation analysis method of PDS model
CN110020493A (en) Coal mine production system pipeline GIM mathematical model modeling method based on BIM
CN104951598A (en) Device and method for generating command stream for pipeline stress analysis based on PDMS
CN112214815B (en) Electromechanical comprehensive design method based on graph topology
JP5194909B2 (en) Maintenance inspection support program, maintenance inspection support device, and maintenance inspection support method
CN104318501A (en) Pipeline network topological relation establishment method, device and system
CN113094855B (en) Method and system for realizing calibration and adjustment of water heating electric pipeline
WO2023175383A1 (en) A system and method for automated and integrated plant design
CN111798564B (en) PDS three-dimensional model conversion system and implementation method thereof
CN114154282B (en) Dynamo-based automatic cable arrangement method
US7624002B2 (en) Apparatus and method for creating scaled, three-dimensional model of hydraulic system to perform calculations
US8131517B2 (en) Interconnected objects slope modification tool
CN116186951A (en) Method and device for checking connection relation of three-dimensional pipeline model
CN116090048A (en) Dynamo-based pipe gallery tunnel engineering equipment layout modeling method
CN112580175B (en) Method and system for establishing BIM (building information modeling) for current pipe network
CN111783373A (en) Topology analysis method of PSCAD simulation model

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