Method and system for automatically arranging pipeline model, electronic equipment and storage medium
By automatically acquiring and parsing pipeline layout instructions and determining the pipeline coordinate range, the automatic layout of pipeline models in three-dimensional design is realized, solving the low layout efficiency and collision problems in the existing technology, and improving the efficiency and accuracy of the design.
Patent Information
- Application Number
- CN202410804419.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-09-10
AI Technical Summary
In three-dimensional design, the layout efficiency of pipeline models is low, causing designers to spend a lot of time and energy on collision checks and modifications to avoid pipeline collisions. Different designers have different engineering experience and understanding of design specifications, resulting in inconsistent layout. Weekly question.
By obtaining the idle coordinate cluster in the three-dimensional design drawing area, parsing the pipeline layout instructions input by the user, determining the starting and end position coordinates of the pipeline, and determining the pipeline layout coordinate range in the idle coordinate cluster according to the pipeline type and specification, and automatically laying out the pipeline model, Improve layout efficiency.
The pipeline model can be automatically laid out without relying on designers, which improves the layout efficiency of the pipeline model, reduces the time for collision inspection and modification, and improves the accuracy and efficiency of the design.
Smart Images

Figure CN118627243A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of three-dimensional design, and in particular to a method, system, electronic equipment and storage medium for automatically arranging a pipeline model. Background Art
[0002] When arranging the pipeline model in 3D design, it is necessary to complete the equipment modeling and building structure modeling first. Then, based on the existing equipment model and building structure model, the designer arranges the pipeline model according to engineering experience and design specifications.
[0003] However, different designers have different engineering experience and understanding of design specifications, which may lead to inconsiderate considerations when designers arrange the pipeline model, resulting in pipeline collisions. It takes a lot of time and effort to perform collision checks and then modify the layout of the pipeline model, and the layout efficiency of the pipeline model is low. Summary of the invention
[0004] In view of this, an embodiment of the present invention provides a method, system, electronic device and storage medium for automatically arranging a pipeline model to solve the problem of low arrangement efficiency in the current method of arranging pipeline models by designers.
[0005] To achieve the above objectives, the embodiments of the present invention provide the following technical solutions:
[0006] A first aspect of an embodiment of the present invention discloses a method for automatically arranging a pipeline model, the method comprising:
[0007] Acquire an idle coordinate cluster of the three-dimensional design drawing area, wherein the idle coordinate cluster includes unoccupied coordinates;
[0008] Parsing the piping layout instructions input by the user to obtain the piping type and piping specification;
[0009] Determine the pipeline starting position coordinates and the pipeline ending position coordinates from the idle coordinate cluster;
[0010] According to the pipeline type, the pipeline specification, the pipeline starting position coordinates and the pipeline end position coordinates, a pipeline layout coordinate range is determined from the idle coordinate cluster, and a pipeline model is arranged within the pipeline layout coordinate range.
[0011] Preferably, determining the pipeline layout coordinate range from the idle coordinate cluster includes:
[0012] Taking the starting position coordinates of the pipeline and the ending position coordinates of the pipeline as the center points, the coordinates involved in the cross section of the pipeline model are calculated according to the pipeline specifications;
[0013] Acquire a pipeline layout rule matching the pipeline type and the pipeline specification;
[0014] Based on the pipeline layout rule, the coordinates involved in the cross section, the pipeline starting position coordinates and the pipeline end position coordinates, the direction and layout range of the pipeline model are calculated in the free coordinate cluster to obtain the pipeline layout coordinate range.
[0015] Preferably, the process of arranging the pipeline model within the pipeline arrangement coordinate range includes:
[0016] Query at least one pipeline arrangement matching the pipeline type and the pipeline specification from a pipeline design database;
[0017] Displaying at least one of the pipeline layout modes for selection by the user, and retrieving pipe fitting data matching the pipeline type and the pipeline specification;
[0018] According to the pipe fitting data and the pipeline layout mode selected by the user, a pipeline model is arranged between the pipeline starting position coordinates and the pipeline end position coordinates within the pipeline layout coordinate range.
[0019] Preferably, after arranging the pipeline model, the method further includes:
[0020] Generate piping layout drawings of piping models.
[0021] Preferably, determining the pipeline start position coordinates and the pipeline end position coordinates from the idle coordinate cluster includes:
[0022] Based on the coordinate selection operation of the user on the idle coordinate cluster, determining the pipeline start position coordinates and the pipeline end position coordinates from the idle coordinate cluster;
[0023] or,
[0024] The coordinate information input by the user is parsed to obtain the pipeline start position coordinates and the pipeline end position coordinates in the idle coordinate cluster.
[0025] Preferably, obtaining the free coordinate cluster of the three-dimensional design drawing area includes:
[0026] Acquire a coordinate cluster of a three-dimensional design drawing area, and acquire coordinates of a model established in the three-dimensional design drawing area, wherein the coordinates of the model established in the three-dimensional design drawing area are occupied coordinates;
[0027] The coordinates of the established model in the three-dimensional design drawing area are removed from the coordinate cluster of the three-dimensional design drawing area to obtain an idle coordinate cluster.
[0028] A second aspect of an embodiment of the present invention discloses a system for automatically arranging a pipeline model, the system comprising:
[0029] An acquisition unit, used to acquire a free coordinate cluster of the three-dimensional design drawing area, wherein the free coordinate cluster includes unoccupied coordinates;
[0030] A parsing unit, used for parsing the pipeline layout instruction input by the user to obtain the pipeline type and pipeline specification;
[0031] A determination unit, used to determine the pipeline start position coordinates and the pipeline end position coordinates from the idle coordinate cluster;
[0032] The layout unit is used to determine the pipeline layout coordinate range from the idle coordinate cluster according to the pipeline type, the pipeline specification, the pipeline starting position coordinates and the pipeline end position coordinates, and to layout the pipeline model within the pipeline layout coordinate range.
[0033] Preferably, the arrangement unit comprises:
[0034] A calculation module, used to calculate the coordinates involved in the cross section of the pipeline model according to the pipeline specifications, taking the pipeline starting position coordinates and the pipeline end position coordinates as center points;
[0035] An acquisition module, used for acquiring a pipeline layout rule matching the pipeline type and the pipeline specification;
[0036] The calculation module is used to calculate the direction and layout range of the pipeline model in the idle coordinate cluster based on the pipeline layout rule, the coordinates involved in the cross section, the pipeline starting position coordinates and the pipeline end position coordinates to obtain the pipeline layout coordinate range.
[0037] A third aspect of an embodiment of the present invention discloses an electronic device, comprising: a processor and a memory, wherein the processor and the memory are connected via a communication bus; wherein the processor is used to call and execute a program stored in the memory; and the memory is used to store a program, wherein the program is used to implement the method for automatically arranging a pipeline model disclosed in the first aspect of the embodiment of the present invention.
[0038] A fourth aspect of an embodiment of the present invention discloses a computer-readable storage medium, in which computer-executable instructions are stored. The computer-executable instructions are used to execute the method for automatically arranging a pipeline model disclosed in the first aspect of the embodiment of the present invention.
[0039] Based on the above-mentioned embodiment of the present invention, a method, system, electronic device and storage medium for automatically arranging a pipeline model are provided. The method is as follows: obtaining a free coordinate cluster of a three-dimensional design drawing area, wherein the free coordinate cluster contains unoccupied coordinates; parsing the pipeline arrangement instruction input by the user to obtain the pipeline type and pipeline specification; determining the pipeline starting position coordinates and the pipeline end position coordinates from the free coordinate cluster; determining the pipeline arrangement coordinate range from the free coordinate cluster according to the pipeline type, pipeline specification, pipeline starting position coordinates and pipeline end position coordinates, and arranging the pipeline model within the pipeline arrangement coordinate range. In this solution, a free coordinate cluster is obtained. Parsing the pipeline arrangement instruction input by the user to obtain the pipeline type and pipeline specification, and determining the pipeline starting position coordinates and pipeline end position coordinates. According to the pipeline type, pipeline specification, pipeline starting position coordinates and pipeline end position coordinates, determining the pipeline arrangement coordinate range from the free coordinate cluster and arranging the pipeline model within the pipeline arrangement coordinate range, the pipeline model can be automatically arranged without relying on the designer, thereby improving the layout efficiency of the pipeline model. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0041] Figure 1 A flow chart of a method for automatically arranging a pipeline model provided by an embodiment of the present invention;
[0042] Figure 2 A schematic diagram of a method for automatically arranging a pipeline model provided by an embodiment of the present invention;
[0043] Figure 3 A structural block diagram of a system for automatically arranging pipeline models provided by an embodiment of the present invention;
[0044] Figure 4 Another structural block diagram of a system for automatically arranging pipeline models provided by an embodiment of the present invention;
[0045] Figure 5 Another structural block diagram of a system for automatically arranging a pipeline model provided by an embodiment of the present invention;
[0046] Figure 6 Another structural block diagram of a system for automatically arranging pipeline models provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0047] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions 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 are within the scope of protection of the present invention.
[0048] In this application, the terms "comprises", "comprising" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element.
[0049] In 3D design, the design of 3D pipelines is carried out according to the process flow. Specifically, the 3D pipeline design tool is used to draw the pipeline model according to the pipeline direction, the established building model, the equipment model and other objects. The building model, equipment model, pipeline model and other objects are superimposed to perform collision verification to check whether there are any design conflicts, collisions and other problems between the designs of different disciplines.
[0050] Currently, when arranging pipeline models, it is necessary to complete equipment modeling and building structure modeling first. Then, designers design pipelines based on the existing equipment models and building structure models, avoiding existing equipment models, building structure models and other objects, thereby avoiding mutual collisions in pipeline design and completing pipeline modeling.
[0051] When designing a pipeline, it is more dependent on the designer's preferences. The layout of the pipeline model is often designed by the designer based on previous engineering experience. The designer queries the design specifications to draw the pipeline and modifies the layout of the pipeline model after performing collision checks.
[0052] However, on the one hand, since the layout of the pipeline model needs to follow the project, the reusability of the pipeline model layout is very low; on the other hand, the layout space of the pipeline model is generally compact, and different designers have different engineering experience and understanding of design specifications, which will lead to designers' inconsiderateness when arranging the pipeline model, and then pipeline collisions will occur. It takes a lot of time and energy to perform collision checks and then modify the layout of the pipeline model; the above content will lead to low efficiency in the layout of the pipeline model.
[0053] Therefore, an embodiment of the present invention proposes a method, system, electronic device and storage medium for automatically arranging a pipeline model, and obtains an idle coordinate cluster. The pipeline arrangement instruction input by the user is parsed to obtain the pipeline type and pipeline specification, and the pipeline starting position coordinate and the pipeline end position coordinate are determined. According to the pipeline type, pipeline specification, pipeline starting position coordinate and pipeline end position coordinate, the pipeline arrangement coordinate range is determined from the idle coordinate cluster and the pipeline model is arranged within the pipeline arrangement coordinate range, so that the pipeline model can be automatically arranged without relying on the designer, thereby improving the layout efficiency of the pipeline model.
[0054] See also Figure 1 , shows a flow chart of a method for automatically arranging a pipeline model provided by an embodiment of the present invention, the method comprising:
[0055] Step S101: obtaining a free coordinate cluster of a three-dimensional design drawing area.
[0056] It should be noted that the free coordinate cluster includes unoccupied coordinates (three-dimensional coordinates) in the three-dimensional design drawing area.
[0057] In the process of implementing step S101, a coordinate cluster of the three-dimensional design drawing area is obtained, and the coordinates of the established models in the three-dimensional design drawing area are obtained. The coordinates of the established (existing) models in the three-dimensional design drawing area are occupied coordinates, wherein the established models include building models, building structure models, equipment models, etc.
[0058] The coordinates of the established model in the three-dimensional design drawing area are removed from the coordinate cluster of the three-dimensional design drawing area to obtain an idle coordinate cluster.
[0059] In practical applications, the coordinates of the three-dimensional design drawing area are processed based on the three-dimensional pipeline design software. The specific processing method is: obtain the coordinate cluster of the three-dimensional design drawing area; convert the coordinates of the established model in the three-dimensional design drawing area into occupied coordinates; remove the occupied coordinates from the coordinate cluster of the three-dimensional design drawing area, thereby obtaining a free coordinate cluster, which includes the unoccupied coordinates in the three-dimensional design drawing area, and these unoccupied coordinates are equivalent to the pipeline layout coordinates.
[0060] It should be noted that after obtaining an idle coordinate cluster, if some coordinates in the subsequent idle coordinate cluster are occupied, the occupied coordinates are removed from the idle coordinate cluster.
[0061] The unoccupied coordinates contained in the free coordinate cluster constitute the pipeline selection area, which is equivalent to: the coordinate range in which coordinates can be selected when arranging the pipeline model (i.e., the three-dimensional coordinate system selection range); the purpose of the pipeline selection area is to define the maximum range in which the pipeline model can be arranged.
[0062] Step S102: parsing the pipeline layout instruction input by the user to obtain the pipeline type and pipeline specification.
[0063] In the specific implementation of step S102, the pipeline layout instruction input by the user is obtained, and the pipeline layout instruction is parsed to obtain the pipeline type and pipeline specification.
[0064] Specifically, the pipeline layout instruction is parsed, and keywords in the pipeline layout instruction are extracted. The extracted keywords are pipeline types and pipeline specifications.
[0065] For example: the pipe layout instruction input by the user is "PN10 water supply pipe with an outer diameter of 108"; the pipe layout instruction "PN10 water supply pipe with an outer diameter of 108" is parsed, and the "outer diameter of 108" and "PN10" are extracted as pipe specifications, and the "water supply pipe" is extracted as the pipe type.
[0066] Step S103: Determine the pipeline start position coordinates and the pipeline end position coordinates from the idle coordinate cluster.
[0067] In the specific implementation of step S103, this solution provides two methods for determining the coordinates of the pipeline start position and the pipeline end position;
[0068] The first determination method is: based on the coordinate selection operation of the user on the idle coordinate cluster, the pipeline start position coordinate and the pipeline end position coordinate are determined from the idle coordinate cluster;
[0069] The second determination method is: parsing the coordinate information input by the user to obtain the pipeline start position coordinates and the pipeline end position coordinates in the idle coordinate cluster.
[0070] That is, after obtaining the idle coordinate cluster, the user can select the coordinates of the idle coordinate cluster, thereby selecting the pipeline start position coordinates and the pipeline end position coordinates from the idle coordinate cluster;
[0071] The user can also directly input coordinate information, which includes the starting position coordinates and the ending position coordinates of the pipeline in the idle coordinate cluster. The starting position coordinates and the ending position coordinates of the pipeline can be obtained by parsing the coordinate information.
[0072] In other words, the determined pipeline start position coordinates and pipeline end position coordinates can be used to prevent the pipeline model from exceeding the arrangable range.
[0073] Step S104: according to the pipeline type, pipeline specification, pipeline starting position coordinates and pipeline end position coordinates, determine the pipeline layout coordinate range from the free coordinate cluster, and layout the pipeline model within the pipeline layout coordinate range.
[0074] In the process of specifically implementing step S104, after determining the pipeline type, pipeline specification, pipeline starting position coordinates and pipeline end position coordinates, based on the determined pipeline type, pipeline specification, pipeline starting position coordinates and pipeline end position coordinates, the pipeline layout coordinate range is determined from the idle coordinate cluster, and the pipeline model is arranged within the pipeline layout coordinate range; the following explains how to determine the pipeline layout coordinate range and how to arrange the pipeline model within the pipeline layout coordinate range.
[0075] Instructions on how to determine the coordinate range of the piping layout:
[0076] Taking the coordinates of the pipeline starting position and the pipeline end position as the center point (equivalent to taking the starting point and the end point of the pipeline model to be arranged as the center point), calculate the coordinates involved in the cross section of the pipeline model according to the pipeline specification; obtain the pipeline layout rules that match the pipeline type and pipeline specifications (such as straight pipe section ≦6 meters, or slope 3‰); based on the pipeline layout rules, the coordinates involved in the cross section, the pipeline starting position coordinates and the pipeline end position coordinates, infer the direction and layout range of the pipeline model in the free coordinate cluster to obtain the pipeline layout coordinate range.
[0077] Among them, pipeline layout rules are also called pipeline design requirements or pipeline design principles.
[0078] Specifically, after determining the coordinates of the pipeline start position and the pipeline end position, the coordinates of the cross section of the pipeline model to be arranged are calculated according to the pipeline specifications with the coordinates of the pipeline start position and the pipeline end position as the center point.
[0079] For example, assuming that the pipe type is a water supply pipe and the pipe specification is an outer diameter of 108, after the user takes the pipe start position coordinates and the pipe end position coordinates in the free coordinate cluster, the user takes the pipe start position coordinates and the pipe end position coordinates as the center points and calculates the coordinates involved in the cross section of the pipe model to be arranged according to the pipe specification. The cross section is a circular section with a diameter of 108 and a center point of the pipe start position coordinates and the pipe end position coordinates.
[0080] Obtain pipeline layout rules that match the pipeline type and pipeline specifications. For example, assume that the pipeline layout instruction input by the user is "PN10 water supply pipeline with an outer diameter of 108"; the pipeline layout rule of the PN10 water supply pipeline is: set a slope of 3‰ from the starting point to the end point.
[0081] Based on the pipeline layout rules, the coordinates involved in the cross-section of the pipeline model, the coordinates of the pipeline starting position and the coordinates of the pipeline end position, the direction and layout range of the pipeline model are calculated in the idle coordinate cluster, so as to obtain the pipeline layout coordinate range, which is the coordinate range within which the pipeline model can travel, and covers the coordinates of the pipeline starting position and the coordinates of the pipeline end position.
[0082] The above is the relevant instructions on how to determine the coordinate range of pipeline layout.
[0083] Instructions on how to lay out the piping model within the piping layout coordinate range:
[0084] At least one pipeline layout method matching the pipeline type and pipeline specification is searched from the pipeline design database; at least one pipeline layout method is displayed for user selection, and pipe fitting data matching the pipeline type and pipeline specification is retrieved; according to the pipe fitting data and the pipeline layout method selected by the user, the pipeline model is arranged between the pipeline start position coordinates and the pipeline end position coordinates within the pipeline layout coordinate range.
[0085] Specifically, the pipeline design database contains pipeline layout methods corresponding to each pipeline type and each pipeline specification; for the pipeline type and pipeline specification extracted from the pipeline layout instruction, according to the proximity principle and the pipeline design database, at least one pipeline layout method matching the pipeline type and the pipeline specification is queried, for example, three pipeline layout methods matching the pipeline type and the pipeline specification are queried.
[0086] It should be noted that a variety of pipeline layouts can be formed between two points (between the starting position coordinates of the pipeline and the end position coordinates of the pipeline). This solution will query the pipeline layout that matches the pipeline type and pipeline specification from the pipeline design database based on the pipeline layout rules that match the pipeline type and pipeline specification. The queried pipeline layout is a commonly used pipeline layout that meets the pipeline layout rules (such as a straight line connection or a 90-degree turn).
[0087] For example: the pipeline layout rule that matches the pipeline type and pipeline specification is: straight pipe section ≤ 6 meters or 90-degree elbows are selected first; query the pipeline layout method that matches the pipeline type and the pipeline specification from the pipeline design database, and the pipeline layout method obtained by the query is the pipeline layout method that meets the aforementioned pipeline layout rules.
[0088] Therefore, before searching for at least one pipeline layout method that matches the pipeline type and pipeline specification from the pipeline design database, it is also necessary to obtain the pipeline layout rules that match the pipeline type and pipeline specification.
[0089] Display at least one pipeline arrangement method obtained by the query for selection by the user, and retrieve pipe fitting data matching the pipeline type and pipeline specification from the pipeline grade component library;
[0090] For example: assuming that the input pipeline layout instruction is "PN10 water supply pipeline with an outer diameter of 108", 3 feasible pipeline layout methods are obtained through the query; these 3 feasible pipeline layout methods are displayed for the user to choose, and the pipe fitting data under the level of "PN10 water supply pipeline" is retrieved.
[0091] According to the pipe fitting data and the pipe layout method selected by the user, the pipe model is arranged between the pipe start position coordinates and the pipe end position coordinates within the pipe layout coordinate range.
[0092] The above are instructions on how to arrange the pipeline model within the pipeline layout coordinate range.
[0093] In some embodiments, after the pipeline model is arranged, a pipeline arrangement path of the pipeline model can be obtained; based on the pipeline arrangement path of the pipeline model, a pipeline arrangement drawing of the pipeline model is generated, and the pipeline arrangement drawing is output.
[0094] To better understand how to arrange the pipeline model, the following uses processes A1 to A7 as examples.
[0095] A1. Convert the coordinates of the established model in the three-dimensional design drawing area into occupied coordinates, and remove the occupied coordinates from the coordinate cluster of the three-dimensional design drawing area, thereby obtaining an idle coordinate cluster.
[0096] A2. Start the automatic pipeline design program to obtain the pipeline layout instruction of "PN10 water supply pipeline with an outer diameter of 108" input by the user.
[0097] A3. Determine the starting position coordinates and the ending position coordinates of the pipeline selected or input by the user.
[0098] A4. The pipeline layout rule for the PN10 water supply pipeline is: a slope of 3‰ is set from the starting point to the end point.
[0099] A5. Calculate the coordinate range of the water supply pipeline with a cross-section of 108 and a slope of 3‰ to obtain the coordinate range of the pipeline layout.
[0100] A6. According to the proximity principle and pipeline design database, three feasible pipeline layout methods are selected for users to choose.
[0101] A7. According to the pipeline layout method selected by the user, retrieve the pipe fitting data under the PN10 water supply pipeline level, arrange the pipeline model within the pipeline layout coordinate range, and generate the pipeline layout drawing.
[0102] In an embodiment of the present invention, an idle coordinate cluster is obtained. The pipeline layout instruction input by the user is parsed to obtain the pipeline type and pipeline specification, and the pipeline start position coordinate and the pipeline end position coordinate are determined. According to the pipeline type, pipeline specification, pipeline start position coordinate and pipeline end position coordinate, the pipeline layout coordinate range is determined from the idle coordinate cluster and the pipeline model is arranged within the pipeline layout coordinate range, so that the pipeline model can be automatically arranged without relying on the designer, thereby improving the layout efficiency of the pipeline model.
[0103] In practical applications, this solution can realize the automatic layout of pipeline models based on artificial intelligence (AI), automatically layout pipeline models according to the pipeline layout instructions input by users and generate pipeline layout drawings; in order to better explain the application scenarios of this solution, Figure 2 A principle architecture diagram of a method for automatically arranging a pipeline model is shown, and this solution is illustrated from an application perspective.
[0104] Combination Figure 2 As can be seen from the displayed content, the user inputs a pipeline layout instruction in the interface; the pipeline layout instruction is parsed by AI to extract the pipeline type and pipeline specification.
[0105] The three-dimensional coordinates in the three-dimensional design drawing area are processed, and the pipeline layout coordinate range is determined in combination with the pipeline layout rules.
[0106] Based on the pipeline layout method selected by the user and the pipeline grade component library, the pipeline model is arranged within the pipeline layout coordinate range to obtain the pipeline layout path; and the pipeline layout drawing is generated based on the pipeline layout path.
[0107] From the contents of the above embodiments, it can be seen that the present solution can process coordinate data according to the pipeline layout instructions input by the user and the existing model, screen, call and analyze the coordinates of the pipeline model that can be arranged, and recommend a variety of feasible pipeline layout methods to the user in combination with the data in the pipeline design database; then, according to the pipeline layout method selected by the user, the pipe fitting data is retrieved to automatically arrange the pipeline model and generate the pipeline layout drawings.
[0108] Through the above content, the problem of pipeline collision adjustment due to the user's lack of consideration can be avoided, and the pipeline layout can be carried out according to the pipeline layout rules of different pipelines. It also avoids the limitations of users' personal pipeline design and improves the efficiency and accuracy of pipeline layout.
[0109] Corresponding to the method for automatically arranging a pipeline model provided by the above embodiment of the present invention, see Figure 3, the embodiment of the present invention also provides a structural block diagram of a system for automatically arranging a pipeline model, the system comprising: an acquisition unit 301, a parsing unit 302, a determination unit 303 and a arranging unit 304;
[0110] The acquisition unit 301 is used to acquire a free coordinate cluster in the three-dimensional design drawing area, where the free coordinate cluster includes unoccupied coordinates.
[0111] In a specific implementation, the acquisition unit 301 is specifically used to: acquire the coordinate cluster of the three-dimensional design drawing area, and acquire the coordinates of the established model in the three-dimensional design drawing area, the coordinates of the established model in the three-dimensional design drawing area being the occupied coordinates; and remove the coordinates of the established model in the three-dimensional design drawing area from the coordinate cluster of the three-dimensional design drawing area to obtain an idle coordinate cluster.
[0112] The parsing unit 302 is used to parse the pipeline layout instruction input by the user to obtain the pipeline type and pipeline specification.
[0113] The determination unit 303 is used to determine the pipeline start position coordinates and the pipeline end position coordinates from the idle coordinate cluster.
[0114] In a specific implementation, the determination unit 303 is specifically used to: determine the pipeline starting position coordinates and the pipeline end position coordinates from the idle coordinate cluster based on the user's coordinate selection operation on the idle coordinate cluster; or, parse the coordinate information input by the user to obtain the pipeline starting position coordinates and the pipeline end position coordinates in the idle coordinate cluster.
[0115] The layout unit 304 is used to determine the pipeline layout coordinate range from the free coordinate cluster according to the pipeline type, pipeline specification, pipeline start position coordinates and pipeline end position coordinates, and to layout the pipeline model within the pipeline layout coordinate range.
[0116] In an embodiment of the present invention, an idle coordinate cluster is obtained. The pipeline layout instruction input by the user is parsed to obtain the pipeline type and pipeline specification, and the pipeline start position coordinate and the pipeline end position coordinate are determined. According to the pipeline type, pipeline specification, pipeline start position coordinate and pipeline end position coordinate, the pipeline layout coordinate range is determined from the idle coordinate cluster and the pipeline model is arranged within the pipeline layout coordinate range, so that the pipeline model can be automatically arranged without relying on the designer, thereby improving the layout efficiency of the pipeline model.
[0117] Preferably, combined Figure 3 , see Figure 4 , shows another structural block diagram of a system for automatically arranging a pipeline model provided by an embodiment of the present invention, wherein the arranging unit 304 includes:
[0118] The calculation module 3041 is used to calculate the coordinates involved in the cross section of the pipeline model according to the pipeline specifications, taking the pipeline starting position coordinates and the pipeline end position coordinates as the center points.
[0119] The acquisition module 3042 is used to acquire pipeline layout rules that match the pipeline type and pipeline specifications.
[0120] The calculation module 3043 is used to calculate the direction and layout range of the pipeline model in the free coordinate cluster based on the pipeline layout rules, the coordinates involved in the cross section, the pipeline starting position coordinates and the pipeline end position coordinates to obtain the pipeline layout coordinate range.
[0121] Preferably, combined Figure 3 , see Figure 5 , shows another structural block diagram of a system for automatically arranging a pipeline model provided by an embodiment of the present invention, wherein the arranging unit 304 includes:
[0122] The query module 3044 is used to query at least one pipeline layout method that matches the pipeline type and pipeline specification from the pipeline design database.
[0123] The processing module 3045 is used to display at least one pipeline arrangement mode for the user to select, and retrieve the pipe fitting data matching the pipeline type and pipeline specification.
[0124] The layout module 3046 is used to layout the pipeline model between the pipeline start position coordinates and the pipeline end position coordinates within the pipeline layout coordinate range according to the pipe fitting data and the pipeline layout mode selected by the user.
[0125] Preferably, combined Figure 3 , see Figure 6 , shows another structural block diagram of a system for automatically arranging a pipeline model provided by an embodiment of the present invention, the system further comprising:
[0126] The generating unit 305 is used to generate a pipeline layout drawing of the pipeline model.
[0127] Preferably, an embodiment of the present invention further provides an electronic device, comprising: a processor and a memory, wherein the processor and the memory are connected via a communication bus; wherein the processor is used to call and execute a program stored in the memory; and the memory is used to store the program, and the program is used to implement the method for automatically arranging a pipeline model provided in the above method embodiment.
[0128] Preferably, an embodiment of the present invention further provides a computer-readable storage medium, in which computer-executable instructions are stored, and the computer-executable instructions are used to execute the method for automatically arranging a pipeline model provided by the above method embodiment.
[0129] In summary, the embodiments of the present invention provide a method, system, electronic device and storage medium for automatically arranging a pipeline model, and obtain an idle coordinate cluster. The pipeline layout instruction input by the user is parsed to obtain the pipeline type and pipeline specification, and the pipeline starting position coordinates and pipeline end position coordinates are determined. According to the pipeline type, pipeline specification, pipeline starting position coordinates and pipeline end position coordinates, the pipeline layout coordinate range is determined from the idle coordinate cluster and the pipeline model is arranged within the pipeline layout coordinate range, so that the pipeline model can be automatically arranged without relying on the designer, thereby improving the layout efficiency of the pipeline model.
[0130] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. The system and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without creative work.
[0131] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0132] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for automatically arranging a pipeline model, characterized in that: The method comprises: Acquire an idle coordinate cluster of the three-dimensional design drawing area, wherein the idle coordinate cluster includes unoccupied coordinates; Parsing the piping layout instructions input by the user to obtain the piping type and piping specification; Determine the pipeline start position coordinates and the pipeline end position coordinates from the idle coordinate cluster; According to the pipeline type, the pipeline specification, the pipeline starting position coordinates and the pipeline end position coordinates, a pipeline layout coordinate range is determined from the idle coordinate cluster, and a pipeline model is arranged within the pipeline layout coordinate range.
2. The method according to claim 1, characterized in that Determining a pipeline layout coordinate range from the idle coordinate cluster includes: Taking the starting position coordinates of the pipeline and the ending position coordinates of the pipeline as the center points, the coordinates involved in the cross section of the pipeline model are calculated according to the pipeline specifications; Acquire a pipeline layout rule matching the pipeline type and the pipeline specification; Based on the pipeline layout rule, the coordinates involved in the cross section, the pipeline starting position coordinates and the pipeline end position coordinates, the direction and layout range of the pipeline model are calculated in the free coordinate cluster to obtain the pipeline layout coordinate range.
3. The method according to claim 1, characterized in that The process of arranging the pipeline model within the pipeline arrangement coordinate range includes: Query at least one pipeline arrangement matching the pipeline type and the pipeline specification from a pipeline design database; Displaying at least one of the pipeline layout modes for selection by the user, and retrieving pipe fitting data matching the pipeline type and the pipeline specification; According to the pipe fitting data and the pipeline layout mode selected by the user, a pipeline model is arranged between the pipeline starting position coordinates and the pipeline end position coordinates within the pipeline layout coordinate range.
4. The method according to any one of claims 1 to 3, characterized in that: After arranging the pipeline model, it also includes: Generate piping layout drawings of piping models.
5. The method according to any one of claims 1 to 3, characterized in that: Determining the pipeline start position coordinates and the pipeline end position coordinates from the idle coordinate cluster includes: Based on the coordinate selection operation of the user on the idle coordinate cluster, determining the pipeline start position coordinates and the pipeline end position coordinates from the idle coordinate cluster; or, The coordinate information input by the user is parsed to obtain the pipeline start position coordinates and the pipeline end position coordinates in the idle coordinate cluster.
6. The method according to claim 1, characterized in that Get the free coordinate cluster of the 3D design area, including: Acquire a coordinate cluster of a three-dimensional design drawing area, and acquire coordinates of a model established in the three-dimensional design drawing area, wherein the coordinates of the model established in the three-dimensional design drawing area are occupied coordinates; The coordinates of the established model in the three-dimensional design drawing area are removed from the coordinate cluster of the three-dimensional design drawing area to obtain an idle coordinate cluster.
7. A system for automatically arranging a pipeline model, characterized in that: The system comprises: An acquisition unit, used to acquire a free coordinate cluster of the three-dimensional design drawing area, wherein the free coordinate cluster includes unoccupied coordinates; A parsing unit, used for parsing the pipeline layout instruction input by the user to obtain the pipeline type and pipeline specification; A determination unit, used to determine the pipeline start position coordinates and the pipeline end position coordinates from the idle coordinate cluster; The layout unit is used to determine the pipeline layout coordinate range from the idle coordinate cluster according to the pipeline type, the pipeline specification, the pipeline starting position coordinates and the pipeline end position coordinates, and to layout the pipeline model within the pipeline layout coordinate range.
8. The system according to claim 7, characterized in that The arrangement unit comprises: A calculation module, used to calculate the coordinates involved in the cross section of the pipeline model according to the pipeline specifications, taking the pipeline starting position coordinates and the pipeline end position coordinates as center points; An acquisition module, used for acquiring a pipeline layout rule matching the pipeline type and the pipeline specification; The calculation module is used to calculate the direction and layout range of the pipeline model in the idle coordinate cluster based on the pipeline layout rule, the coordinates involved in the cross section, the pipeline starting position coordinates and the pipeline end position coordinates to obtain the pipeline layout coordinate range.
9. An electronic device, characterized in that: include: A processor and a memory, wherein the processor and the memory are connected via a communication bus; wherein the processor is used to call and execute a program stored in the memory; The memory is used to store a program, and the program is used to implement the method for automatically arranging a pipeline model as described in any one of claims 1-6.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to execute the method for automatically arranging a pipeline model as described in any one of claims 1-6.
