CN111428358B - 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
CN111428358B
CN111428358B CN202010200315.6A CN202010200315A CN111428358B CN 111428358 B CN111428358 B CN 111428358B CN 202010200315 A CN202010200315 A CN 202010200315A CN 111428358 B CN111428358 B CN 111428358B
Authority
CN
China
Prior art keywords
pipe
dimensional
spray
spraying
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.)
Active
Application number
CN202010200315.6A
Other languages
Chinese (zh)
Other versions
CN111428358A (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 a spraying system drawing provided by a designer need to be converted into an objective three-dimensional model system, so that the problem can be found more intuitively by combining the three-dimensional model system as soon as possible, the designer is reversely prompted to design a more accurate model system, rework 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 of 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 display.
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 head 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 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 primitive tube and a second daughter primitive tube;
and when only the water outlet ends of the first element pipe and the first sub-element pipe, and only the connecting spray heads of the second element pipe and the second sub-element pipe are provided, 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 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 primitive tube and a second daughter primitive tube; 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 and 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 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 optional implementation manner of the first aspect 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 spray system model data provided in the first aspect and any optional implementation manner of the first aspect of the embodiment 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. The method can intelligently and scientifically judge the water flow direction of the two-dimensional CAD drawing system according to the 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.
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.
S1, obtaining 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 the pipe diameter of pipeline and information such as shower nozzle number corresponding relation, reality model shower nozzle type (spout, spout down, spout from top to bottom), drawing shower nozzle legend connected mode. 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;
family of three-dimensional models: 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 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 schematic diagram of a class structure of a meta shower according to an 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 diagram illustrating 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 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 or not 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 flow-in end modes are judged in sequence through the water flow-out end of the previous stage, namely the water flow-in end of the next stage;
s2-3, reconstructing a first spraying tree according to the spraying pipes, wherein the first spraying 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 produced by the latest stage judges whether a spray header is connected, and the connection modes of the spray header have two types: 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, circulating S2-3 and S2-4: gradually searching, interrupting 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 all the element pipes only have water outlet ends connected with the spray headers and do not have any other connection;
s2-6, determining the 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 spray heads needing water supply for each sub-element pipe after the unreasonable data and the invalid data are eliminated. The calculation mode is that the spray heads of the spray heads and the spray heads on all the subunit pipes comprise the subunit pipes of the subunit 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 mainly according to the spraying pipe tree structure with the two-dimensional information output in the S2 and the three-dimensional data input by the spraying system modeling in the 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 and Y coordinates according to metadata startPoint at a water inlet end and EndPoint at a water outlet end in the spraying tree, determining a Z coordinate according to the sum of the pipeline offset and the three-dimensional height of the floor to obtain a three-dimensional pipeline EndPoint model coordinate, and establishing a pipeline model of a corresponding pipe diameter in Revit according to pipe diameter information determined by S2-6;
s3-2, generating a spray header: the coordinate of the spray head is calculated by the way that the direct spray head number in the element pipe data is one according to the three-dimensional coordinate of the water outlet end point, the offset of the spray head and the upward offset of the spray head at the three-dimensional coordinate of the water outlet end point when the spray head type of the real model is the upward spray, and the downward offset at the three-dimensional coordinate of the water outlet end point when the spray head type of the real model is the downward offset, and a spray head model is created at the coordinate point of the spray head according to the corresponding group of the spray head in Revit;
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 the step S3-2 in Revit, wherein the pipe diameter is DN25 with the minimum diameter;
s3-4, pipe fitting generation: and in the element pipe data, a pipe fitting is required to be established at the three-dimensional position of the water outlet end, the pipe fitting is specifically a reducer, an elbow, a tee or a cross, 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 is specifically as follows:
reducing the size: if a pipe diameter DN80 of a sub-elementary pipe is arranged at the position of an elementary pipe water outlet of DN100 and no spray head is arranged, 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 element pipe of DN25 has no element pipe and has an upper spray head and a lower spray head, a DN25 positive tee joint is generated;
a tee joint: if two sub-elementary tubes are arranged at the position of the water outlet of the elementary tube 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 design intentions and 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 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 drawings and the patterns of the spray heads;
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, a directly connected spraying head PenTouCount and a sub-element Pipe SubPipe, wherein one element spraying Pipe is associated with one direct spraying head legend at most, and the rest spraying head numbers come 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 spray tree according to the spray pipe layer information, wherein the first spray tree comprises a first primitive pipe and a first sub primitive pipe; reconstructing a second spray tree according to the spray header layer information, wherein the second spray tree comprises a second primitive tube and a second daughter primitive tube; 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 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 operating 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 head layer information;
the three-dimensional data includes: pipeline offset, spray head offset, three-dimensional height of a floor and a 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 spray tree according to the spray pipe layer information, wherein the first spray tree comprises a first primitive pipe and a first sub primitive pipe;
reconstructing a second spray tree according to the spray header layer information, wherein the second spray tree comprises a second primitive tube and a second daughter primitive tube;
and when only the water outlet ends of the first element pipe and the first sub-element pipe, and only the connecting spray heads of the second element pipe and the second sub-element pipe are provided, 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, it may be implemented in whole or in part in the form of a computer program product.
The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can store or a data storage device, such as a server, a data center, etc., that includes one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), among others.
It can be clearly understood by those skilled in the art that, for convenience and simplicity 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 several 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, which is substantially or partly contributed by the prior art, or all or part of the technical solution may be embodied in 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 perform 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 (3)

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;
generating a three-dimensional spraying system model according to the input data of the spraying system modeling and the spraying system model data;
wherein the parameter data comprises: 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 drawings and the patterns of the spray heads; the two-dimensional CAD base map information includes: spray pipe layer information and spray head layer information; the three-dimensional data includes: pipeline offset, spray head offset, three-dimensional floor height and three-dimensional model family;
the establishing of the spraying system model data comprises the following steps:
establishing a spraying system tree-shaped data structure consisting of element spraying pipes;
the spraying system tree-shaped data structure 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;
or the establishing of the spraying system model data comprises:
determining a first CAD line entity as a main pipe graphic element according to a spray pipe graphic layer selected by 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 primitive pipe and a second daughter primitive 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 and only connected with spray heads, calculating the total number of the spray heads which need to supply water for each sub-element pipe;
the three-dimensional spray system model includes: horizontal shower, shower head, vertical shower, pipe fitting.
2. A system for converting two-dimensional CAD drawings into three-dimensional spray system model data, 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;
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;
wherein the parameter data comprises: 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 drawings and the patterns of the spray heads; the two-dimensional CAD base map information includes: spray pipe layer information and spray header layer information; the three-dimensional data includes: pipeline offset, spray head offset, three-dimensional floor height and three-dimensional model family;
the establishing module is specifically used for establishing a spraying system tree-shaped data structure consisting of the meta-spraying pipes;
the spraying system tree-shaped data structure 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;
or 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 and only connected with spray heads, calculating the total number of the spray heads which need to supply water for each sub-element pipe;
the three-dimensional spray system model comprises: horizontal shower, shower head, vertical shower, pipe fitting.
3. A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, implements a method of converting a two-dimensional CAD drawing into three-dimensional spray system model data as claimed in claim 1.
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 CN111428358A (en) 2020-07-17
CN111428358B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112926197B (en) * 2021-02-09 2024-02-02 中国神华能源股份有限公司 Mine accident scene construction module and emergency rescue comprehensive training and exercise 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

Also Published As

Publication number Publication date
CN111428358A (en) 2020-07-17

Similar Documents

Publication Publication Date Title
US8997023B2 (en) Rapid manipulation of flowsheet configurations
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
JP6429682B2 (en) Network simulation apparatus, network simulation method, and network simulation program
CN110109999B (en) System for converting SMART3D three-dimensional model into FlowMaster model and conversion method
JP2015026377A (en) Design of path connecting first point to second point in three-dimensional scene
US9158866B2 (en) Layout-design support system and layout-design support program
CN109272571B (en) System and method for converting PDS three-dimensional data into Flowmaster model
CN105468869B (en) Topological relation analysis method of PDS model
CN112560212B (en) BIM (building information modeling) spray system-based spray header and pipeline generation type design method
CN111428358B (en) Method and system for converting two-dimensional CAD drawing into three-dimensional spraying system model data
US7518606B2 (en) System and method for generating curved pipe objects for computer aided design models
CN112580175B (en) Method and system for establishing BIM (building information modeling) for current pipe network
CN111798564B (en) PDS three-dimensional model conversion system and implementation method thereof
US7624002B2 (en) Apparatus and method for creating scaled, three-dimensional model of hydraulic system to perform calculations
CN115203805B (en) BIM technology-based air duct model generation method, device and readable medium
CN114154282B (en) Dynamo-based automatic cable arrangement method
CN110795390A (en) System and method for converting S3D model into RELAP5 model
WO2023175383A1 (en) A system and method for automated and integrated plant design
CN113094855B (en) Method and system for realizing calibration and adjustment of water heating electric pipeline
CN105095538B (en) The dimensionally-optimised system and method for connector
CN202276351U (en) 3D scene data processing system suitable for intelligent machine room operation and maintenance management
CN111783373A (en) Topology analysis method of PSCAD simulation model
CN116049962B (en) Automatic design method for support and hanger based on BIM technology
CN116579111A (en) Three-dimensional component model generation method, device, equipment, medium and product

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