Parallel processing method, device, storage medium and electronic equipment for pipelines
By obtaining the path parameters of the pipeline and performing grouping operations, the side-by-side processing of the pipeline is automatically adjusted according to preset rules, the problem of manual adjustment in the Revit software is solved and the design efficiency is improved.
Patent Information
- Application Number
- CN202110476557.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-29
- Publication Date
- 2025-08-15
- Estimated Expiration
- 2041-04-29
AI Technical Summary
The Revit software cannot automatically adjust side-by-side processing between pipelines, causing designers to spend a lot of time.
By obtaining the path parameters of the pipeline, grouping operations, and performing automatic side-by-side operations on the pipeline according to preset side-by-side processing rules, including configuring the set of pending pipelines, adjusting the horizontal clear distance, etc.
Automatic side-by-side processing of pipelines is realized, reducing the working time of designers or developers and improving design efficiency.
Smart Images

Figure CN115270227B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electronic equipment, and in particular to a pipeline parallel processing method, device, storage medium and electronic equipment. Background Art
[0002] Current BIM (Building Information Modeling) platforms generally use Revit structural models to set up architectural drawings and handle complex piping intersections.
[0003] Although Revit software can realize the pipeline layout function, it requires manual adjustment of the side-by-side processing of pipelines, which takes a lot of time for designers. Summary of the Invention
[0004] The embodiments of the present invention provide a pipeline parallel processing method, device, storage medium and electronic equipment to effectively solve the problem that Revit software cannot automatically adjust the parallel processing between pipelines, which requires designers to spend a lot of time.
[0005] According to one aspect of the present invention, the present invention provides a method for parallel processing of pipelines, the method comprising the steps of: obtaining path parameters of the pipelines; grouping the pipelines according to the obtained path parameters; and performing parallel operations on the pipelines in all groups according to preset parallel processing rules.
[0006] Furthermore, the step of grouping the pipelines includes the steps of: obtaining the path parameters of the load-bearing beams in the closed area; projecting the pipelines and the load-bearing beams onto a horizontal plane according to the path parameters of the load-bearing beams; determining the pipelines intersecting with multiple load-bearing beams according to the projections of the pipelines and the load-bearing beams on the horizontal plane; determining the pipelines intersecting with at least two of the multiple load-bearing beams according to the projections of the pipelines and the load-bearing beams on the horizontal plane; configuring the pipelines intersecting with multiple load-bearing beams and the pipelines intersecting with at least two of the multiple load-bearing beams as a set of pipelines to be processed, and the types of pipelines in the set of pipelines to be processed are the same.
[0007] Furthermore, the preset side-by-side processing rules include: setting the projection of any one of the multiple load-bearing beams on the horizontal plane as the target position; translating the projections of the remaining load-bearing beams in the multiple load-bearing beams on the horizontal plane to the target position; and obtaining overlapping line segments of the multiple projections located at the target position.
[0008] Furthermore, the preset parallel processing rules include: calculating the sum of the horizontal clearances from all pipelines in the pipeline set to be processed to the first end of the overlapping line segment; calculating the sum of the horizontal clearances from all pipelines in the pipeline set to be processed to the second end of the overlapping line segment; comparing the sum of the horizontal clearances from the first end and the sum of the horizontal clearances from the second end; and according to the comparison result, determining the end with the larger sum of the horizontal clearances as the starting point of the parallel processing.
[0009] Furthermore, the parallel operation includes: adjusting the horizontal clearance between pipelines in the set of pipelines to be processed to a first preset distance.
[0010] Furthermore, when there is a preset pipeline between the set of pipelines to be processed and the load-bearing beam, the side-by-side operation includes: adjusting the horizontal clearance between the set of pipelines to be processed and the preset pipeline to a second preset distance.
[0011] Furthermore, when there is no preset pipeline between the set of pipelines to be processed and the load-bearing beam, the side-by-side operation includes: adjusting the horizontal clearance between the set of pipelines to be processed and the starting point to a third preset distance.
[0012] According to another aspect of the present invention, the present invention provides a program switching device, which includes: an acquisition unit for acquiring path parameters of the pipeline; a detection unit for grouping the pipeline according to the obtained path parameters; and an execution unit for performing parallel operations on the pipelines in all groups according to preset parallel processing rules.
[0013] According to another aspect of the present invention, the present invention provides a storage medium, wherein a plurality of instructions are stored in the storage medium, and the instructions are suitable for being loaded by a processor to execute the parallel processing method described in any embodiment of the present invention.
[0014] According to another aspect of the present invention, the present invention provides an electronic device, including a processor and a memory, wherein the processor is electrically connected to the memory, the memory is used to store instructions and data, and the processor is used to execute the steps in the parallel processing method described in any embodiment of the present invention.
[0015] The advantage of the present invention is that the parallel processing method of pipelines described in the embodiment of the present invention obtains the path parameters of the pipelines, groups the pipelines according to the obtained path parameters, and performs parallel operations on the pipelines in all groups according to preset parallel processing rules, thereby realizing automatic parallel processing of pipelines and reducing the time spent by designers or developers to improve design efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The technical solutions and other beneficial effects of the present invention will be made apparent by describing in detail the specific embodiments of the present invention in conjunction with the accompanying drawings.
[0017] Figure 1 This is a flowchart of the steps of a parallel processing method for pipelines provided in Example 1 of the present invention.
[0018] Figure 2 A flowchart of the steps of the pipeline grouping operation provided by an embodiment of the present invention.
[0019] Figure 3 A flowchart of the steps of parallel processing of pipeline presets provided by an embodiment of the present invention.
[0020] Figure 4 A structural schematic diagram of the parallel operation of pipelines provided in an embodiment of the present invention.
[0021] Figure 5 A schematic diagram of the structure of the pipeline after the side-by-side operation provided by an embodiment of the present invention.
[0022] Figure 6 A schematic diagram of the structure of the pipeline after the side-by-side operation provided by an embodiment of the present invention.
[0023] Figure 7 This is a structural schematic diagram of a parallel processing device for pipelines provided in Example 2 of the present invention.
[0024] Figure 8 This is a structural diagram of an electronic device provided in Example 3 of the present invention. DETAILED DESCRIPTION
[0025] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0026] In the description of the present invention, it should be noted that, unless otherwise expressly specified or limited, the terms "mounted," "connected," and "connected" should be understood in a broad sense. For example, they may refer to fixed connections, detachable connections, or integral connections; mechanical connections, electrical connections, or mutual communication; direct connections or indirect connections through an intermediate medium; and internal communication between two components or interaction between two components. Those skilled in the art will understand the specific meanings of the above terms in the present invention based on specific circumstances.
[0027] like Figure 1As shown, a flowchart of the parallel processing method of pipelines provided in embodiment 1 of the present invention is shown. The method includes the following steps:
[0028] Step S110: Obtain pipeline path parameters.
[0029] In this step, pipeline types include pressurized and non-pressurized pipelines. Non-pressurized pipelines determine their flow direction based on the direction of gravity. Pressurized pipelines can include air ducts, power bridges, and weak-point bridges. Path parameters are the three-dimensional coordinates of each pipeline in space.
[0030] Step S120: performing a grouping operation on the pipelines according to the obtained path parameters.
[0031] See also Figure 2 In this step, the step of grouping the pipelines includes the following steps:
[0032] Step S210: Obtain path parameters of the load-bearing beams in the closed area.
[0033] In this step, the closed area 300 is composed of columns 301, load-bearing beams 400 and walls (top view). Figure 2 Not shown in the figure, the wall is located below the load-bearing beam 400 and between the columns 301 and the columns 301 in the closed area 300 enclosed.
[0034] Step S220: Project the pipeline and the load-bearing beam to a horizontal plane according to the path parameters of the load-bearing beam.
[0035] Step S230: Based on the projections of the pipelines and load-bearing beams onto the horizontal plane, determine the pipelines that intersect with the multiple load-bearing beams. It should be noted that "projecting pipelines and load-bearing beams onto the horizontal plane" herein refers to projecting the positioning lines of the pipelines or load-bearing beams onto the horizontal plane, and the same applies hereinafter.
[0036] In this step, Figure 4 For example, the pipelines obtained include the first pipeline 200, the second pipeline 201, and the third pipeline 202 in the horizontal direction, and the third pipeline 100, the fourth pipeline 101, the fifth pipeline 102, the sixth pipeline 103, the seventh pipeline 104, and the eighth pipeline 105 in the vertical direction. Based on the projection of the pipelines on the horizontal plane, it can be determined that the first pipeline 200 intersects with three load-bearing beams (i.e., load-bearing beams 401, 402, and 403).
[0037] Step S240: Determine the pipelines intersecting at least two of the plurality of load-bearing beams according to the projections of the pipelines and the load-bearing beams on the horizontal plane.
[0038] In this step, continue with Figure 4For example, it is necessary to determine the pipelines that intersect at least two of the multiple load-bearing beams. Therefore, based on the projection of the pipelines on the horizontal plane, it can be determined that the second pipeline and the third pipeline intersect with two load-bearing beams (i.e., load-bearing beam 402 and load-bearing beam 403) at the same time.
[0039] Step S250: Configuring pipelines intersecting with multiple load-bearing beams and pipelines intersecting with at least two of the multiple load-bearing beams as a pipeline set to be processed, and the pipelines in the pipeline set to be processed are of the same type.
[0040] In this step, pipeline types include pressurized pipelines and non-pressurized pipelines, where pressurized pipeline types include pressurized pipes, strong power bridges, weak point bridges, etc. To facilitate parallel processing and adjustment, the same pipeline set only contains one type of pipeline.
[0041] Step S130: performing parallel processing on pipelines in all groups according to preset parallel processing rules.
[0042] See also Figure 3 In this step, the preset parallel processing rules include:
[0043] Step S310: setting the projection of any one of the plurality of load-bearing beams on the horizontal plane as a target position.
[0044] In this step, it is assumed that the load-bearing beam 402 is the target position.
[0045] Step S320: translating the projections of the remaining load-bearing beams in the plurality of load-bearing beams on the horizontal plane to the target position.
[0046] In this step, the load-bearing beam 401 and the load-bearing beam 403 are translated (horizontally displaced) to the target position.
[0047] Step S330: Obtain overlapping line segments of multiple projections located at the target position.
[0048] In this step, continue with Figure 4 As shown in , for example, the coincident line segment is from the first endpoint 510 to the second endpoint 520 .
[0049] Step S340: Calculate the total horizontal clearance from all pipelines in the pipeline set to be processed to the first end of the coincident line segment.
[0050] Step S350: Calculate the total horizontal clearance from all pipelines in the pipeline set to be processed to the second ends of the coincident line segments.
[0051] In this step, the horizontal clearance distances from all pipelines to the first end 510 and the second end 520 are the spacing distances between the pipelines and the first end 510 and the second end 520. Before executing step S340, the following steps may be included: obtaining the horizontal clearance distances from the first ends of all pipelines in the pipeline set to be processed to the coincident line segment; and obtaining and calculating the horizontal clearance distances from the second ends of all pipelines in the pipeline set to be processed to the coincident line segment.
[0052] Step S360: comparing the sum of the horizontal clearances at the first end and the sum of the horizontal clearances at the second end;
[0053] Step S370: According to the comparison result, determine the end with the larger total horizontal clearance as the starting point of the parallel processing.
[0054] In this step, continue with Figure 4 As shown in the example, the total horizontal clearance between the first pipeline 200, the second pipeline 201 and the third pipeline 202 and the first end is less than the total horizontal clearance between the first pipeline 200, the second pipeline 201 and the third pipeline 202 and the second end. Therefore, the first end is selected as the starting point for parallel processing.
[0055] The parallel operation may further include:
[0056] like Figure 5 As shown, the horizontal clearance between pipelines in the pipeline set to be processed is adjusted to a first preset distance, and no preset pipeline exists between the pipeline set to be processed and the load-bearing beam. Based on the starting point for parallel processing obtained in step S370, the horizontal clearance between the pipeline set to be processed and the starting point is adjusted to a third preset distance. The first preset distance is 50 mm, and the third preset distance is 200 mm.
[0057] like Figure 6 As shown, when there is a preset pipeline 600 between the pipeline set 700 to be processed and the load-bearing beam, the horizontal clearance between the pipeline set 700 to be processed and the preset pipeline 600 is adjusted to a second preset distance, wherein the second preset distance is 350 mm.
[0058] In embodiment 1, the parallel processing method of pipelines obtains the path parameters of the pipelines, groups the pipelines according to the obtained path parameters, and performs parallel operations on the pipelines in all groups according to preset parallel processing rules, thereby realizing automatic parallel processing of pipelines and reducing the time spent by designers or developers to improve design efficiency.
[0059] Based on the same inventive concept, the present invention also provides a parallel processing device for pipelines.
[0060] like Figure 7FIG2 is a schematic diagram of a parallel processing device for pipelines according to a second embodiment of the present invention. The device comprises an acquisition unit 10 , a detection unit 20 and an execution unit 30 .
[0061] The acquisition unit 10 is used to obtain pipeline path parameters. In this embodiment, the pipeline types include pressurized pipelines and non-pressurized pipelines, where the flow direction of the non-pressurized pipeline is determined by the direction of gravity. The pressurized pipelines may include: air ducts, high-voltage bridges, and weak-point bridges. The path parameters are the three-dimensional coordinate values of each pipeline in space.
[0062] The detection unit 20 is used to group the pipelines according to the obtained path parameters. In this embodiment, the closed area 300 is composed of columns 301, load-bearing beams 400 and walls (top view). Figure 2 Not shown in the figure, the wall is located below the load-bearing beam 400 and between the columns 301 and the columns 301 in the closed area 300 enclosed.
[0063] The execution unit 30 is configured to perform parallel operations on the pipelines in all groups according to a preset parallel processing rule.
[0064] In the second embodiment of the present application, the parallel processing device of the pipeline obtains the path parameters of the pipeline, groups the pipeline according to the obtained path parameters, and performs parallel operations on the pipelines in all groups according to preset parallel processing rules, thereby realizing automatic parallel processing of the pipelines and reducing the time spent by designers or developers to improve design efficiency.
[0065] In the third embodiment of the present application, an electronic device 1000 is provided, and its internal structure diagram can be shown as follows: Figure 8 As shown. The electronic device 1000 includes a processor, a memory, a network interface, a display screen and an input device connected via a system bus. The processor of the electronic device 1000 is used to provide computing and control capabilities. The memory of the electronic device 1000 includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external computer device via a network connection. When the computer program is executed by the processor, a pipeline parallel processing method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad provided on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0066] Those skilled in the art will understand that Figure 8The structure shown in the figure is merely a block diagram of a portion of the structure related to the solution of the present invention and does not constitute a limitation on the computer device to which the solution of the present invention is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0067] In one embodiment, an electronic device 1000 is provided, which includes a memory and a processor. The memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0068] Get the pipeline path parameters;
[0069] performing a grouping operation on the pipeline according to the obtained path parameters; and
[0070] According to the preset parallel processing rules, parallel operations are performed on the pipelines in all groups.
[0071] In another embodiment, a storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:
[0072] Get the pipeline path parameters;
[0073] performing a grouping operation on the pipeline according to the obtained path parameters; and
[0074] According to the preset parallel processing rules, parallel operations are performed on the pipelines in all groups.
[0075] Those skilled in the art will appreciate that all or part of the processes in the above-described embodiment methods can be implemented by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer storage medium. When the computer program is executed, it can include the processes of the above-described embodiment methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided by the present invention can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0076] Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A method for parallel processing of pipelines, characterized in that: Including steps: Get the pipeline path parameters; performing a grouping operation on the pipelines according to the obtained path parameters; as well as According to the preset parallel processing rules, parallel operations are performed on the pipelines in all groups; The step of grouping the pipelines comprises the following steps: Get the path parameters of the load-bearing beam in the closed area; Project the pipeline and the load-bearing beam to the horizontal plane according to the path parameters of the load-bearing beam; According to the projections of pipelines and load-bearing beams on the horizontal plane, determine the pipelines that intersect with multiple load-bearing beams; Determining, based on projections of the pipelines and the load-bearing beams on a horizontal plane, pipelines intersecting at least two of the plurality of load-bearing beams; The pipelines intersecting all of the multiple load-bearing beams and the pipelines intersecting at least two of the multiple load-bearing beams are configured as a pipeline set to be processed, and the pipelines in the pipeline set to be processed are of the same type.
2. The parallel processing method for pipelines according to claim 1, characterized in that: The preset parallel processing rules include: Setting the projection of any one of the plurality of load-bearing beams on the horizontal plane as a target position; translating the projections of the remaining load-bearing beams among the plurality of load-bearing beams on the horizontal plane to target positions; Obtain the coincident line segments of multiple projections at the target location.
3. The parallel processing method for pipelines according to claim 2, characterized in that: The preset parallel processing rules include: Calculate the total horizontal clearance from the first end of all pipelines in the pipeline set to be processed to the coincident line segment; Calculate the total horizontal clearance from the second end of all pipelines in the pipeline set to be processed to the second end of the coincident line segment; Compare the sum of the horizontal clearances at the first end and the sum of the horizontal clearances at the second end; Based on the comparison results, the end with the larger total horizontal clearance is determined as the starting point for side-by-side processing.
4. The parallel processing method for pipelines according to claim 1, characterized in that: The parallel operation includes: The horizontal clearance between pipelines in the set of pipelines to be processed is adjusted to a first preset distance.
5. The parallel processing method for pipelines according to claim 1, characterized in that: When there is a preset pipeline between the pipeline set to be processed and the load-bearing beam, the parallel operation includes: The horizontal clearance between the set of pipelines to be processed and the preset pipelines is adjusted to a second preset distance.
6. The parallel processing method for pipelines according to claim 3, characterized in that: When there is no preset pipeline between the pipeline set to be processed and the load-bearing beam, the parallel operation includes: The horizontal clearance between the set of pipelines to be processed and the starting point is adjusted to a third preset distance.
7. A parallel processing device for pipelines, characterized in that: include: An acquisition unit, used to obtain the path parameters of the pipeline; a detection unit, configured to perform a grouping operation on the pipelines according to the obtained path parameters; as well as An execution unit, configured to perform parallel operations on pipelines in all groups according to a preset parallel processing rule; Wherein, the detection unit is further used for: Get the path parameters of the load-bearing beam in the closed area; Project the pipeline and the load-bearing beam to the horizontal plane according to the path parameters of the load-bearing beam; According to the projections of pipelines and load-bearing beams on the horizontal plane, determine the pipelines that intersect with multiple load-bearing beams; Determining, based on projections of the pipelines and the load-bearing beams on a horizontal plane, pipelines intersecting at least two of the plurality of load-bearing beams; The pipelines intersecting all of the multiple load-bearing beams and the pipelines intersecting at least two of the multiple load-bearing beams are configured as a pipeline set to be processed, and the pipelines in the pipeline set to be processed are of the same type.
8. A storage medium, characterized in that: The storage medium stores a plurality of instructions, which are suitable for being loaded by a processor to execute the pipeline parallel processing method according to any one of claims 1 to 6.
9. An electronic device, characterized in that: The system comprises a processor and a memory, wherein the processor is electrically connected to the memory, the memory is used to store instructions and data, and the processor is used to execute the steps in the pipeline parallel processing method according to any one of claims 1 to 6.