CN112380607B - Pipeline connection data generation method, device, computer equipment and storage medium - Google Patents

Pipeline connection data generation method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN112380607B
CN112380607B CN202011292872.1A CN202011292872A CN112380607B CN 112380607 B CN112380607 B CN 112380607B CN 202011292872 A CN202011292872 A CN 202011292872A CN 112380607 B CN112380607 B CN 112380607B
Authority
CN
China
Prior art keywords
target
connection
pipeline
flow direction
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
CN202011292872.1A
Other languages
Chinese (zh)
Other versions
CN112380607A (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.)
Architecture Design and Research Institute of Tongji University Group Co Ltd
Original Assignee
Architecture Design and Research Institute of Tongji University Group 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 Architecture Design and Research Institute of Tongji University Group Co Ltd filed Critical Architecture Design and Research Institute of Tongji University Group Co Ltd
Priority to CN202011292872.1A priority Critical patent/CN112380607B/en
Publication of CN112380607A publication Critical patent/CN112380607A/en
Application granted granted Critical
Publication of CN112380607B publication Critical patent/CN112380607B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/13Architectural design, e.g. computer-aided architectural design [CAAD] related to design of buildings, bridges, landscapes, production plants or roads
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/18Network design, e.g. design based on topological or interconnect aspects of utility systems, piping, heating ventilation air conditioning [HVAC] or cabling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2113/00Details relating to the application field
    • G06F2113/14Pipes

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Geometry (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Structural Engineering (AREA)
  • Civil Engineering (AREA)
  • Architecture (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The present invention relates to the field of computer technologies, and in particular, to a method and apparatus for generating pipeline connection data, a computer device, and a storage medium. The method comprises the following steps: receiving a pipeline connection data generation instruction, wherein the pipeline connection data generation instruction carries a pipeline to be processed; acquiring three-dimensional model data corresponding to a pipeline to be processed, and determining all connection objects forming the pipeline to be processed from the three-dimensional model data; obtaining object parameters corresponding to each connection object; and writing object parameters corresponding to the connection objects into a data table corresponding to the connection objects, and generating pipeline connection data of the pipeline to be processed. By adopting the method, the intelligent level of pipeline connection data generation can be improved.

Description

Pipeline connection data generation method, device, computer equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and apparatus for generating pipeline connection data, a computer device, and a storage medium.
Background
With the rapid development of building information model (Building Information Modeling, BIM) technology, the application of BIM technology is deepened, the combination of engineering technology and management field is also becoming more and more compact, and the application of model data constructed based on BIM technology is also becoming more and more extensive, for example, the application of connection relation between connection objects in a pipeline connection system.
In the traditional mode, the connection relation between the connection objects is usually generated through manual arrangement, the generation process is not intelligent enough, and for a pipeline connection system with a complex model structure, the manual arrangement is easy to be wrong, and the efficiency is low.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a pipeline connection data generation method, apparatus, computer device, and storage medium that can promote a level of intelligence in data generation.
A method of pipeline connection data generation, the method comprising:
receiving a pipeline connection data generation instruction, wherein the pipeline connection data generation instruction carries a pipeline to be processed;
acquiring three-dimensional model data corresponding to a pipeline to be processed, and determining all connection objects forming the pipeline to be processed from the three-dimensional model data;
obtaining object parameters corresponding to each connection object;
and writing object parameters corresponding to the connection objects into a data table corresponding to the connection objects, and generating pipeline connection data of the pipeline to be processed.
In one embodiment, obtaining object parameters corresponding to each connection object includes:
determining each connecting object as a target object, and determining a target connecting object connected with each target object from the connecting objects of the pipeline to be processed;
Obtaining object identifiers of each target object and target connection objects connected with each target object, and obtaining object interface flow direction identifiers of each connection interface of each target object;
taking the object interface flow direction identifier, the object identifiers of the target object and the target connection object as object parameters of the target object;
writing object parameters corresponding to each connection object into a data table corresponding to each connection object, generating pipeline connection data of a pipeline to be processed, including:
and writing the object identifier of each target connection object and the object interface flow direction identifier of each target object into a data table corresponding to each target object, and generating pipeline connection data of the pipeline to be processed.
In one embodiment, obtaining the object interface flow direction identifier of each connection interface of each target object includes:
acquiring object data of a target object from the three-dimensional model data;
determining the number of object interfaces of the target object based on the object data and the flow direction of the liquid in the target object;
and determining the object interface flow direction identification of each object interface according to the number of the object interfaces and the flow direction.
In one embodiment, determining the object interface flow direction identifier of each object interface according to the number of the object interfaces and the flow direction includes:
Judging whether the number of object interfaces of the target object is larger than or equal to a preset threshold value;
when the number of the object interfaces of the target object is larger than or equal to a preset threshold value, acquiring target interface flow direction identifiers of target interfaces connected with all the object interfaces of the target object, and determining all the target interface flow direction identifiers as object interface flow direction identifiers of corresponding object interfaces;
when the number of the object interfaces of the target object is smaller than a preset threshold value, determining the object interface flow direction identification of each object interface according to the flow direction of the liquid in the target object.
In one embodiment, the method further comprises:
receiving an output instruction of pipeline connection data of a pipeline to be processed;
and acquiring corresponding pipeline connection data in the data table according to the output instruction, and outputting the corresponding pipeline connection data according to the data format requirement in the output instruction.
A pipeline connection data generation apparatus, the apparatus comprising:
the instruction receiving module is used for receiving a pipeline connection data generation instruction, wherein the pipeline connection data generation instruction carries a pipeline to be processed;
the connection object determining module is used for acquiring three-dimensional model data corresponding to the pipeline to be processed and determining all connection objects forming the pipeline to be processed from the three-dimensional model data;
The object parameter acquisition module is used for acquiring object parameters corresponding to each connection object;
and the pipeline connection data generation module is used for writing object parameters corresponding to the connection objects into the data tables corresponding to the connection objects to generate pipeline connection data of the pipeline to be processed.
In one embodiment, the object parameter acquisition module may include:
the target object and target connection object determining submodule is used for determining that each connection object is a target object and determining a target connection object connected with each target object from each connection object of the pipeline to be processed;
the parameter acquisition sub-module is used for acquiring object identifiers of each target object and target connection objects connected with each target object, and acquiring object interface flow direction identifiers of each connection interface of each target object; taking the object interface flow direction identifier, the object identifiers of the target object and the target connection object as object parameters of the target object;
the pipeline connection data generation module is used for writing the object identifier of each target connection object and the object interface flow direction identifier of each target object into a data table corresponding to each target object to generate pipeline connection data of the pipeline to be processed.
In one embodiment, the parameter acquisition sub-module may include:
an object data acquisition unit configured to acquire object data of a target object from the three-dimensional model data;
a liquid flow direction determining unit configured to determine, based on the object data, the number of object interfaces of the target object and a flow direction of the liquid in the target object;
and the object interface flow direction identification determining unit is used for determining the object interface flow direction identification of each object interface according to the number of the object interfaces and the flow direction.
A computer device comprising a memory storing a computer program and a processor implementing the steps of any of the methods of the embodiments described above when the processor executes the computer program.
A computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method of any of the embodiments described above.
The pipeline connection data generation method, the device, the computer equipment and the storage medium are characterized in that the pipeline connection data generation instruction is received, the pipeline connection data generation instruction carries a pipeline to be processed, three-dimensional model data corresponding to the pipeline to be processed is obtained, all connection objects forming the pipeline to be processed are determined from the three-dimensional model data, object parameters corresponding to all the connection objects are obtained, object parameters corresponding to all the connection objects are further written into a data table corresponding to all the connection objects, and pipeline connection data of the pipeline to be processed are generated. Therefore, each connection object of the pipeline to be processed can be determined according to the three-dimensional model data of the pipeline to be processed, object parameters of each connection object are obtained, and pipeline connection data of the pipeline to be processed are generated, so that manual parameters are not needed in the whole processing process, and the intelligent level of pipeline connection data generation is improved. In addition, the pipeline connection data can be directly generated through the three-dimensional model data, so that the pipeline connection data can be directly generated when a system with a complex structure is faced, the workload of operators can be reduced, and the processing efficiency can be improved.
Drawings
FIG. 1 is an application scenario diagram of a pipeline connection data generation method in one embodiment;
FIG. 2 is a flow diagram of a method of generating pipeline connection data in one embodiment;
FIG. 3 is a schematic diagram of a three-dimensional software editing interface in one embodiment;
FIG. 4 is a schematic diagram of a pipeline to be treated in one embodiment;
FIG. 5 is a flowchart of an object parameter obtaining step in one embodiment;
FIG. 6 is a schematic diagram of a pipeline to be treated in another embodiment;
FIG. 7 is a block diagram of a pipeline connection data generation apparatus in one embodiment;
fig. 8 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
The pipeline connection data generation method provided by the application can be applied to an application environment shown in fig. 1. Wherein the terminal 102 communicates with the server 104 via a network. The user may input a pipeline connection data generation instruction through the terminal 102 and send the pipeline connection data generation instruction to the server 104, where the pipeline connection data generation instruction carries a pipeline to be processed. After receiving the pipeline connection data generation instruction, the server 104 may acquire three-dimensional model data corresponding to the pipeline to be processed, and determine each connection object that forms the pipeline to be processed from the three-dimensional model data. Further, the server 104 may obtain object parameters corresponding to each connection object, and write the object parameters corresponding to each connection object into a data table corresponding to each connection object, so as to generate pipeline connection data of the pipeline to be processed. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smartphones, tablet computers, and portable wearable devices, and the server 104 may be implemented by a stand-alone server or a server cluster composed of a plurality of servers.
In one embodiment, as shown in fig. 2, a pipeline connection data generating method is provided, and the method is applied to the server in fig. 1 for illustration, and includes the following steps:
in step S202, a pipeline connection data generation instruction is received, the pipeline connection data generation instruction carrying a pipeline to be processed.
The pipeline connection data generation instruction is an instruction for indicating generation of associated connection data, and the pipeline connection data generation instruction can carry a pipeline identifier of a pipeline to be processed or a corresponding item or task identifier.
In this embodiment, referring to fig. 3, a pipe connection information writing control may be set in the three-dimensional software editing interface, and when a user triggers the "pipe connection information writing" control displayed on the terminal display interface, a pipe connection data generating instruction may be generated, and the pipe connection data generating instruction is sent to the server. After receiving the pipeline connection data generation instruction, the server can perform subsequent processing.
In this embodiment, the pipeline to be processed may refer to a design project or all pipelines corresponding to a task, which may specifically be composed of one or more pipeline lines.
Step S204, three-dimensional model data corresponding to the pipeline to be processed are obtained, and each connection object forming the pipeline to be processed is determined from the three-dimensional model data.
The three-dimensional model data refers to model data constructed and generated by various building informatization model technologies (Building Information Modeling, BIM), and specifically may be model data constructed by the Revit software.
The connection objects refer to objects constituting a pipeline to be processed, and may include connection pipes, connection pieces, various kinds of group examples, and the like, and particularly, reference is made to fig. 4.
Wherein, the connecting piece can be elbow, reducing, tee joint, four-way, etc., and each group of examples can be valve group examples, various mechanical execution device group examples, such as hydraulic pump, pneumatic pump, flowmeter, etc.
In this embodiment, the same family of instances may include multiple instances, i.e., may include multiple identical devices, e.g., multiple valves may be included in a valve family of instances, etc.
In this embodiment, after receiving the pipeline connection data generation instruction, the server may acquire three-dimensional model data of the corresponding instruction, and determine each connection object constituting the pipeline to be processed from the three-dimensional model data.
In step S206, object parameters corresponding to each connection object are acquired.
The object parameters refer to object parameters corresponding to each connection object, and may include an object identifier, an object interface flow direction identifier, and the like.
In this embodiment, for each connection object, the object parameters may include the object parameters of each connection object, and may also include the object parameters of the connection object connected to each object, for example, for a pipe, the object parameters may include the parameters of the pipe, may include the object parameters of a valve connected to the pipe, or be a mechanical device, an execution device, or the like.
In this embodiment, the server may determine the object parameters corresponding to each connection object according to the three-dimensional model data corresponding to each connection object.
Step S208, the object parameters corresponding to the connection objects are written into the data tables corresponding to the connection objects, and pipeline connection data of the pipeline to be processed is generated.
Specifically, the server may construct a data table corresponding to each object in advance according to the connection relationship between the connection objects in the three-dimensional model data, for example, if a pipe is connected to two objects, the server may construct a data table for recording object parameters including the pipe and the two objects connected to the pipe.
In this embodiment, the data table may include fixed information created at the time of construction, and blank tables, each blank table being one-to-one object with the fixed information created at the time of construction.
In this embodiment, the server may write the object data corresponding to each connection object obtained based on the three-dimensional model data into a blank table corresponding to the fixed information in the data table, so as to generate pipeline connection data of the pipeline to be processed.
In the pipeline connection data generation method, the pipeline connection data generation instruction is received, the pipeline connection data generation instruction carries a pipeline to be processed, three-dimensional model data corresponding to the pipeline to be processed is obtained, all connection objects forming the pipeline to be processed are determined from the three-dimensional model data, object parameters corresponding to all the connection objects are obtained, and object parameters corresponding to all the connection objects are further written into a data table corresponding to all the connection objects to generate pipeline connection data of the pipeline to be processed. Therefore, each connection object of the pipeline to be processed can be determined according to the three-dimensional model data of the pipeline to be processed, object parameters of each connection object are obtained, and pipeline connection data of the pipeline to be processed are generated, so that manual parameters are not needed in the whole processing process, and the intelligent level of pipeline connection data generation is improved. In addition, the pipeline connection data can be directly generated through the three-dimensional model data, so that the pipeline connection data can be directly generated when a system with a complex structure is faced, the workload of operators can be reduced, and the processing efficiency can be improved.
In one embodiment, referring to fig. 5, acquiring object parameters corresponding to each connection object may include:
in step S502, each connection object is determined as a target object, and a target connection object connected to each target object is determined from each connection object of the pipeline to be processed.
The target object refers to a connection object currently processed, and the target connection object refers to a connection object connected with the target object.
In this embodiment, there may be 1 each or more of the target connection objects connected thereto for any one of the connection objects, for example, for an actuator in a pipeline such as a pressure gauge, there may be only a pipe for the connection object connected thereto, and three for a tee. The number and types of the corresponding target connection objects may be different for different target objects.
In this embodiment, after determining each target object, the server may determine, according to the three-dimensional model data, a target connection object connected to each target object.
Step S504, the object identifiers of each target object and the target connection objects connected with each target object are obtained, and the object interface flow direction identifiers of each connection interface of each target object are obtained.
The object identifier is an identifier for identifying the uniqueness of each connection object, and may be an identifier generated randomly when a pipeline to be processed is created through three-dimensional model software, or an identifier generated by a user according to a predefined naming requirement when three-dimensional model data is built.
In this embodiment, the object identification may be a combination of numbers, such as "2087217", or may be a combination of alphanumerics, such as "IP125369", without limitation.
The object interface flow direction identifier refers to a liquid flow direction identifier of each interface of the target object, and the object interface flow direction identifiers of the different interfaces are different, for example, the inflow identifier is 1, and the outflow identifier is 2.
In this embodiment, when determining each connection object, the server may directly obtain the object identifier of each connection object and determine the object interface flow direction identifier of each interface of the target object based on the three-dimensional model data of each target object.
In step S506, the object interface flow direction identifier and the object identifiers of the target object and the target connection object are used as the object parameters of the target object.
In this embodiment, after obtaining the object interface flow direction identifier of each target object and the object identifiers of the target object and the target connection object, the server may use the obtained object interface flow direction identifier and the object identifier as the object parameters of the corresponding target object, and write the object parameters into the data table corresponding to the target object.
In this embodiment, writing object parameters corresponding to each connection object into a data table corresponding to each connection object, and generating pipeline connection data of a pipeline to be processed may include: and writing the object identifier of each target connection object and the object interface flow direction identifier of each target object into a data table corresponding to each target object, and generating pipeline connection data of the pipeline to be processed.
Specifically, referring to fig. 6, for the elbow, the elbow identifier is "2087217", the pipe identifier of the pipe a connected thereto is "2118904", the pipe identifier of the pipe B connected thereto is "2086840", and the server may write the corresponding elbow identifier and the pipe identifier to corresponding positions in the data table, respectively. Meanwhile, for the elbow, the flow direction of the object interface of the interface connected with the pipeline A is marked as '1', namely, inflow, and the flow direction of the object interface of the interface connected with the pipeline B is marked as '2', namely, outflow.
In this embodiment, the server traverses each connection object to obtain object parameters corresponding to each connection object, and writes the object parameters into a corresponding data table to obtain pipeline connection data corresponding to the pipeline to be processed.
In the above embodiment, by determining each connection object as a target object, determining a target connection object connected with each target object from each connection object of a pipeline to be processed, and acquiring each target object and an object identifier of the target connection object connected with each target object, and an object interface flow direction identifier of each connection interface of each target object, then taking the object interface flow direction identifier and the object identifiers of the target object and the target connection object as object parameters of the target object, it is possible to acquire object parameters related to each connection object, and further, when generating pipeline connection data based on the object parameters, it is the real relationship between the connection objects that makes the pipeline connection data reflect, and the authenticity and accuracy of the obtained pipeline connection data.
In one embodiment, obtaining the object interface flow direction identifier of each connection interface of each target object may include: acquiring object data of a target object from the three-dimensional model data; determining the number of object interfaces of the target object based on the object data and the flow direction of the liquid in the target object; and determining the object interface flow direction identification of each object interface according to the number of the object interfaces and the flow direction.
The object data refers to three-dimensional model data corresponding to each connection object, and may include an object name, an object identifier, a task or item to which the data belongs, each size of the connection object, and a sustainable liquid pressure, a liquid flow direction, and the like of the connection object.
In this embodiment, the server may obtain, according to the object identifier, object data of the target object from the three-dimensional model data corresponding to the project or the task.
Further, the server may determine the number of object interfaces of the target object and the flow direction of the liquid in the target object of the service from the object data. For example, for a one-way valve, the number of object interfaces is 2, the flow direction of the liquid is unidirectional, and the intelligent flow is from the inlet to the outlet; for a common pipeline, the number of object interfaces is 2, and the flow direction of liquid can be bidirectional; for three-way or four-way, the number of subject connections is 3 or 4, respectively, and the flow direction of the liquid can generally be from a single inflow port to each outflow port.
In this embodiment, the server may determine the object interface flow direction identifier of each object interface according to the number of object interfaces and the flow direction of each target object.
In one embodiment, determining the object interface flow direction identifier of each object interface according to the number of object interfaces and the flow direction may include: judging whether the number of object interfaces of the target object is larger than or equal to a preset threshold value; when the number of the object interfaces of the target object is larger than or equal to a preset threshold value, acquiring target interface flow direction identifiers of target interfaces connected with all the object interfaces of the target object, and determining all the target interface flow direction identifiers as object interface flow direction identifiers of corresponding object interfaces; when the number of the object interfaces of the target object is smaller than a preset threshold value, determining the object interface flow direction identification of each object interface according to the flow direction of the liquid in the target object.
The target interface refers to an interface of a target connection object connected with the target object, for example, with continued reference to fig. 6, for an elbow, the corresponding target connection objects are a pipeline a and a pipeline B, and the target interface may be an interface that the pipeline a and the pipeline B are respectively connected with the elbow.
In this embodiment, the server may first determine whether the number of object interfaces of the target object is greater than or equal to a preset threshold, for example, greater than or equal to 3.
In this embodiment, when the server determines that the number of object interfaces of the target object is greater than or equal to the preset threshold, the server obtains the target interface flow direction identifiers of the target interfaces connected to the object interfaces of the target object, and determines each target interface flow direction identifier as the object interface flow direction identifier of the corresponding object interface.
Further, when the server determines that the number of object interfaces of the target object is smaller than the preset threshold, for example, only 2 interfaces are provided, the server may determine an object interface flow direction identifier of each object interface according to the flow direction of the liquid in the target object, for example, in the target object, the liquid flow direction is from interface a to interface b, the server may determine that interface a is an inflow interface, the object interface flow direction identifier thereof is "1", and the interface b is an outflow interface, the object interface flow direction identifier thereof is "2".
In this embodiment, for a target object whose liquid flow direction is bidirectional, the server may determine the object interface flow direction identifier of the interface according to the target interface flow direction identifier of the target interface connected to one interface, and then determine the object interface flow direction identifier of the other interface according to formula 3-i. Wherein i represents an object interface flow direction identifier of the interface determined according to the target interface flow direction identifier of the target interface. For example, for a bidirectional pipeline, if it is determined that the object interface flow direction identifier of one interface is "1" according to the object interface flow direction identifier of the object interface, the object interface flow direction identifier of the other interface is 2 (3-1=2).
In the above embodiment, the object data of each connection object is obtained from the three-dimensional model data, the number of object interfaces of the target object and the flow direction of the liquid in the target object are determined, and then the object interface flow direction identifier of each object interface is determined according to the number of object interfaces and the flow direction. Therefore, the object interface flow direction identification of each connection object can be accurately determined through the object data, manual confirmation is not needed, and the intelligent level of processing can be improved.
In one embodiment, the method may further include: receiving an output instruction of pipeline connection data of a pipeline to be processed; and acquiring corresponding pipeline connection data in the data table according to the output instruction, and outputting the corresponding pipeline connection data according to the data format requirement in the output instruction.
The output instruction refers to an instruction requesting output pipeline connection data.
In this embodiment, when the user needs to perform hydraulic calculation or other calculation on the pipeline to be processed, an output instruction for requesting to output the pipeline connection data may be sent through the terminal.
In this embodiment, after receiving the output instruction, the server may obtain the corresponding pipeline connection data from the data table, and output the pipeline connection data according to the format requirement specified in the output instruction, for example, output excel table data or txt document data.
In the above embodiment, by receiving the output instruction and then outputting the corresponding pipeline connection data according to the data format requirement in the output instruction, the output pipeline connection data can be made to conform to the requirement of the terminal on the data format, and the data processing efficiency of the terminal is improved.
It should be understood that, although the steps in the flowcharts of fig. 2 and 5 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 2 and 5 may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor does the order in which the sub-steps or stages are performed necessarily occur in sequence, but may be performed alternately or alternately with at least a portion of the sub-steps or stages of other steps or other steps.
In one embodiment, as shown in fig. 7, there is provided a pipeline connection data generating apparatus, comprising: an instruction receiving module 100, a connection object determining module 200, an object parameter obtaining module 300, and a pipeline connection data generating module 400, wherein:
the instruction receiving module 100 is configured to receive a pipeline connection data generation instruction, where the pipeline connection data generation instruction carries a pipeline to be processed.
The connection object determining module 200 is configured to obtain three-dimensional model data corresponding to the pipeline to be processed, and determine each connection object that constitutes the pipeline to be processed from the three-dimensional model data.
The object parameter obtaining module 300 is configured to obtain object parameters corresponding to each connection object.
The pipeline connection data generating module 400 is configured to write object parameters corresponding to each connection object into a data table corresponding to each connection object, and generate pipeline connection data of a pipeline to be processed.
In one embodiment, the object parameter acquisition module 300 may include:
the target object and target connection object determining submodule is used for determining that each connection object is a target object and determining the target connection object connected with each target object from each connection object of the pipeline to be processed.
The parameter acquisition sub-module is used for acquiring object identifiers of each target object and target connection objects connected with each target object, and acquiring object interface flow direction identifiers of each connection interface of each target object; and taking the object interface flow direction identifier and the object identifiers of the target object and the target connection object as object parameters of the target object.
In this embodiment, the pipeline connection data generating module 400 is configured to write the object identifier of each target connection object and the object interface flow direction identifier of the target object into the data table corresponding to each target object, so as to generate pipeline connection data of the pipeline to be processed.
In one embodiment, the parameter acquisition sub-module may include:
and an object data acquisition unit for acquiring object data of the target object from the three-dimensional model data.
And a liquid flow direction determining unit for determining the number of object interfaces of the target object and the flow direction of the liquid in the target object based on the object data.
And the object interface flow direction identification determining unit is used for determining the object interface flow direction identification of each object interface according to the number of the object interfaces and the flow direction.
In one embodiment, the object interface flow direction identification determining unit may include:
And the judging subunit is used for judging whether the number of the object interfaces of the target object is larger than or equal to a preset threshold value.
And the first object interface flow direction identification determining subunit is used for acquiring the object interface flow direction identifications of the object interfaces connected with the object interfaces of the object and determining the object interface flow direction identifications as the object interface flow direction identifications of the corresponding object interfaces when the number of the object interfaces of the object is greater than or equal to a preset threshold value.
And the second object interface flow direction identification determining subunit is used for determining the object interface flow direction identification of each object interface according to the flow direction of the liquid in the target object when the number of the object interfaces of the target object is smaller than a preset threshold value.
In one embodiment, the apparatus may further include:
and the output instruction receiving module is used for receiving an output instruction of pipeline connection data of the pipeline to be processed.
The data output module is used for acquiring corresponding pipeline connection data in the data table according to the output instruction and outputting the corresponding pipeline connection data according to the data format requirement in the output instruction.
The specific definition of the pipeline connection data generating apparatus may be referred to the definition of the pipeline connection data generating method hereinabove, and will not be described herein. The various modules in the pipeline connection data generation apparatus described above may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a server, and the internal structure of which may be as shown in fig. 8. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used for storing three-dimensional model data, object parameters and other data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a pipeline connection data generation method.
It will be appreciated by those skilled in the art that the structure shown in fig. 8 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory storing a computer program and a processor that when executing the computer program performs the steps of: receiving a pipeline connection data generation instruction, wherein the pipeline connection data generation instruction carries a pipeline to be processed; acquiring three-dimensional model data corresponding to a pipeline to be processed, and determining all connection objects forming the pipeline to be processed from the three-dimensional model data; obtaining object parameters corresponding to each connection object; and writing object parameters corresponding to the connection objects into a data table corresponding to the connection objects, and generating pipeline connection data of the pipeline to be processed.
In one embodiment, the processor, when executing the computer program, implements obtaining object parameters corresponding to each connection object, and may include: determining each connecting object as a target object, and determining a target connecting object connected with each target object from the connecting objects of the pipeline to be processed; obtaining object identifiers of each target object and target connection objects connected with each target object, and obtaining object interface flow direction identifiers of each connection interface of each target object; and taking the object interface flow direction identifier and the object identifiers of the target object and the target connection object as object parameters of the target object.
In this embodiment, when the processor executes the computer program, it is implemented to write object parameters corresponding to each connection object into a data table corresponding to each connection object, and generate pipeline connection data of a pipeline to be processed, which may include: and writing the object identifier of each target connection object and the object interface flow direction identifier of each target object into a data table corresponding to each target object, and generating pipeline connection data of the pipeline to be processed.
In one embodiment, the processor, when executing the computer program, may implement obtaining the object interface flow direction identifier of each connection interface of each target object, and may include: acquiring object data of a target object from the three-dimensional model data; determining the number of object interfaces of the target object based on the object data and the flow direction of the liquid in the target object; and determining the object interface flow direction identification of each object interface according to the number of the object interfaces and the flow direction.
In one embodiment, determining the object interface flow direction identifier of each object interface according to the number of object interfaces and the flow direction when the processor executes the computer program may include: judging whether the number of object interfaces of the target object is larger than or equal to a preset threshold value; when the number of the object interfaces of the target object is larger than or equal to a preset threshold value, acquiring target interface flow direction identifiers of target interfaces connected with all the object interfaces of the target object, and determining all the target interface flow direction identifiers as object interface flow direction identifiers of corresponding object interfaces; when the number of the object interfaces of the target object is smaller than a preset threshold value, determining the object interface flow direction identification of each object interface according to the flow direction of the liquid in the target object.
In one embodiment, the following steps may also be implemented when the processor executes the computer program: receiving an output instruction of pipeline connection data of a pipeline to be processed; and acquiring corresponding pipeline connection data in the data table according to the output instruction, and outputting the corresponding pipeline connection data according to the data format requirement in the output instruction.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of: receiving a pipeline connection data generation instruction, wherein the pipeline connection data generation instruction carries a pipeline to be processed; acquiring three-dimensional model data corresponding to a pipeline to be processed, and determining all connection objects forming the pipeline to be processed from the three-dimensional model data; obtaining object parameters corresponding to each connection object; and writing object parameters corresponding to the connection objects into a data table corresponding to the connection objects, and generating pipeline connection data of the pipeline to be processed.
In one embodiment, the computer program, when executed by the processor, implements obtaining object parameters corresponding to each connection object, and may include: determining each connecting object as a target object, and determining a target connecting object connected with each target object from the connecting objects of the pipeline to be processed; obtaining object identifiers of each target object and target connection objects connected with each target object, and obtaining object interface flow direction identifiers of each connection interface of each target object; and taking the object interface flow direction identifier and the object identifiers of the target object and the target connection object as object parameters of the target object.
In this embodiment, when the computer program is executed by the processor, it is implemented to write object parameters corresponding to each connection object into a data table corresponding to each connection object, and generate pipeline connection data of a pipeline to be processed, which may include: and writing the object identifier of each target connection object and the object interface flow direction identifier of each target object into a data table corresponding to each target object, and generating pipeline connection data of the pipeline to be processed.
In one embodiment, the method for obtaining the object interface flow direction identifier of each connection interface of each target object when the computer program is executed by the processor may include: acquiring object data of a target object from the three-dimensional model data; determining the number of object interfaces of the target object based on the object data and the flow direction of the liquid in the target object; and determining the object interface flow direction identification of each object interface according to the number of the object interfaces and the flow direction.
In one embodiment, the determining the object interface flow direction identifier of each object interface according to the number of object interfaces and the flow direction when the computer program is executed by the processor may include: judging whether the number of object interfaces of the target object is larger than or equal to a preset threshold value; when the number of the object interfaces of the target object is larger than or equal to a preset threshold value, acquiring target interface flow direction identifiers of target interfaces connected with all the object interfaces of the target object, and determining all the target interface flow direction identifiers as object interface flow direction identifiers of corresponding object interfaces; when the number of the object interfaces of the target object is smaller than a preset threshold value, determining the object interface flow direction identification of each object interface according to the flow direction of the liquid in the target object.
In one embodiment, the computer program when executed by the processor may further implement the steps of: receiving an output instruction of pipeline connection data of a pipeline to be processed; and acquiring corresponding pipeline connection data in the data table according to the output instruction, and outputting the corresponding pipeline connection data according to the data format requirement in the output instruction.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples merely represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the invention. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.

Claims (10)

1. A method of generating pipeline connection data, the method comprising:
receiving a pipeline connection data generation instruction, wherein the pipeline connection data generation instruction carries a pipeline to be processed;
acquiring three-dimensional model data corresponding to a pipeline to be processed, and determining each connecting object forming the pipeline to be processed from the three-dimensional model data; the connection objects refer to objects forming the pipeline to be processed, the connection objects comprise connection pipelines, connection pieces and various group examples, and the various group examples refer to valve group examples and various mechanical execution equipment group examples;
Determining each connection object as a target object, and determining a target connection object connected with each target object from the connection objects of the pipeline to be processed;
the method comprises the steps of obtaining object identifiers of target objects and object identifiers of target connection objects connected with the target objects, and obtaining object interface flow direction identifiers of connection interfaces of the target objects, wherein the object interface flow direction identifiers refer to liquid flow direction identifiers of the connection interfaces of the target objects;
the object interface flow direction identifier, the object identifier of the target object and the object identifier of the target connection object connected with the target object are used as object parameters of the target object;
and writing the object identifier of each target connection object and the object interface flow direction identifier of each target object into a data table corresponding to each target object, and generating pipeline connection data of the pipeline to be processed.
2. The method according to claim 1, wherein the obtaining the object interface flow direction identifier of each connection interface of each target object includes:
acquiring object data of the target object from the three-dimensional model data;
Determining the number of object interfaces of the target object and the flow direction of the liquid in the target object based on the object data;
and determining object interface flow direction identifiers of all the object interfaces according to the number of the object interfaces and the flow direction.
3. The method according to claim 2, wherein determining the object interface flow direction identifier of each of the object interfaces according to the number of object interfaces and the flow direction comprises:
judging whether the number of object interfaces of the target object is larger than or equal to a preset threshold value;
when the number of the object interfaces of the target object is larger than or equal to a preset threshold value, acquiring target interface flow direction identifiers of target interfaces connected with all the object interfaces of the target object, and determining all the target interface flow direction identifiers as object interface flow direction identifiers of corresponding object interfaces;
and when the number of the object interfaces of the target object is smaller than the preset threshold value, determining the object interface flow direction identification of each object interface according to the flow direction of the liquid in the target object.
4. The method according to claim 1, wherein the method further comprises:
Receiving an output instruction of pipeline connection data of the pipeline to be processed;
and acquiring corresponding pipeline connection data in the data table according to the output instruction, and outputting the corresponding pipeline connection data according to the data format requirement in the output instruction.
5. A pipeline connection data generation apparatus, the apparatus comprising:
the instruction receiving module is used for receiving a pipeline connection data generation instruction, wherein the pipeline connection data generation instruction carries a pipeline to be processed;
the connection object determining module is used for acquiring three-dimensional model data corresponding to the pipeline to be processed and determining all connection objects forming the pipeline to be processed from the three-dimensional model data; the connection objects refer to objects forming the pipeline to be processed, the connection objects comprise connection pipelines, connection pieces and various group examples, and the various group examples refer to valve group examples and various mechanical execution equipment group examples;
an object parameter acquisition module, comprising:
the target object and target connection object determining submodule is used for determining that each connection object is a target object and determining a target connection object connected with each target object from all connection objects of the pipeline to be processed;
The parameter acquisition sub-module is used for acquiring object identifiers of all the target objects and object identifiers of target connection objects connected with all the target objects, and acquiring object interface flow direction identifiers of all the connection interfaces of all the target objects, wherein the object interface flow direction identifiers refer to liquid flow direction identifiers of all the connection interfaces of all the target objects; the object interface flow direction identifier, the object identifier of the target object and the object identifier of the target connection object connected with the target object are used as object parameters of the target object;
and the pipeline connection data generation module is used for writing the object identifier of each target connection object and the object interface flow direction identifier of each target object into a data table corresponding to each target object to generate the pipeline connection data of the pipeline to be processed.
6. The apparatus of claim 5, wherein the parameter acquisition sub-module comprises:
an object data acquisition unit configured to acquire object data of the target object from the three-dimensional model data;
a liquid flow direction determining unit configured to determine, based on the object data, an object interface number of the target object and a flow direction of the liquid in the target object;
And the object interface flow direction identification determining unit is used for determining the object interface flow direction identification of each object interface according to the number of the object interfaces and the flow direction.
7. The apparatus according to claim 6, wherein the object interface flow direction identification determining unit may include:
the judging subunit is used for judging whether the number of the object interfaces of the target object is larger than or equal to a preset threshold value;
the first object interface flow direction identification determining subunit is configured to obtain, when the number of object interfaces of the target object is greater than or equal to a preset threshold, target interface flow direction identifications of target interfaces connected to object interfaces of the target object, and determine each target interface flow direction identification as an object interface flow direction identification of a corresponding object interface;
and the second object interface flow direction identification determining subunit is used for determining the object interface flow direction identification of each object interface according to the flow direction of the liquid in the target object when the number of the object interfaces of the target object is smaller than the preset threshold value.
8. The apparatus as recited in claim 5, further comprising:
the output instruction receiving module is used for receiving an output instruction of pipeline connection data of the pipeline to be processed;
And the data output module is used for acquiring corresponding pipeline connection data in the data table according to the output instruction and outputting the corresponding pipeline connection data according to the data format requirement in the output instruction.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 4 when the computer program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 4.
CN202011292872.1A 2020-11-18 2020-11-18 Pipeline connection data generation method, device, computer equipment and storage medium Active CN112380607B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011292872.1A CN112380607B (en) 2020-11-18 2020-11-18 Pipeline connection data generation method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011292872.1A CN112380607B (en) 2020-11-18 2020-11-18 Pipeline connection data generation method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112380607A CN112380607A (en) 2021-02-19
CN112380607B true CN112380607B (en) 2023-07-07

Family

ID=74585083

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011292872.1A Active CN112380607B (en) 2020-11-18 2020-11-18 Pipeline connection data generation method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112380607B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113505426B (en) * 2021-07-19 2024-04-12 杭州群核信息技术有限公司 Strong electric pipeline drawing method and device, computer equipment and medium thereof
CN113987634A (en) * 2021-10-20 2022-01-28 珠海新势力创建筑设计有限公司 Basement comprehensive pipe gallery route planning method and device based on Revit platform

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105512287A (en) * 2015-11-30 2016-04-20 山东正元地球物理信息技术有限公司 Method for establishing comprehensive pipe rack information database
CN105868326A (en) * 2016-03-25 2016-08-17 山东正元地球物理信息技术有限公司 Pipeline data storage method
CN106600468A (en) * 2015-10-20 2017-04-26 星际空间(天津)科技发展有限公司 Geographic-information-based comprehensive pipeline data two-dimensional and three-dimensional integrated organization method
CN108108580A (en) * 2018-02-06 2018-06-01 上海建工四建集团有限公司 A kind of generation method, device and the Building Information Model of Mechatronic Systems logical relation
CN109766387A (en) * 2018-12-20 2019-05-17 平安信托有限责任公司 Data processing document generating method, device, computer equipment and storage medium
CN110442964A (en) * 2019-08-02 2019-11-12 东莞市水利勘测设计院有限公司 A kind of pipeline data processing method
CN110750590A (en) * 2019-09-11 2020-02-04 南京太亚科技股份有限公司 Automatic generation method of pipeline three-dimensional visualization platform
CN110910160A (en) * 2019-10-10 2020-03-24 浙江大搜车软件技术有限公司 Data determination method and device, computer equipment and storage medium
CN111191330A (en) * 2019-12-23 2020-05-22 上海营邑城市规划设计股份有限公司 Method and system for problem discovery in pipeline synthesis design
EP3660743A1 (en) * 2018-11-30 2020-06-03 Tata Consultancy Services Limited Systems and methods for automating information extraction from piping and instrumentation diagrams

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11200540B2 (en) * 2017-09-22 2021-12-14 The Brandt Companies, LLC Fabrication, distribution, and integrated order processing system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106600468A (en) * 2015-10-20 2017-04-26 星际空间(天津)科技发展有限公司 Geographic-information-based comprehensive pipeline data two-dimensional and three-dimensional integrated organization method
CN105512287A (en) * 2015-11-30 2016-04-20 山东正元地球物理信息技术有限公司 Method for establishing comprehensive pipe rack information database
CN105868326A (en) * 2016-03-25 2016-08-17 山东正元地球物理信息技术有限公司 Pipeline data storage method
CN108108580A (en) * 2018-02-06 2018-06-01 上海建工四建集团有限公司 A kind of generation method, device and the Building Information Model of Mechatronic Systems logical relation
EP3660743A1 (en) * 2018-11-30 2020-06-03 Tata Consultancy Services Limited Systems and methods for automating information extraction from piping and instrumentation diagrams
CN109766387A (en) * 2018-12-20 2019-05-17 平安信托有限责任公司 Data processing document generating method, device, computer equipment and storage medium
CN110442964A (en) * 2019-08-02 2019-11-12 东莞市水利勘测设计院有限公司 A kind of pipeline data processing method
CN110750590A (en) * 2019-09-11 2020-02-04 南京太亚科技股份有限公司 Automatic generation method of pipeline three-dimensional visualization platform
CN110910160A (en) * 2019-10-10 2020-03-24 浙江大搜车软件技术有限公司 Data determination method and device, computer equipment and storage medium
CN111191330A (en) * 2019-12-23 2020-05-22 上海营邑城市规划设计股份有限公司 Method and system for problem discovery in pipeline synthesis design

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
城市地下管线探测与管线信息系统设计;魏家玲;《中国优秀博硕士学位论文全文数据库(硕士) 工程科技Ⅱ辑》;20160415(第04期);全文 *

Also Published As

Publication number Publication date
CN112380607A (en) 2021-02-19

Similar Documents

Publication Publication Date Title
CN112380607B (en) Pipeline connection data generation method, device, computer equipment and storage medium
WO2020186783A1 (en) Data importing method and apparatus, and computer device and storage medium
EP3364261B1 (en) Generation of partial plant topology data from plant operations data
CN105335309A (en) Data transmission method and computer
WO2019033741A1 (en) Investment commodity resource processing method, device, storage medium and computer apparatus
CN108965450B (en) Service request response method, device, computer equipment and storage medium
JP2020042782A (en) Computing method applied to artificial intelligence chip, and artificial intelligence chip
CN110175424B (en) Pipeline design method and device of air conditioning unit, computer equipment and storage medium
CN115482340A (en) Three-dimensional scene modeling method and device, computer equipment and storage medium
CN105677533A (en) Application process monitoring method and device
CN109542962B (en) Data processing method, data processing device, computer equipment and storage medium
CN113094125B (en) Business process processing method, device, server and storage medium
CN110321590B (en) Automatic generation method and device of refrigerating system design drawing and storage medium
CN111079262B (en) Pipeline hoisting structure generation method and device, computer equipment and storage medium
CN110688798B (en) Deformation prediction method, device, equipment and storage medium for shell structural part
CN114416888A (en) Data processing method and device combining RPA and AI, electronic equipment and storage medium
CN111464596B (en) Data processing system, method, apparatus, computer device, and storage medium
CN113051312B (en) Material information statistical method, device, equipment and storage medium
CN113192189B (en) Method, device and equipment for correcting connection relation and readable storage medium
CN114006703B (en) Intersystem data transmission method and device
CN116933351B (en) Automatic generation method and device for pipeline instrument flow chart
CN111953535B (en) Network fault positioning method, terminal and storage medium
CN113051790B (en) Steam load loading method, system, equipment and medium for finite element simulation
CN117453975A (en) Target object information display method, device, computer equipment and storage medium
CN117130798A (en) System mutual trust authentication method, device, computer equipment and storage medium

Legal Events

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