Building riser model generation method, device and equipment and storage medium
By generating the method of building a building riser model, the guidance information and attribute information of the pipelines are used to solve the problem of lack of dependence and connection relationships in the existing technology, and the efficiency and accuracy of pipeline design are improved.
Patent Information
- Application Number
- CN202411624861.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-14
- Publication Date
- 2025-01-28
AI Technical Summary
In existing building digital projects, the pipeline model generation method relies on accurate engineering drawings, and it is easy to lose the true connection relationship of the equipment, resulting in the disconnection of the pipeline relationship.
By determining the guidance information of the pipe parts of the current page target connection point, generate the target connection pipeline, and combine the attribute information of the pipeline to generate a building riser model to reduce the dependence on drawing materials.
It improves the efficiency and accuracy of pipeline design, reduces the deviation of artificial design, reduces the cost of construction and material, and improves the accuracy of delivery.
Smart Images

Figure CN119378171A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of building digital engineering, and in particular to a method, device, equipment and storage medium for generating a building riser model. Background Art
[0002] In recent years, the digitalization wave in all walks of life has been in full swing. Practice has proved that the application of software engineering technology to digitize buildings can greatly improve the efficiency of building asset management, business management, equipment and facility management and other fields.
[0003] Building digitalization projects include building information such as civil structure object information, electromechanical equipment object information, and relationships between objects. Among the electromechanical equipment object information, pipe network information is a key part. Pipe network refers to equipment and facilities that complete the distribution of cold and heat energy or fluid resources in buildings. It has important functions, huge numbers, complex structures, and spans multiple floors. It is the focus and difficulty of building digitalization.
[0004] At present, the digitalization scheme of pipeline networks in the industry focuses on modeling. Modeling engineers often refer to engineering drawings and use professional modeling software to build pipeline model data. There are two problems with the existing method: 1. The real connection relationship of the equipment is often missing in the model, and the connection relationship between the two objects is lost, resulting in the disconnection of the pipeline relationship. 2. Accurate engineering drawing data is required for modeling. If the drawings are missing or inaccurate, the work will be very difficult. Summary of the invention
[0005] The present invention provides a method, device, equipment and storage medium for generating a building riser model, which reduces the dependence on drawing materials, has high accuracy and few dependent conditions, and greatly improves the adaptability and efficiency of digital delivery.
[0006] According to one aspect of the present invention, a method for generating a building riser model is provided, the method comprising:
[0007] Determine the current pipe guide information of the target connection point of the current page, and determine the target assembly type according to the current pipe guide information, wherein the pipe guide information includes pipe connection information;
[0008] Generate a target connection pipe fitting at a target connection point according to the target assembly type, generate next pipe fitting guidance information according to the target connection pipe fitting, and generate an initial pipeline sketch based on the current page when a preset end condition is met;
[0009] The pipe fitting attribute information is obtained and combined with the initial pipe sketch to generate a building riser model, wherein the pipe fitting attribute information includes a pipe style and a pipe size.
[0010] Optionally, the pipe connection information includes the pipe connection direction and the pipe connection type, and the target assembly type is determined based on the current pipe connection guidance information, including: when the pipe connection type is a line segment, determining whether the pipe connection direction is horizontal, and if so, displaying a first list of assembly parts to be selected to obtain the target assembly type; otherwise, displaying a second list of assembly parts to be selected to obtain the target assembly type.
[0011] Optionally, the target assembly type is determined based on the current pipe guidance information, including: when the pipe connection type is ray, determining whether the pipe connection direction is horizontal, and if so, displaying a third list of candidate assemblies to obtain the target assembly type; otherwise, determining the ray direction, and determining the target assembly type based on the ray direction.
[0012] Optionally, determining the target assembly type based on the ray direction includes: determining whether the ray direction is the positive direction of the vertical axis, and if so, displaying a fourth list of assemblies to be selected to obtain the target assembly type; otherwise, displaying a fifth list of assemblies to be selected to obtain the target assembly type.
[0013] Optionally, the pipe guide information also includes custom information, and the target assembly type is determined according to the current pipe guide information, including: when the current pipe guide information is custom information, directly using the custom information as the target assembly type.
[0014] Optionally, the next pipe fitting guidance information is generated according to the target connected pipe fitting, including: taking each pipe opening of the target connected pipe fitting as the target pipe opening in turn; determining the pipe opening connection status of the target pipe opening, wherein the pipe opening connection status includes pipe fitting connection and no pipe fitting connection; generating the next pipe fitting guidance information based on the pipe opening connection status, wherein the next pipe fitting guidance information is used to indicate the next connection point.
[0015] Optionally, the method also includes: obtaining an adjustment position, determining a pipe position situation corresponding to the adjustment position, wherein the pipe position situation includes a situation where the pipe is placed in the air and a situation where the pipe is connected to an intersecting line segment; determining alternative adjustment functions corresponding to the pipe position situation, wherein the alternative adjustment functions include arbitrary movement, rotation, directional movement, and no adjustment allowed; displaying the alternative adjustment functions to obtain a target adjustment function; and adjusting the initial pipeline sketch based on the target adjustment function.
[0016] Optionally, after generating the initial pipeline sketch based on the next pipe fitting guidance information, the method further includes: determining each target line segment and each target ray in the initial pipeline sketch; adding conventional valves based on the target line segments, and adding end valves based on the target rays.
[0017] According to another aspect of the present invention, a device for generating a building riser model is provided, the device comprising:
[0018] A target assembly type determination module is used to determine the current pipe guide information of the target connection point of the current page, and determine the target assembly type according to the current pipe guide information, wherein the pipe guide information includes pipe connection information;
[0019] A target connection pipe fitting generation module is used to generate a target connection pipe fitting at a target connection point according to the target assembly type, generate next pipe fitting guidance information according to the target connection pipe fitting, and generate an initial pipeline sketch based on the current page when a preset end condition is met;
[0020] The building riser model generation module is used to obtain pipe attribute information and combine the pipe attribute information with the initial pipeline sketch to generate a building riser model, wherein the pipe attribute information includes pipeline style and pipeline size.
[0021] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0022] at least one processor;
[0023] and a memory communicatively coupled to the at least one processor;
[0024] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute a method for generating a building riser model as described in any embodiment of the present invention.
[0025] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement a method for generating a building riser model according to any embodiment of the present invention when executed.
[0026] The technical solution of the embodiment of the present invention determines the target assembly type through the current pipe guidance information, which reduces the design time from scratch and improves the efficiency of pipeline design. By adjusting the initial pipeline sketch through the target adjustment function, the pipeline design can be optimized and the quality of the model can be improved. The standardized process and the generation and adjustment based on accurate information reduce the deviations in manual design, help reduce construction and material costs, and improve delivery accuracy. By customizing information and obtaining pipe attribute information, the building riser model is generated in combination with the initial pipeline sketch, which can better meet user needs, reduce the deviations in manual design, help reduce construction and material costs, and improve delivery accuracy.
[0027] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0029] Figure 1 is a flow chart of a method for generating a building riser model provided according to Embodiment 1 of the present invention;
[0030] Figure 2 is a flow chart of another method for generating a building riser model provided according to Embodiment 2 of the present invention;
[0031] Figure 3 is a structural schematic diagram of a building riser model generating device provided according to a third embodiment of the present invention;
[0032] Figure 4 The invention is a schematic structural diagram of an electronic device for implementing a method for generating a building riser model according to an embodiment of the present invention. DETAILED DESCRIPTION
[0033] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0034] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0035] Embodiment 1
[0036] Figure 1 A flowchart of a method for generating a building riser model is provided for the first embodiment of the present invention. This embodiment is applicable to the case of drawing a building riser model. The method can be executed by a building riser model generating device. The building riser model generating device can be implemented in the form of hardware and / or software. The building riser model generating device can be configured in a computer controller. Figure 1 As shown, the method includes:
[0037] S110, determining the current pipe guide information of the target connection point of the current page, and determining the target assembly type according to the current pipe guide information, wherein the pipe guide information includes pipe connection information.
[0038] Among them, pipe fittings are components used to connect pipes, including elbows, tees and crosses. Pipe fitting connection information refers to the line segment or ray where the pipe fitting selected by the user is located (when the first pipe fitting is added, a ray will appear at the pipe opening; when pipe fittings are added to the ray, line segments will be formed between the pipe fittings, and pipe openings that are not connected to other equipment will still emit rays).
[0039] It should be noted that the pipe network in the building is very complex. Specifically, the pipe network can be divided into two categories: one is the riser, which generally refers to the pipes that run through the floors, including a small section of horizontal pipe between two risers, which is used to transport water, wind, gas and other media between floors; the other is the horizontal pipe, which generally refers to the mesh pipes within a floor, which is generally used to transport water, wind, gas and other media within a floor. Among them, the riser pipe network is composed of the following elements: Pipe fittings: Generally, pipes are straight-line pipes. Pipe fittings are devices used to connect two pipe sections when the pipe section is bifurcated or turned. They are divided into three types: elbows, tees, and crosses. Pipe mouth: The pipe mouth is a pipe section with one side vacant and the other side connected to other equipment. Plug: The plug is a device that connects one side of the pipe section, blocks the pipe section, and prevents the medium in the pipeline from flowing out. Valve: The valve is a device connected in the middle of the pipe section that can control whether the medium in the pipe section passes through and the passing speed. Pipe section: refers to ordinary pipeline equipment.
[0040] Furthermore, the representation methods of elements in the riser include: Pipe fittings: Use models with pipe openings in different directions to represent pipe fittings. Riser pipe fittings must have at least one pipe opening in the Z-axis direction. Before the pipe opening is connected to other devices, a ray will be emitted to indicate that the device is not connected and that devices can be added along the ray direction. If other devices are connected, the pipe opening and other devices will be displayed as line segments. Pipe openings: Use ray segments with upward or downward directions to represent pipe openings. Rays can only be emitted in one direction. Emitting rays indicates that the pipe opening is not connected to a device and that devices can be added along the ray direction. Plugs: Use a cube to represent plugs. The plug is used to block the pipe opening ray, indicating that devices cannot be added along this pipe opening direction. Valve: Use two pipe openings with opposite directions to splice into a valve. Valves are divided into regular valves and end valves. Regular valves refer to valves that can be connected to pipe sections at both ends, and end valves refer to valves that are connected to pipe sections at only one end. Pipe sections: Pipe sections are represented by solid lines. A solid line connecting two devices indicates that there is a pipe section connecting the two devices.
[0041] Specifically, before determining the current pipe guide information of the pipe to be connected, the user needs to add the pipe to the pipe network first. The user can add the pipe by selecting custom addition or selecting pipeline addition. When the user selects the pipeline, the controller will add the pipe to be connected according to the position of the pipeline selected by the user. Then, the controller can determine the target assembly type corresponding to the pipe to be connected based on the current pipe guide information upstream of the source. For example, if the current pipe guide information contains a specific connection method, the controller can determine which type of assembly needs to be used.
[0042] Optionally, the pipe connection information includes the pipe connection direction and the pipe connection type, and the target assembly type is determined based on the current pipe connection guidance information, including: when the pipe connection type is a line segment, determining whether the pipe connection direction is horizontal, and if so, displaying a first list of assembly parts to be selected to obtain the target assembly type; otherwise, displaying a second list of assembly parts to be selected to obtain the target assembly type.
[0043] Among them, the pipe connection direction determines the connection direction between pipes. In the pipeline system, the pipe connection direction can be divided into horizontal and vertical directions. Different pipe connection directions will affect the flow characteristics and mechanical distribution of the fluid in the pipeline. For example, horizontal connection may be more suitable for branching or merging pipes in the same plane, while vertical connection is usually used for pipe extension between different floors. Pipe connection type describes the specific form of connection between pipes, which is divided into line segment and ray.
[0044] Specifically, when the pipe connection type is a line segment, first determine whether the pipe connection direction is horizontal. If it is horizontal, it means that the pipeline is connected in the horizontal direction. Horizontal connection usually requires specific assemblies to ensure the smooth flow of fluid and the stability of the pipeline system. For example, a horizontal tee can divide a pipeline into two to achieve a branching function; a straight pipe fitting can connect two parallel pipes to ensure the tightness of the connection. At this time, the controller will display the first list of assemblies to be selected to the user. The assembly types in the first list of assemblies to be selected are specially designed for horizontal connections, including tee pipe fittings, cross pipe fittings, straight pipe fittings, etc. suitable for horizontal branches. The user can select the target assembly type from the first list of assemblies to be selected and determine the most suitable assembly according to actual needs and design considerations. If the pipe connection direction is not horizontal, it may be vertical. At this time, the controller will display the second list of assemblies to the user. The second list of assemblies to be selected is applicable to non-horizontal connections, including tee pipe fittings, cross pipe fittings, etc. suitable for vertical branches. Among them, the controller refers to a computer controller for modeling the riser.
[0045] Optionally, the target assembly type is determined based on the current pipe guidance information, including: when the pipe connection type is ray, determining whether the pipe connection direction is horizontal, and if so, displaying a third list of candidate assemblies to obtain the target assembly type; otherwise, determining the ray direction, and determining the target assembly type based on the ray direction.
[0046] Among them, when the pipe connection type is ray, if the pipe connection direction is horizontal, it means that the ray is extended in the horizontal direction. At this time, the controller will display the third list of assembly parts to be selected to the user to obtain the target assembly type selected by the user. The third list of assembly parts to be selected includes all elbows, all tees, crosses, straight pipes and plugs. If the pipe connection direction is not horizontal, the pipe connection direction is vertical, and the controller will further determine the ray direction, and then determine the target assembly type according to the ray direction.
[0047] Optionally, determining the target assembly type based on the ray direction includes: determining whether the ray direction is the positive direction of the vertical axis, and if so, displaying a fourth list of assemblies to be selected to obtain the target assembly type; otherwise, displaying a fifth list of assemblies to be selected to obtain the target assembly type.
[0048] Among them, in the pipeline system, different ray directions determine the flow path and mechanical properties of the fluid. If the ray direction is the positive direction of the vertical axis, it means that the fluid will flow in the vertical upward direction. In this case, it is necessary to consider the influence of gravity on the fluid and the pressure requirements for conveying the fluid upward. The controller will display the fourth list of assemblies to be selected to the user. The types of assemblies in the fourth list of assemblies to be selected include pipe fittings specifically used for conveying fluid vertically upward, such as riser elbows, three-way pipe fittings with risers, four-way pipe fittings, plugs and riser plugs. If the ray direction is not the positive direction of the vertical axis, the ray direction is the negative direction of the vertical axis, and the controller will display the fifth list of assemblies to be selected to the user. The fifth list of assemblies to be selected includes pipe fittings for vertically discharging fluids downward, such as downpipe elbows, three-way pipe fittings with downpipes, four-way pipe fittings, plugs and downpipe plugs. Different non-vertical positive directions require different assemblies to meet the requirements of fluid flow, and users can select the target assembly type from the list of assemblies to be selected as needed.
[0049] Optionally, the pipe guide information also includes custom information, and the target assembly type is determined according to the current pipe guide information, including: when the current pipe guide information is custom information, directly using the custom information as the target assembly type.
[0050] Custom information is set by the user according to specific needs and circumstances. When the current pipe guide information is custom information, it indicates that the user has clear personalized requirements for specific pipes. For example, the user may need a pipe of non-standard size in a specific project.
[0051] Specifically, if the user specifies a specific shape, such as an elbow fitting with a special angle, or requires the fitting to have a specific connection method (such as threaded connection, flange connection, etc.), the controller can directly convert this custom information into the target assembly type. Through user customization, the inaccuracy and inapplicability that may be caused by selecting from general assembly types can be avoided. By directly adopting custom information, the controller can more accurately determine the required assembly type, thereby improving the accuracy and practicality of the pipeline model. Custom information provides great flexibility and adaptability for pipeline design. Users can set custom information based on specific engineering requirements, space constraints, fluid characteristics and other factors to ensure that the pipeline system can operate normally in various complex situations.
[0052] S120, generating a target connecting pipe fitting at a target connecting point according to the target assembly type, generating next pipe fitting guidance information according to the target connecting pipe fitting, until a preset end condition is met, and generating an initial pipeline sketch based on the current page.
[0053] Specifically, after determining the target assembly type, the controller can generate the corresponding target connection pipe fittings at the target connection point according to the design requirements of that type. The target connection pipe fittings are the basic components for actually building the pipeline system. According to the connection status of the target connection pipe fittings, the next pipe fitting guidance information can be further derived. By continuously adding appropriate pipe fittings to each connection point specified by the user based on the target connection pipe fittings determined in the previous steps and the next pipe fitting guidance information generated, the layout of the entire pipeline is gradually constructed until the preset end condition is met. The preset end condition may include a variety of situations, such as the pipeline laying in a specific area has been completed, all predetermined connection points have been successfully connected to pipe fittings, and the set pipeline extension length has been reached. When the preset end condition is met, the controller can generate an initial pipeline sketch based on the pipe fitting connection status constructed on the current page.
[0054] Optionally, the next pipe fitting guidance information is generated according to the target connected pipe fitting, including: taking each pipe opening of the target connected pipe fitting as the target pipe opening in turn; determining the pipe opening connection status of the target pipe opening, wherein the pipe opening connection status includes pipe fitting connection and no pipe fitting connection; generating the next pipe fitting guidance information based on the pipe opening connection status, wherein the next pipe fitting guidance information is used to indicate the next connection point.
[0055] Each target connection pipe may have several ports, which are the key parts for subsequent connection with other pipes to form a complete pipeline layout. The controller will treat each port as a target port in turn. For example, a three-way pipe has three ports, and the controller will treat them as target ports in turn to consider the subsequent connection possibilities of each port in a targeted manner, ensuring that no potential connection direction is missed, thus laying the foundation for accurately planning the direction and layout of the entire pipeline system.
[0056] Specifically, the controller will determine the connection status of the target pipe opening, which is divided into two states: with pipe fittings connected and without pipe fittings connected. When there is a pipe fitting connected, it indicates that the pipeline extension in this direction has a certain layout, and the subsequent connection planning may need to consider connecting with it or bypassing it. At this time, the controller will generate a line segment of the target pipe opening and the connecting pipe fitting as the next pipe fitting guidance information. When there is no pipe fitting connected, it indicates that there are more possibilities to add new pipe fittings to expand the layout of the pipeline system in this direction. At this time, the controller will generate a ray from the target pipe opening as the next pipe fitting guidance information.
[0057] S130, obtaining pipe fitting attribute information, and combining the pipe fitting attribute information with the initial pipeline sketch to generate a building riser model, wherein the pipe fitting attribute information includes pipeline style and pipeline size.
[0058] Optionally, after generating the initial pipeline sketch based on the next pipe fitting guidance information, the method further includes: determining each target line segment and each target ray in the initial pipeline sketch; adding conventional valves based on the target line segments, and adding end valves based on the target rays.
[0059] Specifically, the controller will also identify each target segment and each target ray. The target segment usually refers to the straight part in the pipeline, while the target ray may refer to the part that diverges from a center to multiple directions, such as the connection point of a branch pipeline. The controller can determine the target segment and ray by the geometric features and connection relationships in the sketch. For example, by analyzing the connection points and directions of the pipeline, it can be determined which parts are the target segments and rays. Different segments and rays have different functions and roles in the pipeline system, and corresponding valves need to be added according to their characteristics. Only conventional valves can be added to the target segment, and conventional valves are usually used to control the fluid flow and pressure in the pipeline, such as stop valves, ball valves, etc. Only end valves can be added to the target ray. End valves are generally used at the end or branch of the pipeline to prevent fluid backflow and control flow distribution. By adding corresponding valves to the target segments and rays respectively, the initial pipeline sketch is further improved, and a graphics that better meets the requirements of the actual project will be generated.
[0060] It should be noted that the generation of the final building riser model also needs to be combined with the pipe attribute information to ensure that the model meets the requirements of the actual building riser model.
[0061] Among them, the pipe style covers the appearance characteristics of the pipe, such as material (such as metal, plastic, etc.), surface treatment (smooth, frosted, etc.) and shape (round, square, etc.). For example, metal pipes may be more suitable for withstanding high pressure and high temperature environments, while plastic pipes may have advantages in corrosion resistance and cost. Choosing the right pipe style can ensure that the riser has good performance and durability in actual use. The pipe size includes parameters such as pipe diameter and wall thickness, which determine the flow carrying capacity, strength and installation requirements of the pipe. The controller will combine the acquired pipe fitting attribute information with the initial pipe sketch, that is, apply the pipe style and size to each pipe fitting in the initial pipe sketch to form the final building riser model.
[0062] The technical solution of the embodiment of the present invention determines the target assembly type through the current pipe guidance information, which reduces the design time from scratch and improves the efficiency of pipeline design. By adjusting the initial pipeline sketch through the target adjustment function, the pipeline design can be optimized and the quality of the model can be improved. The standardized process and the generation and adjustment based on accurate information reduce the deviations in manual design, help reduce construction and material costs, and improve delivery accuracy. By customizing information and obtaining pipe attribute information, the building riser model is generated in combination with the initial pipeline sketch, which can better meet user needs, reduce the deviations in manual design, help reduce construction and material costs, and improve delivery accuracy.
[0063] Embodiment 2
[0064] Figure 2 This is a flowchart of a method for generating a building riser model provided in the second embodiment of the present invention. This embodiment adds a specific process of obtaining a target adjustment function based on an initial pipe sketch on the basis of the above-mentioned first embodiment. Among them, the specific contents of steps S210-S220 and S260 are roughly the same as steps S110-S130 in the first embodiment, so they will not be repeated in this embodiment. Figure 2 As shown, the method includes:
[0065] S210, determining the current pipe guide information of the target connection point of the current page, and determining the target assembly type according to the current pipe guide information, wherein the pipe guide information includes pipe connection information.
[0066] S220, generating a target connecting pipe fitting at a target connecting point according to the target assembly type, generating next pipe fitting guidance information according to the target connecting pipe fitting, until a preset end condition is met, and generating an initial pipeline sketch based on the current page.
[0067] S230, obtaining the adjustment position, and determining the pipe position corresponding to the adjustment position, wherein the pipe position includes the pipe placement in the air and the pipe connection crossing line segment.
[0068] It can be known that in the process of pipeline design, the initial pipeline sketch is only a preliminary design plan, and there may be places that need to be adjusted. In order to meet actual needs, it is necessary to obtain the target adjustment function to optimize the initial pipeline sketch. When viewing the initial pipeline sketch, the user can select the position that needs to be adjusted through a specific software interface or tool. For example, the user may specify the position of a pipe fitting or the connection point of a section of pipe by clicking or touching the mouse. After receiving the user's selection, the controller can accurately identify the specific coordinates or identification of the selected adjustment position in the initial pipeline sketch, which can be achieved through the coordinate system of the model or the unique identification of the pipe fitting.
[0069] Specifically, when the pipe fitting corresponding to the adjustment position is placed in the air, it indicates that the pipe fitting has no strict connection constraints with other pipe fittings or structures. For example, a pipe fitting placed alone in the model space is not connected to other pipe fittings or fixed in a specific position. At this time, the position of the pipe fitting is relatively free and can be adjusted in a large range. If the pipe fitting is in the situation of connecting cross-line segments, it means that the pipe fitting is cross-connected with other pipe fittings or line segments. At this time, the adjustment of the pipe fitting needs to take into account the relationship with other connected parts and cannot be adjusted at will, otherwise it may affect the connection integrity and rationality of the entire pipeline system.
[0070] S240, determining alternative adjustment functions corresponding to the position of the pipe fitting, wherein the alternative adjustment functions include arbitrary movement, rotation, directional movement, and no adjustment allowed.
[0071] It should be noted that there are three situations for adjusting the position of pipe fittings: Situation 1: If the pipe fitting is not connected to any line segment and is placed in the air, the pipe fitting can be dragged arbitrarily, but it cannot be flipped; Situation 2: If the pipe fitting has two vertical pipe openings connected by line segments, the pipe fitting cannot be moved; Situation 3: In addition to situations 1 and 2, the pipe fitting can be moved back and forth along the pipe opening with a line and in the opposite direction. The controller can analyze the adjustment position selected by the user through the set adjustment situation and provide corresponding alternative adjustment function options, including arbitrary movement, rotation, directional movement, and no adjustment allowed.
[0072] Among them, arbitrary movement means that users can freely move pipe fittings to any position in the model space. When pipe fittings are placed in the air, since there are no connection constraints on the pipe fittings, arbitrary movement will not affect the structure of other parts, so an alternative adjustment function for arbitrary movement can be provided at this time. Rotation means that users can rotate pipe fittings around a certain axis to adjust their direction. Directional movement means that users can move pipe fittings in a specific direction. If the position of the pipe fitting is very complicated, or the adjustment may cause serious problems, the controller will provide an option not to allow adjustment to ensure the stability and safety of the pipeline system and avoid problems caused by improper adjustment.
[0073] S250, displaying alternative adjustment functions to obtain a target adjustment function; and adjusting the initial pipeline sketch based on the target adjustment function.
[0074] Specifically, the controller will display the determined alternative adjustment functions to the user. The user can select the appropriate target adjustment function according to actual needs and design intentions, which can ensure that the adjustment function meets the user's expectations and improve the quality and efficiency of the design. After the user selects the target adjustment function, the controller can make corresponding adjustments to the initial pipeline sketch according to the user's selection and display the adjusted results in real time. The user can make further adjustments or confirmations based on the adjusted results.
[0075] S260, obtaining pipe fitting attribute information, and combining the pipe fitting attribute information with the initial pipeline sketch to generate a building riser model, wherein the pipe fitting attribute information includes pipeline style and pipeline size.
[0076] Optionally, after generating the initial pipeline sketch based on the next pipe fitting guidance information, the method further includes: determining each target line segment and each target ray in the initial pipeline sketch; adding conventional valves based on the target line segments, and adding end valves based on the target rays.
[0077] The technical solution of the embodiment of the present invention determines the target assembly type through the current pipe guidance information, which reduces the design time from scratch and improves the efficiency of pipeline design. By adjusting the initial pipeline sketch through the target adjustment function, the pipeline design can be optimized and the quality of the model can be improved. The standardized process and the generation and adjustment based on accurate information reduce the deviations in manual design, help reduce construction and material costs, and improve delivery accuracy. By customizing information and obtaining pipe attribute information, the building riser model is generated in combination with the initial pipeline sketch, which can better meet user needs, reduce the deviations in manual design, help reduce construction and material costs, and improve delivery accuracy.
[0078] Embodiment 3
[0079] Figure 3 This is a schematic diagram of the structure of a building riser model generation device provided by Embodiment 3 of the present invention. Figure 3 As shown, the device includes: a target assembly type determination module 310, which is used to determine the current pipe guide information of the target connection point of the current page, and determine the target assembly type according to the current pipe guide information, wherein the pipe guide information includes pipe connection information;
[0080] A target connection pipe generation module 320 is used to generate a target connection pipe at a target connection point according to the target assembly type, generate next pipe guidance information according to the target connection pipe, and generate an initial pipeline sketch based on the current page when a preset end condition is met;
[0081] The building riser model generation module 330 is used to obtain pipe attribute information and combine the pipe attribute information with the initial pipeline sketch to generate a building riser model, wherein the pipe attribute information includes pipeline style and pipeline size.
[0082] Optionally, the target assembly type determination module 310 specifically includes: a line segment judgment unit, used to: when the pipe connection type is a line segment, determine whether the pipe connection direction is horizontal, if so, display the first list of assembly parts to be selected to obtain the target assembly type; otherwise, display the second list of assembly parts to be selected to obtain the target assembly type.
[0083] Optionally, the target assembly type determination module 310 specifically includes: a ray judgment unit, used to: when the pipe connection type is ray, determine whether the pipe connection direction is horizontal, if so, display a third list of optional assemblies to obtain the target assembly type; otherwise, determine the ray direction and determine the target assembly type based on the ray direction.
[0084] Optionally, the ray judgment unit specifically includes: a ray direction judgment subunit, used to: judge whether the ray direction is the positive direction of the vertical axis, if so, display the fourth list of assembly parts to be selected to obtain the target assembly type; otherwise, display the fifth list of assembly parts to be selected to obtain the target assembly type.
[0085] Optionally, the target assembly type determination module 310 specifically includes: a customization unit, which is used to: when the current pipe guide information is customized information, directly use the customized information as the target assembly type.
[0086] Optionally, the target connecting pipe generating module 320 is specifically used to: sequentially take each pipe opening of the target connecting pipe as the target pipe opening; determine the pipe opening connection status of the target pipe opening, wherein the pipe opening connection status includes pipe connection and no pipe connection; and generate the next pipe fitting guidance information based on the pipe opening connection status, wherein the next pipe fitting guidance information is used to indicate the next connection point.
[0087] Optionally, the device also includes: a position adjustment module, which is used to: obtain the adjustment position, determine the pipe position situation corresponding to the adjustment position, wherein the pipe position situation includes the situation of the pipe being placed in the air and the situation of the pipe connecting the crossing line segments; determine the alternative adjustment function corresponding to the pipe position situation, wherein the alternative adjustment function includes arbitrary movement, rotation, directional movement and no adjustment allowed; display the alternative adjustment function to obtain the target adjustment function; and adjust the initial pipeline sketch based on the target adjustment function.
[0088] Optionally, the device also includes: a valve adding module, which is used to determine each target segment and each target ray in the initial pipeline sketch after generating the initial pipeline sketch based on the next pipe fitting guidance information; add conventional valves based on the target segment, and add end valves based on the target ray.
[0089] The technical solution of the embodiment of the present invention determines the target assembly type through the current pipe guidance information, which reduces the design time from scratch and improves the efficiency of pipeline design. By adjusting the initial pipeline sketch through the target adjustment function, the pipeline design can be optimized and the quality of the model can be improved. The standardized process and the generation and adjustment based on accurate information reduce the deviations in manual design, help reduce construction and material costs, and improve delivery accuracy. By customizing information and obtaining pipe attribute information, the building riser model is generated in combination with the initial pipeline sketch, which can better meet user needs, reduce the deviations in manual design, help reduce construction and material costs, and improve delivery accuracy.
[0090] A building riser model generation device provided in an embodiment of the present invention can execute a building riser model generation method provided in any embodiment of the present invention, and has corresponding functional modules and beneficial effects of the execution method.
[0091] Embodiment 4
[0092] Figure 4 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0093] like Figure 4As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0094] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0095] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a method for generating a building riser model.
[0096] In some embodiments, a method for generating a building riser model may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the method for generating a building riser model described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform a method for generating a building riser model in any other appropriate manner (e.g., by means of firmware).
[0097] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0098] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0099] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0100] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0101] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0102] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0103] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0104] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for generating a building riser model, characterized in that: include: Determine current pipe guide information of a target connection point on the current page, and determine a target assembly type according to the current pipe guide information, wherein the pipe guide information includes pipe connection information; Generate a target connection pipe fitting at the target connection point according to the target assembly type, generate next pipe fitting guidance information according to the target connection pipe fitting, and generate an initial pipeline sketch based on the current page when a preset end condition is met; Pipe fitting attribute information is obtained, and the pipe fitting attribute information is combined with the initial pipeline sketch to generate a building riser model, wherein the pipe fitting attribute information includes pipeline style and pipeline size.
2. The method according to claim 1, characterized in that The pipe connection information includes the pipe connection direction and the pipe connection type. The determining the target assembly type according to the current pipe guidance information includes: When the pipe connection type is a line segment, determining whether the pipe connection direction is horizontal, and if so, displaying a first list of assembly parts to be selected to obtain a target assembly part type; Otherwise, a second list of candidate assemblies is displayed to obtain the target assembly type.
3. The method according to claim 2, characterized in that The step of determining the target assembly type according to the current pipe guide information includes: When the pipe connection type is a ray, determine whether the pipe connection direction is horizontal, and if so, display a third list of assembly parts to be selected to obtain the target assembly type; Otherwise, the ray direction is determined, and the target assembly type is determined according to the ray direction.
4. The method according to claim 3, characterized in that The step of determining the type of the target assembly according to the ray direction includes: Determine whether the ray direction is the positive direction of the vertical axis, and if so, display the fourth list of assembly parts to be selected to obtain the target assembly part type; Otherwise, the fifth list of candidate assemblies is displayed to obtain the target assembly type.
5. The method according to claim 1, characterized in that The pipe guide information also includes custom information, and determining the target assembly type according to the current pipe guide information includes: When the current pipe guide information is user-defined information, the user-defined information is directly used as the target assembly type.
6. The method according to any one of claims 1 to 5, characterized in that: The step of generating next pipe guide information according to the target connected pipe includes: Sequentially taking each pipe opening of the target connecting pipe fitting as a target pipe opening; Determine the pipe orifice connection status of the target pipe orifice, wherein the pipe orifice connection status includes being connected with a pipe fitting and being connected without a pipe fitting; Next pipe fitting guidance information is generated based on the pipe opening connection condition, wherein the next pipe fitting guidance information is used to indicate a next connection point.
7. The method according to claim 1, characterized in that The method further comprises: Acquire the adjustment position, and determine the position of the pipe corresponding to the adjustment position, wherein the position of the pipe includes the placement of the pipe in the air and the connection of the pipe with the crossing line segment; Determine an alternative adjustment function corresponding to the position of the pipe, wherein the alternative adjustment function includes arbitrary movement, rotation, directional movement and non-adjustment; Present alternative adjustment functions to obtain the target adjustment function; The initial pipeline sketch is adjusted based on the target adjustment function.
8. The method according to claim 1, characterized in that After generating the initial pipeline sketch based on the next pipe guide information, the method further includes: Determine each target line segment and each target ray in the initial pipeline sketch; A conventional valve is added based on the target line segment, and an end valve is added based on the target ray.
9. A building riser model generating device, characterized in that: include: A target assembly type determination module is used to determine the current pipe guide information of the target connection point of the current page, and determine the target assembly type according to the current pipe guide information, wherein the pipe guide information includes pipe connection information; A target connection pipe generation module, used to generate a target connection pipe at the target connection point according to the target assembly type, generate next pipe guidance information according to the target connection pipe, and generate an initial pipeline sketch based on the current page when a preset end condition is met; The building riser model generation module is used to obtain pipe attribute information and combine the pipe attribute information with the initial pipeline sketch to generate a building riser model, wherein the pipe attribute information includes pipeline style and pipeline size.
10. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively coupled to the at least one processor; The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method according to any one of claims 1 to 8.