Method for generating pipeline model and computer program product

By adjusting pipe fitting nodes and updating connection rules in real time on the node editing interface, the problems of poor reusability of connection relationships and lack of intuitiveness in complex pipeline models in 2D design are solved, realizing the generation of integrated 2D and 3D pipeline models and improving design efficiency and flexibility.

CN120951567APending Publication Date: 2025-11-14GLODON CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511070160.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-31
Publication Date
2025-11-14

AI Technical Summary

Technical Problem

Pipeline models designed in two-dimensional scenes cannot meet the design requirements of complex pipeline models. The reusability of connection relationships is poor and the design is not intuitive, making it difficult to reuse in three-dimensional scenes.

Method used

A pipeline model generation method is provided, which generates the target pipeline model by adjusting the pipe nodes on the node editing interface and updating the connection rules in real time, supporting integrated two-dimensional and three-dimensional design.

Benefits of technology

It enables integrated 2D and 3D design of pipeline models, improving design flexibility and efficiency, simplifying operation processes, and enhancing the reusability of connection rules and model generation efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120951567A_ABST
    Figure CN120951567A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of pipeline design, and discloses a pipeline model generation method and a computer program product. The method comprises the steps that a node editing interface corresponding to a pipeline model is displayed, the pipeline model has a corresponding connection rule, the connection rule is stored based on a preset file form, and the pipeline model comprises a plurality of pipe fitting nodes; in response to an adjustment operation for the target pipe joint on the joint editing interface, obtaining an adjusted target pipeline model; updating the connection rule based on the adjustment operation to generate a target connection rule; according to the target connection rule, the model structure information corresponding to the target pipeline model is generated, and the problems of poor flexibility and low design efficiency in the pipeline model design process are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of pipeline design technology, specifically to a method for generating pipeline models and a computer program product. Background Technology

[0002] Currently, pipeline construction drawings are typically designed in a two-dimensional environment. However, for some complex pipeline models, a two-dimensional environment cannot adequately meet the user's design needs. Furthermore, in a two-dimensional environment, the reusability of connections between various pipe fitting nodes is poor. For example, connection relationships designed in a two-dimensional environment cannot be reused in a three-dimensional environment, and the display of complex pipe fitting models in a two-dimensional environment is not direct and intuitive enough. Summary of the Invention

[0003] In view of this, the present invention provides a method for generating pipeline models and a computer program product to solve the problems of poor flexibility and low design efficiency in the pipeline model design process.

[0004] In a first aspect, the present invention provides a method for generating a pipeline model, comprising: displaying a node editing interface corresponding to the pipeline model, wherein the pipeline model has corresponding connection rules, the connection rules are stored in a preset file format, and the pipeline model includes multiple pipe fitting nodes; in response to an adjustment operation on a target pipe fitting node in the node editing interface, obtaining an adjusted target pipeline model; updating the connection rules based on the adjustment operation to generate target connection rules; and generating model structure information corresponding to the target pipeline model according to the target connection rules.

[0005] In a second aspect, the present invention provides a computer program product, including computer instructions for causing a computer to execute the pipeline model generation method of the first aspect or any corresponding embodiment thereof. Attached Figure Description

[0006] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0007] Figure 1 This is a schematic diagram of an optional application scenario provided by the present invention;

[0008] Figure 2 This is a schematic flowchart of a pipeline model generation method according to an embodiment of the present invention;

[0009] Figure 3 This is a schematic diagram of the connector index of the double-disc short tube provided according to an embodiment of the present invention;

[0010] Figure 4 This is a schematic diagram of the connector index of a full-disc tee according to an embodiment of the present invention;

[0011] Figure 5 This is a two-dimensional plan view of the full-disc short tube provided according to an embodiment of the present invention;

[0012] Figure 6 This is a two-dimensional plan view of the full-disc tee provided according to an embodiment of the present invention;

[0013] Figure 7 This is a flowchart illustrating another method for generating a pipeline model according to an embodiment of the present invention;

[0014] Figure 8 This is a flowchart illustrating another method for generating a pipeline model according to an embodiment of the present invention;

[0015] Figure 9 This is a schematic diagram of the process for generating a pipeline model according to an embodiment of the present invention;

[0016] Figure 10 This is a schematic diagram of a pipeline model generation device according to an embodiment of the present invention;

[0017] Figure 11 This is a schematic diagram of the hardware structure of a computer device provided according to an embodiment of the present invention. Detailed Implementation

[0018] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0019] The application scenarios on which the pipeline model generation method depends are described here.

[0020] Currently, pipeline construction drawings are typically designed in a two-dimensional environment. However, for some complex pipeline models, a two-dimensional environment cannot adequately meet the user's design needs. Furthermore, in a two-dimensional environment, the reusability of connections between various pipe fitting nodes is poor. For example, connection relationships designed in a two-dimensional environment cannot be reused in a three-dimensional environment, and the display of complex pipe fitting models in a two-dimensional environment is not direct and intuitive enough.

[0021] In view of this, this application proposes a method for generating a pipeline model and a computer program product. The method includes: displaying a node editing interface corresponding to the pipeline model, wherein the pipeline model has corresponding connection rules, the connection rules are stored in a preset file format, and the pipeline model includes multiple pipe fitting nodes; responding to an adjustment operation on a target pipe fitting node in the node editing interface, obtaining an adjusted target pipeline model; updating the connection rules based on the adjustment operation to generate target connection rules; and generating model structure information corresponding to the target pipeline model according to the target connection rules.

[0022] The pipeline model generation method of this application generates an adjusted target pipeline model by responding to adjustment operations on the target pipe node in the node editing interface. It also updates the connection rules corresponding to the pipeline model based on the adjustment operations to generate target connection rules, and then generates the model structure information corresponding to the target pipeline model according to the target connection rules. The target pipeline model of this application can be two-dimensional or three-dimensional, meaning it supports both two-dimensional and three-dimensional model design simultaneously, achieving a unified two-dimensional and three-dimensional effect. Furthermore, when adjusting the pipeline model based on the adjustment operations, it not only generates the adjusted target pipeline model in real time but also updates the connection rules in real time to obtain the target connection rules, achieving synchronous updates of the model and rules. The entire process eliminates cumbersome operations and improves the efficiency of pipeline model generation.

[0023] As one optional application scenario in the embodiments of this application, such as Figure 1 As shown, the electronic device can be equipped with pipeline model generation software. Users can open the software to access the node layout interface, where they can select the pipeline model to be generated, such as pipeline model 1. The electronic device then displays pipeline model 1 on the node editing interface. Users can then adjust pipeline model 1 in the node editing interface, which displays the adjusted target pipeline model 1 in real time. The electronic device also updates the corresponding connection rules for pipeline model 1 in real time based on the user's adjustments, generating target connection rules. After completing the design, users can click the "Generate" control, and the electronic device will generate the model structure information of the target pipeline model according to the target connection rules.

[0024] It should be understood that computer devices can store and maintain data. Examples of computers may include supercomputers, personal computers, laptop computers, in-vehicle computing devices, mobile devices (such as smartphones, tablets, etc.), or combinations thereof. It should be understood that the computer devices described herein are merely exemplary and not limiting; for example, other different types of computer devices may also be used.

[0025] According to an embodiment of the present invention, a method for generating a pipeline model is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0026] This embodiment provides a method for generating pipeline models, which can be used in electronic devices. Figure 2 This is a flowchart of a pipeline model generation method according to an embodiment of the present invention, such as... Figure 2 As shown, the process includes the following steps:

[0027] Step S201: Display the node editing interface corresponding to the pipeline model. The pipeline model has corresponding connection rules, which are stored based on a preset file. The pipeline model includes multiple pipe fitting nodes.

[0028] The pipeline model can be a model corresponding to a complex node, which can be a node with a relatively complex internal structure, such as a fire hydrant, sludge discharge well, or water meter well. A complex node can be further divided into multiple types. For example, fire hydrants can be divided into 18 types according to whether they are installed above ground or underground, on main pipe or branch pipe, with or without maintenance valves, and made of steel or cast iron. Each type of complex node can correspond to a pipeline model and a connection rule.

[0029] Connection rules are used to define the connection order of various pipe fittings in the pipeline model, as well as the fitting information of each pipe fitting. Connection rules are stored in a rule base in a preset file format. The preset file format can be any suitable storage method, and this application does not impose any restrictions on it. As a specific example, the preset file format can be XML.

[0030] Connection rules may include, but are not limited to, routing intervals (GRoutes), component intervals (GfamilyItems), variable intervals (GVariables), variable control intervals (GVariableControlRegions), and wellbody intervals (GWellBodys). Each routing interval, component interval, variable interval, variable control interval, and wellbody interval may contain multiple corresponding rules.

[0031] For example, a routing range can include multiple routing rules. A single routing rule records the connection information for a component, and may include a routing rule identifier (id), routing type information (routeType), a construction rule identifier (familyItemID), a target connector index (connector), a target docking route identifier (toItem), and a target docking connector index (toConnector). Each component defines a connector index, which changes as the component's position and orientation change, such as... Figure 3 The diagram shown is a connector index diagram for a double-disc short pipe, as follows: Figure 4 The diagram shows the connector index of a full-disc tee. Based on this, the target connector index is the index of the connector in the target pipe fitting that connects to the butt fitting, and the target butt joint index is the index of the connector in the butt fitting that connects to the target pipe fitting. For example, if connector 0 of a double-disc short pipe is connected to connector 1 of a tee, and the target pipe fitting is a double-disc short pipe, then the target connector index is 0, and the target butt joint index is 1. The target opposing connector index of the target pipe fitting mentioned later is connector 1 of the double-disc short pipe. As a specific example, such as...<GRouteid="1"routeType="1"familyItemId="4"connector="0"toItem="0"toConnector="2" / > The routing rules can be used to represent the connection of a 0-connector elbow to a 2-connector tee (branch pipe). It should be understood that routing rules can also include other information, such as whether it is enabled, route length, angle, and rotation. As a specific example, for route type, 0 represents a round pipe route; 1 represents an elbow route; 2 represents a tee route; 3 represents a four-way route; 4 represents a reducer route; 5 represents an eccentric reducer route; 6 represents a plug route; 7 represents a valve route; 8 represents a device route; 9 represents a joint route; and 10 represents a connector route.

[0032] For example, the component interval (GFamilyItems) includes multiple component rules. For a component rule, it is used to record the cluster identifier (itemType), cluster type (familyType), and cluster name (familName) of a component. Among them, when the family type is [DN1]×[DN2], it is used to represent the main pipe diameter and branch pipe diameter of the family of the current pipe fitting. DN1 is used to represent that the joint pipe diameter of the butt joint pipe fitting is passed backward from the inflow pipe, and DN2 is used to represent that the branch pipe diameter is set into the rule through a variable after arranging the nodes; when the family type is DN[DN], it is used to represent the joint pipe diameter of the butt joint pipe fitting. As a specific example, for the cluster identifier (itemType), 1 is used to represent a plug; 2 is used to represent a short pipe; 3 is used to represent an elbow; 4 is used to represent a duck-foot elbow; 5 is used to represent a reducer (concentric reducer); 6 is used to represent an eccentric reducer; 7 is used to represent a reducing elbow; 8 is used to represent a tee; 9 is used to represent a cross; 10 is used to represent a bell mouth; 11 is used to represent a valve; 12 is used to represent a device; 13 is used to represent a joint; 14 is used to represent a connector. As a specific example, <GramilyItemid="4"itemrype="3"familyName="Double-disk 90° elbow"familyType="DN[DN]" / >, this component rule is used to represent that the cluster identifier of the target pipe fitting is 3 and the cluster name is Double-disk 90° elbow.

[0033] For example, the variable interval (GVariables) includes multiple variable rules. For a variable rule, it is used to record the variable ID, variable name, variable description, variable type, and variable value. The parameter values in the variable rule can be obtained directly or indirectly when selecting the pipeline model. For example, taking a fire hydrant as an example, the specifications of the fire hydrant, whether a drain outlet is configured, the valve type, the distance from the valve well to the hydrant body, the family name of the valve well, and the family name of the fire hydrant are directly set when selecting. The direction of the hydrant body (the direction of the elbow) is obtained interactively when selecting, and the length of the vertical short pipe needs to be determined through the variable control interval.

[0034] For example, the variable control interval (GVariableControlRegions) includes multiple variable control rules, which are used to record the length of the outlet pipe segment, variable ID, control mode, starting route ID, starting joint index, ending route ID, and starting offset. Among them, the scenario of the outlet pipe segment, such as the length of the pipe segment in a fire hydrant, needs to be calculated according to the node elevation. As a specific example, startRoute="6"startConnector="1"endRoute="-1"endConnector="-1"enable="HasSluice" means that when configuring the drain outlet, the height between joint 1 of the drain outlet and the ground is taken.

[0035] For example, the GWellBodys section is used to record the well body ID, well body name, location route ID, location connector index, well body build name, well body build type, and whether it is enabled. routeId="2" indicates the valve location, and connectorIndex="-1" indicates the valve insertion location.

[0036] Step S202: In response to the adjustment operation on the target pipe node in the node editing interface, the adjusted target pipeline model is obtained.

[0037] The adjustment operations here can include adding new target pipe fittings to the pipeline model, deleting target pipe fittings from the pipe fitting model, or replacing an existing pipe fitting in the pipe fitting model with a target pipe fitting. The electronic device can respond to the user's adjustment operations in real time and display the adjusted target pipeline model on the node editing interface. This target pipeline model can be displayed in two-dimensional or three-dimensional form; that is, this solution can achieve integrated two-dimensional and three-dimensional display, making the user's operation more flexible and meeting the user's needs.

[0038] Step S203: Update the connection rules based on the adjustment operation to generate the target connection rules.

[0039] Since the user has made corresponding adjustments to the pipe fitting model, the connection order between various pipe fittings and related pipe fitting information in the model all need to be adjusted. Therefore, the connection rules can be updated based on the adjustment operations to generate target connection rules. For example, adding routing rules and component rules corresponding to the target pipe fitting in the connection rules; deleting routing rules and component rules corresponding to the target pipe fitting in the connection rules; and replacing the original routing rules and component rules corresponding to the pipe fitting with the routing rules and component rules corresponding to the target pipe fitting in the connection rules.

[0040] Step S204: Generate the model structure information corresponding to the target pipeline model according to the target connection rules.

[0041] Because the model joint information corresponding to the target pipeline model is generated according to the target connection rules, a single set of rules can be reused for both 2D and 3D models. Even if the pipeline model is edited in 3D to generate the target pipeline model, the corresponding 2D model structure information can still be generated using the target connection rules. For example, a 2D plan view corresponding to the target pipeline model can be generated according to the target connection rules, such as... Figure 5 The two-dimensional plan view of the entire short tube shown, and as follows Figure 6The diagram shows a 2D plan view of the entire tee and the corresponding material list information for the target pipeline model. The 2D plan view can be named using the format "family_2D", and the isometric view can be named using the format "family_isometric_2D".

[0042] The pipeline model generation method provided in this embodiment generates an adjusted target pipeline model by responding to adjustment operations on the target pipe node in the node editing interface. It also updates the connection rules corresponding to the pipeline model based on the adjustment operations to generate target connection rules, and then generates the model structure information corresponding to the target pipeline model according to the target connection rules. The target pipeline model of this application can be two-dimensional or three-dimensional, meaning it supports both two-dimensional and three-dimensional model design simultaneously, achieving a unified two-dimensional and three-dimensional effect. Furthermore, when adjusting the pipeline model based on the adjustment operations, not only can the pipeline model be adjusted in real time to generate the adjusted target pipeline model, but the connection rules can also be updated in real time to obtain the target connection rules, achieving synchronous updates of the model and rules. The entire process eliminates cumbersome operations and improves the generation efficiency of the pipeline model.

[0043] This embodiment provides a method for generating a pipeline model, which can be used in computer devices. Figure 7 This is a flowchart of a pipeline model generation method according to an embodiment of the present invention, such as... Figure 7 As shown, the process includes the following steps:

[0044] Step S701: Display the node editing interface corresponding to the pipeline model. The pipeline model has corresponding connection rules, which are stored based on a preset file. The pipeline model includes multiple pipe fitting nodes. For details, please refer to [link to relevant documentation]. Figure 2 Step S201 of the illustrated embodiment will not be described again here.

[0045] Step S702: In response to the adjustment operation on the target pipe node in the node editing interface, the adjusted target pipeline model is obtained.

[0046] Specifically, step S702 includes:

[0047] Step S7021: In response to the adjustment operation on the target fitting node on the node editing interface, determine the target fitting corresponding to the adjustment operation.

[0048] The adjustment operation here can be performed by the user dragging and dropping the target pipe fitting from the fitting library, or by selecting the target pipe fitting from the pipeline model to delete it or replace it. Therefore, the target pipe fitting corresponding to the adjustment operation can be determined based on the user's adjustment operation.

[0049] Step S7022: Based on the first position of the target pipe fitting on the node editing interface, determine the associated pipe fittings that are associated with the target pipe fitting.

[0050] The first position of the target pipe in the node editing interface can be its current location. Associated pipes here can be pipes that are related to the target pipe. For example, when inserting a target pipe into the pipeline model, the associated pipe can be the one with the smallest distance to the target pipe and the most likely connection. When deleting or replacing a target pipe in the pipeline model, the associated pipe can be a pipe that is already connected to the target pipe. Thus, the number of associated pipes can be one or more, depending on the specific situation.

[0051] Step S7023: Adjust the target pipe fitting according to the relationship between the target pipe fitting and the associated pipe fitting to obtain the adjusted target pipeline model.

[0052] When inserting a target pipe into the pipeline model, the relationship between the target pipe and its associated pipes can be a logical connection; when deleting or replacing a target pipe from the pipeline model, the relationship between the target pipe and its associated pipes can be a direct connection.

[0053] In some optional implementations, step S7023 above includes:

[0054] Step a1: Obtain the second position of the associated pipe fitting on the node editing interface.

[0055] Step a2: Generate a connection marker between the first position and the second position.

[0056] Step a3: Generate connection lines according to the connection markings.

[0057] Step a4: Connect the target pipe and related pipes according to the connection line to obtain the adjusted target pipeline model.

[0058] The connection markings here are used to indicate that the connector with the connection marking in the target pipe fitting can be connected to the connector with the connection marking in the associated pipe fitting. Specifically, the connection markings can be made in a pre-defined identifier format. For example, the connectors in the target pipe fitting and the connectors in the associated pipe fitting can be marked in the form of circles. Of course, the connectors in the target pipe fitting and the connectors in the associated pipe fitting can also be marked in the form of rectangles. This application does not impose any limitations on this.

[0059] As a specific example, if there is a joint in the associated pipe fittings that is not connected to any other pipe fitting, and a joint in the target pipe fitting can be connected to this unconnected joint, then the target pipe fitting and the associated pipe fitting can be directly connected according to the connection route. If there is no unconnected joint in the associated pipe fittings, then the associated pipe fitting at the insertion position needs to be translated according to the length of the target pipe fitting or the position occupied by the target pipe fitting to obtain a blank insertion position. Then, the target pipe fitting is inserted into the pipe fitting model to obtain the adjusted target pipeline model.

[0060] A connection marker is generated between the target fitting and its associated fittings, indicating to the user which joints can be connected between them. The connection markers accurately generate connection lines for connecting the target and associated fittings. Following these lines, the target and associated fittings can be connected accurately and quickly, essentially inserting the target fitting into the pipeline model. This achieves an automatic snap-in effect for the target and associated fittings, further improving response speed and the efficiency of pipeline model design.

[0061] In some optional implementations, step S7023 above further includes:

[0062] Step b1: Determine the pipe type of the target pipe based on the relationship between the target pipe and related pipes.

[0063] Step b2: Replace the target pipe fitting with a replacement pipe fitting of the same type as the target pipe fitting to obtain the adjusted target pipeline model.

[0064] In a pipeline model, a pipe fitting has a specific function and purpose. When replacing a target pipe fitting in the pipeline model, to avoid altering its function and purpose, which could lead to design errors in the entire pipeline model, a replacement pipe fitting of the same type as the target fitting can be used. Here, the replacement pipe fitting is the one that replaces the target pipe fitting.

[0065] Based on the relationship between the target fitting and related fittings, the number of joints in the target fitting can be determined, and then the target type corresponding to the target fitting can be determined based on the number of joints in the target fitting.

[0066] Replacing the target pipe with a replacement pipe can maintain the functionality of the entire pipeline model, avoid design errors, and ensure the safety, design efficiency, and construction efficiency of the entire pipeline model.

[0067] In some optional implementations, step S7023 above further includes:

[0068] Step c1: Delete the target fitting.

[0069] Step c2 involves connecting the associated pipe fittings to the target pipe fitting to obtain the adjusted target pipeline model.

[0070] For example, if the target pipe fitting is a short pipe, with one end connected to the main pipe and the other end connected to an elbow, then after deleting the target pipe fitting, the main pipe can be directly connected to the elbow.

[0071] After deleting the target pipe fitting, directly connecting two or more related pipe fittings connected to the target pipe fitting can improve the design efficiency of the pipeline model and enhance the intelligence of the pipeline model design program. At the same time, it can also avoid the target pipe fitting's position being left blank, which would result in an incomplete pipeline model.

[0072] Step S703: Update the connection rules based on the adjustment operation to generate the target connection rules. For details, please refer to [link to relevant documentation]. Figure 2 Step S203 of the illustrated embodiment will not be described again here.

[0073] Step S704: Generate the model structure information corresponding to the target pipeline model according to the target connection rules.

[0074] Specifically, step S704 above includes:

[0075] Step S7041: Parse the target connection rules to obtain the three-dimensional model information in the target connection rules.

[0076] When the target pipeline model is a three-dimensional model, the target connection rules store the three-dimensional model information of the target pipeline model. For example, the target connection rules store the three-dimensional information of multiple pipe fittings and the three-dimensional connection relationships between the multiple pipe fittings.

[0077] Step S7042: Convert the 3D model information to obtain 2D model information.

[0078] For example, one can first determine the pipe fittings involved in the 3D model information and the 3D connection relationships between multiple pipe fittings; then determine the 2D information and 2D connection relationships of the aforementioned pipe fittings; and finally obtain the 2D model information based on the 2D information and 2D connection relationships between multiple pipe fittings.

[0079] Step S7043: Generate the two-dimensional model structure information corresponding to the target pipeline model according to the two-dimensional model information.

[0080] The structural information of the two-dimensional model can be a two-dimensional plan view, a two-dimensional isometric view, or a material list required for the construction of the target pipeline model, as shown above.

[0081] When the target pipeline model is a three-dimensional model, the three-dimensional model information can be obtained by parsing the target connection rules. Then, the three-dimensional model information can be converted to obtain the corresponding two-dimensional model information. Subsequently, the two-dimensional model information can be used to generate the two-dimensional model structure information corresponding to the target pipeline model. In this way, the target connection rules corresponding to the three-dimensional target pipeline model can be used to generate two-dimensional model structure information, and the two-dimensional and three-dimensional correspondences can be realized by the same connection rule. This further improves the reusability of the connection rules and the flexibility of pipeline model design.

[0082] The pipeline model generation method provided in this embodiment can accurately and efficiently determine associated pipelines based on the position of the target pipeline on the node editing interface; and then make corresponding adjustments to the target pipeline based on the relationship between the target pipeline and associated pipelines, which can quickly obtain the target pipeline model, improve response speed, and further enhance the user experience.

[0083] This embodiment provides a method for generating a pipeline model, which can be used in computer devices. Figure 8 This is a flowchart of a pipeline model generation method according to an embodiment of the present invention, such as... Figure 8 As shown, the process includes the following steps:

[0084] Step S801: Display the node editing interface corresponding to the pipeline model. The pipeline model has corresponding connection rules, which are stored based on a preset file. The pipeline model includes multiple pipe fitting nodes. For details, please refer to [link to relevant documentation]. Figure 2 Step S201 of the illustrated embodiment will not be described again here.

[0085] Step S802: In response to the adjustment operation on the target pipe fitting node in the node editing interface, the adjusted target pipeline model is obtained. For details, please refer to [link to details]. Figure 2 Step S202 of the illustrated embodiment will not be described again.

[0086] Step S803: Update the connection rules based on the adjustment operation to generate the target connection rules.

[0087] When a new target pipe fitting is added to the pipeline model, the connection relationship and pipe fitting information corresponding to the target pipe fitting in the target pipeline model need to be inserted into the connection rules. This saves the connection relationship corresponding to the target pipe fitting, and the target pipeline model corresponding to the target connection rule can be displayed again on the node editing interface based on the target connection rule.

[0088] Specifically, the above step S803 includes:

[0089] Step S8031: Obtain the component information corresponding to the target pipe fitting, and generate a new component rule according to the component information. The component information includes the cluster identifier, cluster type, and cluster name corresponding to the target pipe fitting. For the cluster identifier, cluster type, and cluster name, please refer to the foregoing, and will not be repeated here.

[0090] For example, if the target pipe fitting is a double-disk short pipe, its corresponding cluster identifier can be 14, the cluster type can be DN[DN], and the cluster name can be "double-disk short pipe". Thus, a new component rule such as <GFamilyItem id="7" itemType="14" familyName="double-disk short pipe" familyType="DN[DN]" / > can be obtained. Here, id is the component rule identifier corresponding to the new component rule as shown in the foregoing, and the value of id can be incremented automatically according to the maximum value of the id of the existing component rules in the connection rule. For example, when the component rule identifier id in the connection rule has reached 6, the component rule identifier id of this new component rule takes the value of 7.

[0091] Step S8032: Obtain the routing information corresponding to the target pipe fitting, and generate a new routing rule according to the routing information. The routing information includes the routing type information, component rule identifier, target joint index, target docking routing identifier, and target docking joint index of the target pipe fitting. For the routing type information, component rule identifier, target joint index, target docking routing identifier, and target docking joint index, please refer to the foregoing, and will not be repeated here.

[0092] Continuing with the previous example, when the target pipe fitting is a double-disk short pipe, its corresponding routing type information can be 9, the component rule identifier can be 7, the target joint index can be 0, the target docking routing identifier can be 0, and the target docking joint index can be 0. Thus, a new routing rule such as <GRoute id="9" routeType="10" familyItemId="7" connector="0" toItem="0" toConnector="0" / > can be obtained. Here, id is the routing rule identifier corresponding to the new routing rule as shown in the foregoing, and the value of id can be incremented automatically according to the maximum value of the id of the existing routing rules in the connection rule. For example, when the routing rule identifier id in the connection rule has reached 8, the component rule identifier id of this new routing rule can take the value of 9.

[0093] Step S8033: Update the connection rule according to the new component rule and the new routing rule, and generate the target connection rule.

[0094] After obtaining the new component rules and the new routing rules, you can insert them into the connection rules to obtain the target connection rules.

[0095] By generating new component rules using the component information corresponding to the target pipe fitting and new routing rules using the routing information corresponding to the target pipe fitting, the connection relationship of the target pipe fitting can be determined relatively accurately. Updating the connection rules based on the new component rules and new routing rules is equivalent to adding the pipe fitting information and connection relationship corresponding to the target pipe fitting to the connection rules, thus obtaining the target connection rules.

[0096] In some optional implementations, step S8033 above includes:

[0097] Step d1 involves inserting the new component rule and the new routing rule into the connection rule, and updating multiple routing rules in the connection rule according to the new routing rule to obtain the target connection rule.

[0098] Since the routing information (i.e. connection information) of the associated pipes (i.e. pipes directly connected to the target pipe) also changes after the target pipe is added to the pipeline model, it is necessary to use the newly added routing rules to update multiple routing rules in the connection rules so that the model structure information of the target pipeline model can be generated based on the target connection rules in the future.

[0099] In some optional implementations, updating multiple routing rules in the connection rules according to the newly added routing rule to obtain the target connection rule includes: traversing multiple routing rules to obtain the current routing rule and the current docking route identifier and the current docking connector index corresponding to the current routing rule; if the current docking route identifier is the same as the target docking route identifier and the current docking connector index is the same as the target docking connector index, then updating the current docking route identifier in the current routing rule to the newly added routing rule identifier corresponding to the newly added routing rule and updating the current docking connector index to the target opposite connector index of the target fitting.

[0100] For example, iterate through `GRoutes` and check if the current docking route identifier `toItem` in the current routing rule is the same as the target docking route identifier `toItem` in the new routing rule, and if the current docking connector index `toConnector` in the current routing rule is the same as the target docking connector index `toConnector` in the new routing rule. If both are the same, update the `toItem` of the current routing rule to the new routing rule identifier `id`, and update the `toConnector` of the current routing rule to the target connector index `nAnotherConnectorIndex` of the target fitting in the new routing rule, where the target connector index is the index of the connector opposite to the target connector index of the target fitting.

[0101] By updating the current docking route identifier in the current routing rule to the new routing rule identifier corresponding to the new routing rule, and updating the current docking connector index to the target opposite connector index corresponding to the target pipe fitting, multiple routing rules in the connection rules can be accurately updated using the new routing rule. This further ensures that the target connection rule can accurately store the connection order and pipe fitting information of each pipe fitting in the target pipe fitting model.

[0102] In some optional implementations, the method further includes: if the current route identifier is different from the target docking route identifier, and / or the current docking connector index is different from the target docking connector index, then determining whether the current route rule identifier corresponding to the current route rule is the same as the target docking route identifier and whether the current connector index of the current route rule is the same as the target docking connector index; if the current route rule identifier is the same as the target docking route identifier and the current connector index is the same as the target docking connector index, then updating the target connector index of the newly added route rule to the target peer connector index, updating the target docking route identifier to the current docking route identifier, updating the target docking connector index to the current docking connector index, updating the current docking route identifier in the current route rule to the newly added route rule identifier, and updating the current docking connector index to the target peer connector index.

[0103] For example, if the current route identifier is different from the target docking route identifier, and / or the current docking connector index is different from the target docking connector index, then it is determined whether the current route rule identifier id corresponding to the current route rule is the same as the target docking route identifier toItem, and whether the current connector index connector of the current route rule is the same as the target docking connector index toConnector in the newly added route rule. If both are the same, then the target connector index connector in the newly added route rule is updated to the target counterpart connector index nAnotherConnectorIndex, the target docking route identifier toItem in the newly added route rule is updated to the current docking route identifier toItem in the current route rule, the target docking connector index toConnector in the newly added route rule is updated to the current docking connector index toConnector in the current route rule, the current docking route identifier toItem in the current route rule is updated to the newly added route rule identifier id in the newly added route rule, and the current docking connector index toConnector in the current previous route rule is set to the target counterpart connector index nAnotherConnectorIndex of the target fitting.

[0104] The new routing rule updates the target connector index to the target peer connector index, the target docking route identifier to the current docking route identifier, the target docking connector index to the current docking connector index, updates the current docking route identifier in the current routing rule to the new routing rule identifier, and updates the current docking connector index to the target peer connector index. This comprehensively updates multiple routing rules, further ensuring that the target connection rule can accurately store the connection order and pipe information of each pipe in the target pipe model.

[0105] Routing rules define the connection relationships of a pipe fitting, that is, which pipe fitting it connects to. Component rules define the pipe fitting information, such as its name and diameter. If an existing pipe fitting in the pipeline model is replaced using a target pipe fitting, then the routing and component information of the original pipe fitting must be replaced with the routing and component information of the target pipe fitting so that the target connection relationship stores the routing and component information corresponding to the target pipe fitting.

[0106] In some optional implementations, when replacing an existing pipe fitting in the pipeline model using a target pipe fitting, the connection rules are updated based on the adjustment operation to generate target connection rules. This includes: determining the original routing rules and original component rules corresponding to the original pipe fitting from the connection rules; replacing the original cluster identifier in the original component rules with the cluster identifier of the target pipe fitting, replacing the original cluster name in the original component rules with the cluster name of the target pipe fitting, and replacing the original cluster type in the original component rules with the cluster type of the target pipe fitting, to obtain target component rules; replacing the original joint index in the original routing rules with the target joint index corresponding to the target pipe fitting, replacing the original docking route identifier in the original routing rules with the target docking route identifier corresponding to the target pipe fitting, and replacing the original docking joint index in the original routing rules with the target docking joint index of the target pipe fitting, to obtain target routing rules; and updating the connection rules according to the target component rules and target routing rules to generate target connection rules.

[0107] After obtaining the target component rules and the target routing rules, the connection rules that contain the target component rules and the target routing rules are called the target connection rules.

[0108] As a specific example, when replacing the original pipe fittings in the pipeline model using the target pipe fitting, new component rules can be generated using the component information of the target pipe fitting, and new routing rules can be generated using the routing information of the target pipe fitting. The original routing rules and original component rules corresponding to the original pipe fittings are set to disabled in the connection rules, and the new component rules and new routing rules are then inserted into the connection rules, thereby updating the connection rules and generating the target connection rules.

[0109] It should be understood that after updating the connection rules to generate target connection rules based on target component rules and target routing rules, other routing rules in the connection rules can be further calibrated and updated according to the actual situation using the target routing rules, in order to avoid incorrect connection order between various pipes stored in the target connection rules, which would prevent the target pipeline model from being generated again using the target connection rules.

[0110] By replacing the routing and component information of the original pipe fitting with the routing and component information of the target pipe fitting, the connection rules can be updated and the target connection rules can be generated with minimal adjustments, thus improving the efficiency of updating the target connection rules.

[0111] In some optional implementations, when a target fitting is deleted from the pipeline model, the connection rules are updated based on the adjustment operation to generate target connection rules, including: querying the target routing rules and target component rules corresponding to the target fitting from the connection rules; deleting the target routing rules and target component rules from the connection rules to obtain the target connection rules.

[0112] As a specific example, when deleting a target pipe from the pipeline model, the status of the target routing rule and the target component rule corresponding to the target pipe can be directly set to disabled, thereby achieving the effect of deleting the target routing rule and the target component rule from the connection rules.

[0113] It should be understood that after the target component rules and target routing rules are generated from the connection rules, other routing rules can be further calibrated and updated according to the actual situation to avoid incorrect connection order between various pipes stored in the target connection rules, which would prevent the target pipeline model from being generated again using the target connection rules.

[0114] Step S804: Generate the model structure information corresponding to the target pipeline model according to the target connection rules. For details, please refer to [link to relevant documentation]. Figure 2 Step S204 of the illustrated embodiment will not be described again.

[0115] The pipeline model generation method provided in this embodiment updates the connection rules based on the adjustment operation, so that the target connection rules store the latest connection rules corresponding to the target pipeline model. Subsequently, the model structure information corresponding to the target pipeline model can be generated accurately and efficiently based on the target connection rules.

[0116] In some optional implementations, the generation of the pipeline model includes: displaying a node layout interface; in response to a trigger operation on the node layout interface for the pipeline model, obtaining node parameter information corresponding to the pipeline model; determining the connection rules corresponding to the pipeline model based on the node parameter information; and generating the pipeline model based on the connection rules.

[0117] The node parameter information here can be related to parameters of complex nodes. For example, taking a fire hydrant as an example, when a user selects a pipeline model on the node layout interface, they can obtain information such as the fire hydrant type, fire hydrant rules, whether there is a drain outlet, valve well material, and the distance between the valve well and the hydrant body. After obtaining the node parameter information, it can be assigned to the connection rule template to obtain the connection rules.

[0118] The node layout interface allows users to set common formats for various types of pipeline models and display the selected pipeline model on the node editing interface based on user triggers. This allows users to start designing and adjusting based on the pipeline model, rather than starting from scratch, which improves design efficiency and further ensures a better user experience.

[0119] In some optional implementations, generating a pipeline model based on connection rules includes: determining the connection direction of each pipeline based on the medium flow direction; determining the connection start point of each pipe fitting based on the connection direction; sequentially creating multiple pipe fitting nodes according to multiple construction rules in the connection rules; and sequentially connecting each pipe fitting node from the connection start point according to multiple routing rules in the connection rules to generate a pipeline model. It should be understood that if the process of generating the corresponding target connection model using target connection rules is the same as the above steps, it will not be repeated here.

[0120] Since the connection rules store component rules and routing rules, multiple component rules can be used to create multiple pipe nodes, and multiple routing rules can be used to connect each pipe node sequentially from the pipe connection starting point to generate a pipeline model. This achieves relatively efficient and fast pipeline model generation.

[0121] As a specific example, such as Figure 9 As shown, the process of generating a pipeline model may include steps S901 to S917.

[0122] Step S901: Select the pipeline model.

[0123] Step S902: Obtain node parameter information.

[0124] Step S903: Match the connection rule template according to the pipeline model selected by the user.

[0125] Step S904: Assign node parameter information to the connection rule template.

[0126] Step S905: Traverse multiple routing rules starting from Index=0.

[0127] Step S906: Determine if the Index is less than the total number of routing rules. If the Index is less than the total number of routing rules, proceed to steps S907 to S915; if the Index is greater than or equal to the total number of routing rules, proceed to steps S916 to S917.

[0128] Step S907: Determine whether the routing rule corresponding to the Index has been generated. If the routing rule corresponding to the Index is effective, proceed to steps S909 to S915; if the routing rule corresponding to the Index is not effective, proceed to step S908.

[0129] Step S908, Index++.

[0130] Step S909: Determine whether this routing rule is the first routing rule. If it is the first routing rule, execute steps S911 to S915; if it is not the first routing rule, execute steps S910, S912 to S915.

[0131] Step S910: Obtain the pipe fitting connection point.

[0132] Step S911: Obtain the position, diameter, and orientation of the previous pipe fitting.

[0133] Step S912: Obtain the type of the generated pipeline model. If the type of the generated pipeline model is three-dimensional, proceed to step S914; if the type of the generated pipeline model is two-dimensional, proceed to step S913.

[0134] Step S913: Create a two-dimensional pipe fitting.

[0135] Step S914: Create a 3D pipe fitting.

[0136] Step S915: Save the fitting and proceed to step S908.

[0137] Step S916: Obtain the models of all created pipe fittings, and connect each pipe fitting node sequentially from the pipe fitting connection start point to generate the pipeline model.

[0138] Step S917: Update the center of the pipeline model to the specified center position.

[0139] In some optional implementations, the node editing interface includes an update connection rule control and an update same type node control. The method further includes: in response to a trigger operation on the update connection rule control, updating the target connection rule to the rule base where the connection rule is located; in response to a trigger operation on the update same type node control, obtaining other models of the same type as the pipeline model, and using the pipeline model to update the other models.

[0140] This update places the target join rule in the rule library where the join rule resides. Subsequent times, when opening the target pipeline model corresponding to the target join rule, the target join rule can be used to generate the target pipeline model. Conversely, if the target join rule is not updated in the rule library, the target pipeline model will not be displayed in the node editing interface the next time.

[0141] This approach uses the pipeline model to update other models, eliminating the need for users to perform the same operations on other models and thus further improving design efficiency.

[0142] By updating the target join rule to the rule base where the join rule is located, the user efficiency can be improved and the user experience can be further enhanced. This allows the target join rule to be used to generate the target pipeline model and to update other models using the pipeline model.

[0143] This embodiment also provides a pipeline model generation apparatus for implementing the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0144] This embodiment provides a pipeline model generation device, such as... Figure 10 As shown, it includes:

[0145] Display module 1001 is used to display the node editing interface corresponding to the pipeline model. The pipeline model has corresponding connection rules, which are stored based on a preset file. The pipeline model includes multiple pipe nodes.

[0146] The adjustment module 1002 is used to respond to the adjustment operation on the target pipe node on the node editing interface to obtain the adjusted target pipeline model.

[0147] The first update module 1003 is used to update the connection rules based on the adjustment operation and generate the target connection rules.

[0148] The generation module 1004 is used to generate the model structure information corresponding to the target pipeline model according to the target connection rules.

[0149] In some optional implementations, the generation module 1004 is further configured to, when the target pipeline model is a three-dimensional model, parse the target connection rules to obtain the three-dimensional model information in the target connection rules; convert the three-dimensional model information to obtain two-dimensional model information; and generate the two-dimensional model structure information corresponding to the target pipeline model according to the two-dimensional model information.

[0150] In some optional implementations, the adjustment module 1002 is further configured to, in response to an adjustment operation on a target pipe node on the node editing interface, determine the target pipe corresponding to the adjustment operation; determine the associated pipe associated with the target pipe based on the first position of the target pipe on the node editing interface; and adjust the target pipe based on the association relationship between the target pipe and the associated pipe to obtain the adjusted target pipeline model.

[0151] In some optional implementations, the adjustment module 1002 is also used to obtain the second position of the associated pipe fitting on the node editing interface; generate a connection mark between the first position and the second position; generate a connection line according to the connection mark; and connect the target pipe fitting and the associated pipe fitting according to the connection line to obtain the adjusted target pipeline model.

[0152] In some optional implementations, the adjustment module 1002 is further configured to determine the pipe type of the target pipe according to the association relationship between the target pipe and the associated pipe; and replace the target pipe with a replacement pipe of the same type as the target pipe to obtain the adjusted target pipeline model.

[0153] In some optional implementations, the adjustment module 1002 is also used to delete the target pipe fitting; and to connect the associated pipe fittings associated with the target pipe fitting to each other to obtain the adjusted target pipeline model.

[0154] In some optional implementations, the first update module 1003 is further configured to obtain component information corresponding to the target pipe fitting, generate new component rules based on the component information, the component information including the cluster identifier, cluster type and cluster name corresponding to the target pipe fitting; obtain routing information corresponding to the target pipe fitting, generate new routing rules based on the routing information, the routing information including the routing type information of the target pipe fitting, component rule identifier, target connector index, target docking route identifier and target docking connector index; update the connection rules based on the new component rules and the new routing rules, and generate target connection rules.

[0155] In some optional implementations, the first update module 1003 is further configured to insert the newly added component rules and the newly added routing rules into the connection rules, and to update multiple routing rules in the connection rules according to the newly added routing rules to obtain the target connection rules.

[0156] In some optional implementations, the first update module 1003 is further configured to traverse multiple routing rules, obtain the current routing rule and the current docking route identifier and the current docking connector index corresponding to the current routing rule; if the current docking route identifier is the same as the target docking route identifier and the current docking connector index is the same as the target docking connector index, then the current docking route identifier in the current routing rule is updated to the new routing rule identifier corresponding to the new routing rule and the current docking connector index is updated to the target opposite connector index of the target pipe fitting.

[0157] In some optional embodiments, the device further includes a second update module, which is further configured to determine whether the current routing rule identifier corresponding to the current routing rule is the same as the target docking route identifier and whether the current connector index of the current routing rule is the same as the target docking connector index if the current routing identifier is different from the target docking route identifier and / or the current docking connector index is different from the target docking connector index; if the current routing rule identifier is the same as the target docking route identifier and the current connector index is the same as the target docking connector index, then update the target connector index of the newly added routing rule to the target counterpart connector index, update the target docking route identifier to the current docking route identifier, update the target docking connector index to the current docking connector index, update the current docking route identifier in the current routing rule to the newly added routing rule identifier, and update the current docking connector index to the target counterpart connector index.

[0158] In some optional implementations, the first update module 1003 is further configured to determine the original routing rules and original component rules corresponding to the original pipe fittings from the connection rules; replace the original cluster identifier in the original component rules with the cluster identifier of the target pipe fitting, replace the original cluster name in the original component rules with the cluster name of the target pipe fitting, and replace the original cluster type in the original component rules with the cluster type of the target pipe fitting to obtain the target component rule; replace the original connector index in the original routing rules with the target connector index corresponding to the target pipe fitting, replace the original docking route identifier in the original routing rules with the target docking route identifier corresponding to the target pipe fitting, and replace the original docking connector index in the original routing rules with the target docking connector index of the target pipe fitting to obtain the target routing rule; and update the connection rules according to the target component rule and the target routing rule to generate the target connection rule.

[0159] In some optional implementations, the first update module 1003 is further configured to query the target routing rule and target component rule corresponding to the target pipe fitting from the connection rules when the target pipe fitting is deleted from the pipeline model; delete the target routing rule and target component rule from the connection rules to obtain the target connection rule.

[0160] In some optional implementations, the generation of the pipeline model includes: displaying a node layout interface; in response to a trigger operation on the node layout interface for the pipeline model, obtaining node parameter information corresponding to the pipeline model; determining the connection rules corresponding to the pipeline model based on the node parameter information; and generating the pipeline model based on the connection rules.

[0161] In some optional implementations, the connection direction of each pipe is determined based on the medium flow direction of each pipe; the connection starting point of the pipe fitting is determined based on the connection direction; multiple pipe fitting nodes are created sequentially according to multiple construction rules in the connection rules; and each pipe fitting node is connected sequentially from the connection starting point according to multiple routing rules in the connection rules to generate a pipeline model.

[0162] In some optional embodiments, the device further includes a third update module and a fourth update module, wherein the third update module is used to update the target connection rule to the rule base where the connection rule is located in response to a trigger operation on the update connection rule control; and the fourth update module is used to obtain other models of the same type as the pipeline model in response to a trigger operation on the update node control of the same type, and use the pipeline model to update the other models.

[0163] Further functional descriptions of the above modules and units are the same as those in the corresponding embodiments described above, and will not be repeated here.

[0164] In this embodiment, the pipeline model generation device is presented in the form of functional units. Here, a unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that execute one or more software or fixed programs, and / or other devices that can provide the above functions.

[0165] This invention also provides a computer device having the above-described features. Figure 11 The apparatus for generating the pipeline model shown. Please refer to [link / reference]. Figure 11 , Figure 11 This is a schematic diagram of the structure of a computer device provided in an optional embodiment of the present invention, such as... Figure 11As shown, the computer device includes one or more processors 1110, memory 1120, and interfaces for connecting the components, including high-speed interfaces and low-speed interfaces. The components communicate with each other via different buses and can be mounted on a common motherboard or otherwise installed as needed. The processors can process instructions executed within the computer device, including instructions stored in or on memory to display graphical information of a GUI on external input / output devices (such as display devices coupled to the interfaces). In some alternative implementations, multiple processors and / or multiple buses can be used with multiple memories and multiple memory modules, if desired. Similarly, multiple computer devices can be connected, each providing some of the necessary operations (e.g., as a server array, a group of blade servers, or a multiprocessor system). Figure 11 Take the 1110 processor as an example.

[0166] Processor 1110 may be a central processing unit, a network processor, or a combination thereof. Processor 1110 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The programmable logic device may be a complex programmable logic device (CAMP), a field-programmable gate array (FPGA), a general-purpose array logic (GDA), or any combination thereof.

[0167] The memory 1120 stores instructions executable by at least one processor 1110 to cause the at least one processor 1110 to perform the method shown in the above embodiments.

[0168] The memory 1120 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created based on the use of the computer device. Furthermore, the memory 1120 may include high-speed random access memory and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some alternative embodiments, the memory 1120 may optionally include memory remotely located relative to the processor 1110, and these remote memories may be connected to the computer device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

[0169] Memory 1120 may include volatile memory, such as random access memory; memory may also include non-volatile memory, such as flash memory, hard disk or solid-state drive; memory 20 may also include combinations of the above types of memory.

[0170] The computer device also includes an input device 1130 and an output device 1140. The processor 1110, memory 1120, input device 1130, and output device 1140 can be connected via a bus or other means. Figure 11 Taking the example of a connection between China and Israel via a bus.

[0171] Input device 1130 can receive input numerical or character information, and generate key signal inputs related to user settings and function control of the computer device, such as a touchscreen, keypad, mouse, trackpad, touchpad, joystick, one or more mouse buttons, trackball, joystick, etc. Output device 1140 may include display devices, auxiliary lighting devices (e.g., LEDs), and haptic feedback devices (e.g., vibration motors). The aforementioned display devices include, but are not limited to, liquid crystal displays, light-emitting diodes, displays, and plasma displays. In some alternative embodiments, the display device may be a touchscreen.

[0172] This invention also provides a computer-readable storage medium. The methods described above according to embodiments of the invention can be implemented in hardware or firmware, or implemented as computer code that can be recorded on a storage medium, or implemented as computer code downloaded via a network and originally stored on a remote storage medium or a non-transitory machine-readable storage medium and then stored on a local storage medium. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium can be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium can also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code, which, when accessed and executed by the computer, processor, or hardware, implements the methods shown in the above embodiments.

[0173] A portion of this invention can be applied as a computer program product, such as computer program instructions, which, when executed by a computer, can invoke or provide the methods and / or technical solutions according to the invention through the operation of the computer. Those skilled in the art will understand that the forms in which computer program instructions exist in a computer-readable medium include, but are not limited to, source files, executable files, installation package files, etc. Correspondingly, the ways in which computer program instructions are executed by a computer include, but are not limited to: the computer directly executing the instructions, or the computer compiling the instructions and then executing the corresponding compiled program, or the computer reading and executing the instructions, or the computer reading and installing the instructions and then executing the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to a computer.

[0174] Although embodiments of the invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations all fall within the scope defined by the appended claims.

Claims

1. A method for generating a pipeline model, characterized in that, include: The display shows the node editing interface corresponding to the pipeline model. The pipeline model has corresponding connection rules, which are stored based on a preset file. The pipeline model includes multiple pipe fitting nodes. In response to the adjustment operation on the target pipe node on the node editing interface, the adjusted target pipeline model is obtained; The connection rules are updated based on the adjustment operation to generate target connection rules; According to the target connection rules, generate the model structure information corresponding to the target pipeline model.

2. The method according to claim 1, characterized in that, When the target pipeline model is a three-dimensional model, generating the model structure information corresponding to the target pipeline model according to the target connection rules includes: The target connection rule is parsed to obtain the three-dimensional model information in the target connection rule; The three-dimensional model information is converted to obtain two-dimensional model information; Based on the two-dimensional model information, generate the two-dimensional model structure information corresponding to the target pipeline model.

3. The method according to claim 1, characterized in that, The response to the adjustment operation on the target pipe node in the node editing interface, to obtain the adjusted target pipeline model, includes: In response to an adjustment operation on the target pipe node in the node editing interface, the target pipe corresponding to the adjustment operation is determined; Based on the first position of the target pipe fitting on the node editing interface, determine the associated pipe fitting that is associated with the target pipe fitting; Based on the relationship between the target pipe fitting and the associated pipe fitting, the target pipe fitting is adjusted to obtain the adjusted target pipeline model.

4. The method according to claim 3, characterized in that, The step of adjusting the target pipe fitting based on the association relationship between the target pipe fitting and the associated pipe fitting to obtain the adjusted target pipeline model includes: Obtain the second position of the associated pipe fitting on the node editing interface; Generate a connection marker between the first position and the second position; Generate connection lines according to the connection markings; The target pipe and associated pipe are connected according to the connection line to obtain the adjusted target pipeline model.

5. The method according to claim 3, characterized in that, The step of adjusting the target pipe fitting based on the association relationship between the target pipe fitting and the associated pipe fitting to obtain the adjusted target pipeline model includes: The pipe type of the target pipe is determined based on the relationship between the target pipe and the associated pipe. The target pipe fitting is replaced with a replacement pipe fitting of the same type as the target pipe fitting to obtain the adjusted target pipeline model.

6. The method according to claim 3, characterized in that, Based on the association relationship between the target pipe fitting and the associated pipe fittings, the target pipe fitting is adjusted to obtain the adjusted target pipeline model, including: Delete the target fitting; The associated pipe fittings are connected to each other to obtain the adjusted target pipeline model.

7. The method according to claim 1, characterized in that, When a target pipe fitting is added to the pipeline model, updating the connection rules based on the adjustment operation to generate target connection rules includes: Obtain the component information corresponding to the target pipe fitting, and generate a new component rule based on the component information. The component information includes the cluster identifier, cluster type, and cluster name corresponding to the target pipe fitting. Obtain the routing information corresponding to the target pipe fitting, and generate a new routing rule based on the routing information. The routing information includes the routing type information of the target pipe fitting, the component rule identifier, the target connector index, the target docking route identifier, and the target docking connector index. The connection rules are updated based on the newly added component rules and the newly added routing rules to generate the target connection rules.

8. The method according to claim 7, characterized in that, The step of updating the connection rules based on the newly added component rules and the newly added routing rules to generate the target connection rules includes: The newly added component rule and the newly added routing rule are inserted into the connection rule, and multiple routing rules in the connection rule are updated according to the newly added routing rule to obtain the target connection rule.

9. The method according to claim 8, characterized in that, The step of updating multiple routing rules in the connection rules according to the newly added routing rule to obtain the target connection rule includes: The multiple routing rules are traversed to obtain the current routing rule, as well as the current docking route identifier and the current docking connector index corresponding to the current routing rule; If the current docking route identifier is the same as the target docking route identifier and the current docking connector index is the same as the target docking connector index, then the current docking route identifier in the current routing rule is updated to the new routing rule identifier corresponding to the new routing rule, and the current docking connector index is updated to the target opposite connector index of the target pipe fitting.

10. The method according to claim 9, characterized in that, The method further includes: If the current route identifier is not the same as the target docking route identifier, and / or the current docking connector index is not the same as the target docking connector index, then determine whether the current route rule identifier corresponding to the current route rule is the same as the target docking route identifier and whether the current connector index of the current route rule is the same as the target docking connector index. If the current routing identifier rule identifier is the same as the target docking route identifier and the current connector index is the same as the target docking connector index, then the target connector index of the newly added routing rule is updated to the target counterpart connector index, the target docking route identifier is updated to the current docking route identifier, the target docking connector index is updated to the current docking connector index, the current docking route identifier in the current routing rule is updated to the newly added routing rule identifier, and the current docking connector index is updated to the target counterpart connector index.

11. The method according to claim 1, characterized in that, When the target pipe fitting replaces an existing pipe fitting in the pipeline model, the process of updating the connection rules based on the adjustment operation to generate target connection rules includes: The original routing rules and original component rules corresponding to the original pipe fittings are determined from the connection rules. The original cluster identifier in the original component rule is replaced by the cluster identifier of the target pipe fitting, the original cluster name in the original component rule is replaced by the cluster name of the target pipe fitting, and the original cluster type in the original component rule is replaced by the cluster type of the target pipe fitting, to obtain the target component rule. The target routing rule is obtained by replacing the original connector index in the original routing rule with the target connector index corresponding to the target pipe fitting, replacing the original docking route identifier in the original routing rule with the target docking route identifier corresponding to the target pipe fitting, and replacing the original docking connector index in the original routing rule with the target docking connector index of the target pipe fitting. The connection rules are updated based on the target component rules and the target routing rules to generate the target connection rules.

12. The method according to claim 1, characterized in that, When the target pipe fitting is deleted from the pipeline model, the process of updating the connection rules based on the adjustment operation to generate target connection rules includes: Query the target routing rule and target component rule corresponding to the target pipe fitting from the connection rules; The target routing rule and the target component rule are deleted from the connection rules to obtain the target connection rule.

13. The method according to any one of claims 1 to 12, characterized in that, The generation of the pipeline model includes: Display node layout interface; In response to a trigger operation on the pipeline model on the node layout interface, obtain the node parameter information corresponding to the pipeline model; The connection rules corresponding to the pipeline model are determined based on the node parameter information; The pipeline model is generated based on the connection rules.

14. The method according to claim 13, characterized in that, The step of generating the pipeline model according to the connection rules includes: Based on the flow direction of the medium in each pipe, determine the connection direction of each pipe; The starting point for pipe fitting connection is determined based on the connection direction; Based on the multiple construction rules in the connection rules, multiple pipe nodes are created sequentially; Based on the multiple routing rules in the connection rules, each pipe node is connected sequentially starting from the pipe connection origin to generate the pipeline model.

15. The method according to any one of claims 1 to 12, characterized in that, The node editing interface includes an update connection rule control and an update same-type node control; the method further includes: In response to a trigger operation on the update connection rule control, the target connection rule is updated to the rule base where the connection rule is located; In response to a trigger operation on the same type of node control being updated, another model of the same type as the pipeline model is obtained, and the other model is updated using the pipeline model.

16. A computer program product, characterized in that, Includes computer instructions for causing a computer to perform the pipeline model generation method according to any one of claims 1 to 15.