Pipeline model drawing method and device, electronic equipment and storage medium

By obtaining the pipe segment type and automatically inserting the connectors using the welding database, the problem of low statistical efficiency of connectors in the prior art is solved, and efficient and accurate connector statistics are achieved.

CN119475464AInactive Publication Date: 2025-02-18HANGZHOU OXYGEN PLANT GRP CO LTD +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411611269.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-12
Publication Date
2025-02-18
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the prior art, when pipe welding, there are many types and specifications of connectors, which require manual statistics on the types and quantity of connectors, which are inefficient and prone to incorrect statistics and missed statistics.

Method used

By obtaining the pipe segment type, using the welding database to obtain matching connectors, and generating a connector list based on preset classification rules, automatically inserting the connector into the pipeline model.

Benefits of technology

Save labor and time costs, improve the efficiency and accuracy of connector statistics, and avoid the influence of subjective factors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119475464A_ABST
    Figure CN119475464A_ABST
Patent Text Reader

Abstract

The invention discloses a pipeline model drawing method and device, electronic equipment and a storage medium, and relates to the field of pipeline welding.The method comprises the steps that according to an obtained pipe section drawing instruction, the pipe section type of the current position is obtained; if it is determined that the pipe section type of the current position is an elbow pipe section, a matched first connecting piece is obtained through a welding database, and the first connecting piece is inserted into the current position; according to the obtained pipeline model completion instruction, all connecting pieces of the current pipeline model are obtained, and according to a preset classification rule, a connecting piece list of the current pipeline model is obtained. According to the technical scheme, the labor cost and the time cost consumed in the statistical process of the pipeline connecting pieces are saved, the obtaining efficiency of the connecting piece list is improved, the statistical mode is not affected by subjective factors of designers, the phenomena of wrong statistics and missed statistics are avoided, and the statistical efficiency is improved. And the accuracy of the statistical result of the pipeline connecting piece is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of pipeline welding, and in particular to a pipeline model drawing method, device, electronic equipment and storage medium. Background Art

[0002] In the field of pipeline welding, 3D pipeline modeling and material statistics play an important role in computer-aided plant design, and are also the information basis for the overall management of pipeline welding projects.

[0003] In the prior art, since there are many types and specifications of connectors used in pipeline welding, it is necessary to manually count the types and quantities of connectors used at each connection point after the pipeline model is drawn, or the designer needs to estimate the types and quantities of connectors required based on the drawn pipeline model and the size specifications of each connector.

[0004] However, this statistical method not only consumes a lot of manpower and time costs, but also has low statistical efficiency. In addition, the above statistical method is often affected by the subjective factors of designers, and often results in wrong statistics and missed statistics, resulting in large errors in the statistical results. Summary of the invention

[0005] The present invention provides a pipeline model drawing method, device, electronic equipment and storage medium to solve the problem of low statistical efficiency of pipeline connectors.

[0006] According to one aspect of the present invention, a pipeline model drawing method is provided, comprising:

[0007] According to the obtained pipe segment drawing instruction, the pipe segment type at the current position is obtained; wherein the pipe segment type includes a straight pipe segment and an elbow pipe segment;

[0008] If it is determined that the pipe segment type at the current position is an elbow pipe segment, a matching first connector is obtained through a welding database, and the first connector is inserted into the current position;

[0009] According to the acquired pipeline model completion instruction, all connectors of the current pipeline model are acquired, and according to the preset classification rules, a list of connectors of the current pipeline model is acquired.

[0010] After obtaining the pipe segment type at the current position according to the obtained pipe segment drawing instruction, the method further includes: if it is determined that the pipe segment type at the current position is a straight pipe segment, judging whether the drawing size of the straight pipe segment meets the preset segmentation condition; if it is determined that the drawing size of the straight pipe segment meets the preset segmentation condition, inserting a matching second connector at the current position; if it is determined that the drawing size of the straight pipe segment does not meet the preset segmentation condition, not inserting any connector at the current position.

[0011] The method of obtaining a matching first connector through a welding database further includes: obtaining a matching set of candidate connectors according to drawing parameters of a current position; wherein the drawing parameters include a drawing scale and a drawing size; sorting the candidate connectors in the set of candidate connectors according to historical drawing records, and displaying the sorted set of candidate connectors through a display list; and obtaining a matching first connector according to a selection instruction obtained in the display list.

[0012] After inserting the first connecting piece into the current position, it also includes: obtaining the expected process parameters of the current position based on the adjacent upstream pipe section, and comparing the process parameters of the first connecting piece with the expected process parameters; if it is determined that the difference between the process parameters of the first connecting piece and the expected process parameters is greater than a preset difference threshold, issuing a prompt for abnormal connection drawing.

[0013] The obtaining of a matching candidate connector set according to the drawing parameters of the current position specifically includes: obtaining a drawing size error threshold matching the current user according to historical drawing records; and obtaining a matching candidate connector set according to the drawing parameters of the current position and the drawing size error threshold of the current user.

[0014] The pipeline model drawing method also includes: in response to obtaining an edit request for the first pipe segment, determining whether the first pipe segment is a critical butt-joint pipe segment of the sub-pipeline area; wherein different sub-pipeline areas are located in the same pipeline model drawing interface, and there is no connection relationship between different sub-pipeline areas; the critical butt-joint pipe segment is a pipe segment that has a connection relationship with pipe segments in other sub-pipeline areas; if it is determined that the first pipe segment is the critical butt-joint pipe segment of the sub-pipeline area, responding to the edit request; if it is determined that the first pipe segment is not the critical butt-joint pipe segment of the sub-pipeline area, determining whether the first target object has been locked by other users; wherein the first target object includes the first pipe segment, the adjacent upstream and downstream pipe segments of the first pipe segment, and the sub-pipeline area where the first pipe segment is located; if it is determined that the first target object has not been locked by other users, responding to the edit request; if it is determined that the first target object has been locked by other users, not responding to the edit request.

[0015] According to one aspect of the present invention, there is provided a pipeline model drawing device, comprising:

[0016] A pipe segment type acquisition module, used to acquire the pipe segment type at the current position according to the acquired pipe segment drawing instruction; wherein the pipe segment type includes a straight pipe segment and an elbow pipe segment;

[0017] A pipe segment insertion execution module is used to obtain a matching first connector from a welding database and insert the first connector into the current position if it is determined that the pipe segment type at the current position is an elbow pipe segment;

[0018] The classification and statistics execution module is used to complete the instruction according to the acquired pipeline model, obtain all the connectors of the current pipeline model, and obtain the connector list of the current pipeline model according to the preset classification rules.

[0019] According to another aspect of the present invention, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable 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 pipeline model drawing method described in any embodiment of the present invention.

[0020] 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 the pipeline model drawing method described in any embodiment of the present invention when executed.

[0021] According to another aspect of the present invention, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the pipeline model drawing method according to any embodiment of the present invention is implemented.

[0022] The technical solution of the embodiment of the present invention, after obtaining the type of the pipe segment at the current position according to the obtained pipe segment drawing instruction, if it is determined that the pipe segment type at the current position is an elbow pipe segment, the matching first connector is obtained through the welding database, and the first connector is inserted into the current position, and finally the instruction is completed according to the obtained pipeline model, all connectors of the current pipeline model are obtained, and the connector list of the current pipeline model is obtained according to the preset classification rules. This not only saves the manpower cost and time cost of the pipeline connector statistics process, improves the efficiency of obtaining the connector list, but also the statistical method will not be affected by the subjective factors of the designer, avoids the occurrence of wrong statistics and missing statistics, and improves the accuracy of the pipeline connector statistics results.

[0023] 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

[0024] 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.

[0025] Figure 1 is a flow chart of a pipeline model drawing method provided according to the first embodiment of the present invention;

[0026] Figure 2 is a flow chart of another pipeline model drawing method provided according to the second embodiment of the present invention;

[0027] Figure 3 is a flowchart of another pipeline model drawing method provided according to Embodiment 3 of the present invention;

[0028] Figure 4 is a structural schematic diagram of a pipeline model drawing device provided according to a fourth embodiment of the present invention;

[0029] Figure 5 It is a structural schematic diagram of an electronic device for implementing the pipeline model drawing method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0030] 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.

[0031] 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.

[0032] Embodiment 1

[0033] Figure 1 A flow chart of a pipeline model drawing method provided in Embodiment 1 of the present invention is shown in FIG. Figure 1 As shown, the method is suitable for synchronously inserting the required connectors during the process of drawing the pipeline model. The method can be executed by the pipeline model drawing device in any embodiment of the present invention. The pipeline model drawing device can be implemented in the form of hardware and / or software, and the pipeline model drawing device can be configured in an electronic device. Figure 1 As shown, the method includes:

[0034] S101. Obtain the type of the pipe segment at the current position according to the obtained pipe segment drawing instruction; wherein the pipe segment type includes a straight pipe segment and an elbow pipe segment.

[0035] In the pipeline model drawing interface, the user can draw relevant pipeline graphics by dragging the mouse. For a three-dimensional pipeline model, it can be specifically divided into a straight pipeline part (i.e. a straight pipe segment) and an elbow pipeline part (i.e. an elbow pipe segment). The point coordinates of the dragging instruction issued by the user are used to determine whether the user is currently drawing a straight pipe segment or an elbow pipe segment.

[0036] S102: If it is determined that the pipe segment type at the current position is an elbow pipe segment, obtain a matching first connector through a welding database, and insert the first connector into the current position.

[0037] Each connector includes a variety of process parameters when entering the welding database, such as name, caliber, size, weight, label and remarks; for the elbow pipe section in the pipeline model, it is necessary to add connectors to ensure the connection between pipelines in different directions. For example, when a pipeline A that transmits from left to right switches to a pipeline B that transmits from top to bottom, a right-turned connector C is required as the connecting part between the two.

[0038] One or more process parameters (e.g., caliber, size, and weight, etc.) of the connector required to be used in the elbow pipe segment can be obtained in advance by providing a parameter configuration interface to the user and based on the user's parameter filling results. For example, the user configures the caliber of the connector to 100; the pipeline model drawing device directly searches for a matching connector (i.e., a first connector) in the welding database based on the required process parameters filled in by the user and, when determining that the pipe segment type at the current position is an elbow pipe segment, inserts the first connector into the current position.

[0039] In particular, if the required process parameters filled in by the user match multiple connectors in the welding database, the multiple connectors are displayed to confirm the corresponding connector through the user selection result, and then when it is determined that the pipe segment type at the current position is an elbow pipe segment, the matching first connector is directly searched in the welding database, and the first connector is inserted into the current position. In addition, after determining that the pipe segment type at the current position is an elbow pipe segment, a parameter configuration interface can be provided to the user, and based on one or more process parameters of the connector required to be used in the current elbow pipe segment obtained through the parameter configuration interface, a matching first connector is searched in the welding database, and the first connector is inserted into the current position.

[0040] In particular, different process parameters can be pre-configured according to the different directions of the elbow pipe segment; for example, the direction of the pipe segment can be configured into eight directions, namely, turn right and down, turn right and up, turn left and down, turn left and up, turn up to left, turn up to right, turn down to left and turn down to right, etc., and of course, it can also be configured into other directions according to actual needs; optionally, in an embodiment of the present invention, the method of dividing the direction of the elbow pipe segment is not specifically limited; according to the direction of the current elbow pipe segment, the matching process parameters are obtained, and the first connecting piece at the current position is obtained according to the process parameters.

[0041] Optionally, in an embodiment of the present invention, after obtaining the pipe segment type at the current position according to the acquired pipe segment drawing instruction, it also includes: if it is determined that the pipe segment type at the current position is a straight pipe segment, judging whether the drawing size of the straight pipe segment meets the preset segmentation condition; if it is determined that the drawing size of the straight pipe segment meets the preset segmentation condition, inserting a matching second connector at the current position; if it is determined that the drawing size of the straight pipe segment does not meet the preset segmentation condition, not inserting any connector at the current position.

[0042] Specifically, for a straight pipe segment, if its length is too long, it is not convenient for pipeline transportation, nor for welding operations when connecting the pipelines. When the length is too long and the weight is too heavy, it may even affect the bearing capacity of the pipeline itself. Therefore, it is necessary to cut the pipeline according to its actual length, and the cut pipelines are connected through connectors; therefore, the drawing size may refer to the length of the pipe segment, and the corresponding preset segmentation condition refers to whether the length of the pipe segment reaches the preset length threshold.

[0043] In particular, pipes of different diameters have different weight increases due to length changes, and their carrying capacities are also different. Therefore, different length thresholds can be set for straight pipe segments of different diameters. The larger the diameter, the larger the corresponding preset length threshold, and the smaller the diameter, the smaller the corresponding preset length threshold. Therefore, the drawing dimensions can be the pipe segment diameter and the pipe segment length, and the corresponding preset segmentation condition refers to whether the pipe segment length under the current pipe segment diameter reaches the corresponding preset length threshold. Therefore, according to the drawing dimensions of the straight pipe segment, the automatic addition of connectors for the straight pipe segment is realized, which not only ensures the compliance of the pipeline model, but also improves the efficiency of obtaining connectors.

[0044] S103, according to the acquired pipeline model completion instruction, all connectors of the current pipeline model are acquired, and according to the preset classification rules, a connector list of the current pipeline model is acquired.

[0045] The preset classification rule refers to classifying the various connectors used in the current pipeline model according to one or more process parameters in the connectors; after obtaining the drawn pipeline model, the different categories of connectors used in the pipeline model can be classified according to the preset classification rules; for example, according to different caliber values ​​or different numerical ranges of caliber values, connectors of different calibers or different caliber ranges are assigned to different categories, thereby realizing the classification and summary of different categories of connectors in the current pipeline model.

[0046] The technical solution of the embodiment of the present invention, after obtaining the type of the pipe segment at the current position according to the obtained pipe segment drawing instruction, if it is determined that the pipe segment type at the current position is an elbow pipe segment, the matching first connector is obtained through the welding database, and the first connector is inserted into the current position, and finally the instruction is completed according to the obtained pipeline model, all connectors of the current pipeline model are obtained, and the connector list of the current pipeline model is obtained according to the preset classification rules. This not only saves the manpower cost and time cost consumed in the pipeline connector statistics process, improves the efficiency of obtaining the connector list, but also the statistical method will not be affected by the subjective factors of the designer, avoids the occurrence of wrong statistics and missing statistics, and improves the accuracy of the pipeline connector statistics results.

[0047] Embodiment 2

[0048] Figure 2 This is a flow chart of a pipeline model drawing method provided by the second embodiment of the present invention. The relationship between this embodiment and the above embodiment is that if the user does not pre-set the size parameters of the required connector, a list of alternative connectors is provided to the user. Figure 2 As shown, the method includes:

[0049] S201. Obtain the type of the pipe segment at the current position according to the obtained pipe segment drawing instruction; wherein the pipe segment type includes a straight pipe segment and an elbow pipe segment.

[0050] S202: If it is determined that the pipe segment type at the current position is an elbow pipe segment, a set of matching candidate connectors is obtained according to drawing parameters of the current position; wherein the drawing parameters include a drawing scale and a drawing size.

[0051] The drawing scale is used to indicate the proportional relationship between the pipe model size and the actual pipe size. For example, 1 cm in the pipe model represents 1 meter of the actual pipe size, so the ratio between the two is 1:100. The drawing size is the pipe segment size drawn by the user in the pipe model drawing interface. According to the drawing scale and drawing size, the actual size information of the connector that the user wants to draw can be obtained. Therefore, according to the drawing scale and drawing size, the alternative connectors that meet the above conditions can be screened in the welding database, and the alternative connectors can be grouped into an alternative connector set.

[0052] S203 , sorting the candidate connectors in the candidate connector set according to the historical drawing records, and displaying the sorted candidate connector set in a display list.

[0053] The historical drawing record may include the types and numbers of connectors used in the elbow pipe section of the current pipeline model, thereby knowing the usage frequency of each candidate connector in the elbow pipe section of the current pipeline model, which reflects the uniformity and standardization of the use of connectors in the pipeline model; it may also include the types and numbers of connectors used by the current user under the elbow pipe section, thereby knowing the usage frequency of each candidate connector by the current user, which reflects the usage habits of designers in pipeline design; according to one or two of the above-mentioned usage frequency values, sort the candidate connectors in the candidate connector set, and then display the sorted candidate connectors in the form of a display list; thereby improving the convenience of selecting the connectors required by the user, and improving the screening efficiency of the connectors and the drawing efficiency of the pipeline model.

[0054] S204: Obtain a matching first connector according to the selection instruction obtained in the display list, and insert the first connector into the current position.

[0055] Optionally, in an embodiment of the present invention, after inserting the first connecting piece into the current position, it also includes: acquiring expected process parameters of the current position based on the adjacent upstream pipe section, and comparing the process parameters of the first connecting piece with the expected process parameters; if it is determined that the difference between the process parameters of the first connecting piece and the expected process parameters is greater than a preset difference threshold, issuing a connector drawing abnormality prompt.

[0056] Specifically, the specific function of the connector is to connect the upstream pipe section and the downstream pipe section, and the downstream pipe section is usually drawn after the connector is drawn. Therefore, when drawing the connector, the upstream pipe section is usually drawn, but the downstream pipe section is not drawn. At this time, the process parameters of the downstream connector (that is, the current connector) to which it is connected can be predicted based on the process parameters of the adjacent upstream pipe section, so that the downstream connector can adapt to the parameter requirements of the upstream pipe section; wherein, the adjacent upstream pipe section refers to the pipe section connected to the current position and located in the upstream direction of the pipeline flow direction.

[0057] For example, based on the process parameters of the adjacent upstream pipe section, the threshold values ​​of various downstream parameters that can be adapted under the process parameters, such as maximum caliber, minimum caliber, maximum size, minimum size, maximum weight and minimum weight, etc., can be found through a mapping table, thereby obtaining the expected process parameters of the downstream; the expected process parameters are compared with the process parameters of the first connector; if the numerical difference between any of the process parameters is greater than the preset difference threshold corresponding to the process parameter, it means that the first connector at the current position may have an adaptation difference with the upstream pipe section. At this time, a prompt for abnormal drawing of the connector can be issued, so as to verify the connector selection results and improve the accuracy of the pipe section drawing results.

[0058] Optionally, in an embodiment of the present invention, obtaining a set of matching candidate connectors based on the drawing parameters of the current position specifically includes: obtaining a drawing size error threshold that matches the current user based on historical drawing records; and obtaining a set of matching candidate connectors based on the drawing parameters of the current position and the drawing size error threshold of the current user.

[0059] Specifically, different users often have different drawing habits. For example, some users are accustomed to drawing more precise size information to directly find the only matching connector in the welding database to avoid secondary screening of connectors, or to find a smaller number of alternative connectors to reduce the number of alternative connectors displayed in the display list. At this time, for this type of user, the corresponding drawing size error threshold is relatively small, that is, when searching for alternative connectors based on the drawing parameters of the current position, a relatively precise search is performed. For example, when the caliber size of the current position is 100, the caliber size of 90 to the caliber size of 110 is used as the query condition.

[0060] At the same time, some users are accustomed to drawing relatively simple size information, so as to provide various alternative connectors through the welding database, and then select the target object by clicking in the display list to reduce their own drawing behavior. At this time, for this type of user, the corresponding drawing size error threshold is relatively large, that is, when searching for alternative connectors according to the drawing parameters of the current position, a relatively large range of searches are performed. For example, when the caliber size of the current position is 100, the caliber size of 50 to the caliber size of 150 is used as the query condition.

[0061] S205. According to the acquired pipeline model completion instruction, all connectors of the current pipeline model are acquired, and according to the preset classification rules, a connector list of the current pipeline model is acquired.

[0062] The drawing parameter error thresholds of different users can be obtained by comparing the size information actually drawn in their historical drawing behaviors with the size information of the connector finally selected. The greater the error between the actual drawing size and the final selected size, the greater the drawing size error threshold of the user, and the smaller the error between the actual drawing size and the final selected size, the smaller the drawing size error threshold of the user. In this way, the drawing habits of different users are obtained according to the historical drawing records, and then an accurate list of alternative connectors is provided to the current user according to the drawing parameters, which not only avoids the loss of the connectors actually required by the user, but also reduces the number of connectors in the list, further improves the accuracy of the connector selection results, and improves the drawing efficiency of the pipeline model.

[0063] The technical solution of the embodiment of the present invention obtains a matching set of alternative connectors according to the drawing parameters of the current position, then sorts the individual alternative connectors in the set according to the historical drawing records, and displays the sorted set of alternative connectors through a display list, and finally obtains the first matching connector according to the selection instruction obtained in the display list, thereby improving the convenience of selecting the connectors required by the user, and improving the screening efficiency of the connectors and the drawing efficiency of the pipeline model.

[0064] Embodiment 3

[0065] Figure 3 This is a flow chart of a pipeline model drawing method provided by the third embodiment of the present invention. The relationship between this embodiment and the above embodiment is that for a pipeline model drawing interface shared by multiple people, it is necessary to determine whether to execute the editing request issued by the current user according to the locking condition. Figure 3 As shown, the method includes:

[0066] S301. In response to obtaining an edit request for a first pipe segment, determine whether the first pipe segment is a critical butt-joint pipe segment of the sub-pipeline area in which it is located; wherein different sub-pipeline areas are located in the same pipe model drawing interface, and there is no connection relationship between different sub-pipeline areas; the critical butt-joint pipe segment is a pipe segment that has a connection relationship with pipe segments in other sub-pipeline areas.

[0067] In a pipeline model drawing interface, there may be multiple sub-pipeline areas; there is no connection relationship between the various sub-pipeline areas; different sub-pipeline areas allow different users to edit them simultaneously to improve the drawing efficiency of the pipeline model and the convenience of pipeline model integration; the sub-pipeline area includes two types of pipe segments, one is the internal pipe segment of the area, that is, the pipe segment that will not be connected to the pipe segments in other sub-pipeline areas, that is, the non-critical butted pipe segment; the other is the pipe segment that will be connected to the pipe segments in other sub-pipeline areas, that is, the critical butted pipe segment.

[0068] S302: If it is determined that the first pipe section is a critical butted pipe section in the sub-pipeline area, respond to the editing request.

[0069] For the critical butt-joint pipe section, since the pipe section needs to be connected with the pipe sections in other sub-pipeline areas, the change of its pipe section structure will inevitably affect the pipe section structure in other sub-pipeline areas connected to it. Therefore, for the critical butt-joint pipe section, each user has the authority to edit it, that is, directly respond to the current editing request at this time.

[0070] S303. If it is determined that the first pipe segment is not a critical butted pipe segment in the sub-pipeline area, determine whether the first target object has been locked by other users; wherein the first target object includes the first pipe segment, adjacent upstream and downstream pipe segments of the first pipe segment, and the sub-pipeline area where the first pipe segment is located.

[0071] If the first pipe segment is not a critical butted pipe segment in the sub-pipeline area, whether editing is allowed depends on whether the first target object has been locked by other users. Locking means that other users are editing it or it has been set to be temporarily uneditable by other users. If the first pipe segment itself has been locked by other users, it obviously cannot respond to the current editing request to avoid deviations in the editing of the same pipe segment by multiple users. If the adjacent upstream and downstream pipe segments of the first pipe segment have been locked by other users, the update of the first pipe segment will inevitably affect the structure of the adjacent upstream and downstream pipe segments, and it cannot respond to the current editing request at this time. In addition, if the sub-pipeline area where the first pipe segment is located is locked as a whole, it also means that all non-critical butted pipe segments in the area are not allowed to be edited.

[0072] S304: If it is determined that the first target object is not locked by other users, respond to the editing request;

[0073] S305: If it is determined that the first target object has been locked by other users, then the editing request is not responded to.

[0074] The technical solution of the embodiment of the present invention determines whether to respond to the current editing request after obtaining the editing request of the first pipe segment based on whether the first pipe segment is a critical connecting pipe segment of the sub-pipeline area and whether the first target object has been locked by other users. Therefore, in the pipeline model drawing interface shared by multiple people, whether to execute the currently obtained editing request is judged by the locking condition, which improves the drawing efficiency of the pipeline model on the basis of realizing editing authority management, and at the same time improves the convenience of pipeline model integration.

[0075] Embodiment 4

[0076] Figure 4 : is a structural block diagram of a pipeline model drawing device provided by a fourth embodiment of the present invention, and the pipeline model drawing device specifically includes:

[0077] The pipe segment type acquisition module 401 is used to acquire the pipe segment type at the current position according to the acquired pipe segment drawing instruction; wherein the pipe segment type includes a straight pipe segment and an elbow pipe segment;

[0078] The pipe segment insertion execution module 402 is used to obtain a matching first connector from a welding database and insert the first connector into the current position if it is determined that the pipe segment type at the current position is an elbow pipe segment;

[0079] The classification and statistics execution module 403 is used to complete the instruction according to the acquired pipeline model, obtain all the connectors of the current pipeline model, and obtain the connector list of the current pipeline model according to the preset classification rules.

[0080] The technical solution of the embodiment of the present invention, after obtaining the type of the pipe segment at the current position according to the obtained pipe segment drawing instruction, if it is determined that the pipe segment type at the current position is an elbow pipe segment, the matching first connector is obtained through the welding database, and the first connector is inserted into the current position, and finally the instruction is completed according to the obtained pipeline model, all connectors of the current pipeline model are obtained, and the connector list of the current pipeline model is obtained according to the preset classification rules. This not only saves the manpower cost and time cost of the pipeline connector statistics process, improves the efficiency of obtaining the connector list, but also the statistical method will not be affected by the subjective factors of the designer, avoids the occurrence of wrong statistics and missing statistics, and improves the accuracy of the pipeline connector statistics results.

[0081] Optionally, the pipeline model drawing device is also used to determine whether the drawing size of the straight pipe segment meets the preset segmentation conditions if it is determined that the pipe segment type at the current position is a straight pipe segment; if it is determined that the drawing size of the straight pipe segment meets the preset segmentation conditions, insert a matching second connector at the current position; if it is determined that the drawing size of the straight pipe segment does not meet the preset segmentation conditions, do not insert any connector at the current position.

[0082] Optionally, the pipe segment insertion execution module 402 is specifically used to obtain a matching set of alternative connectors based on the drawing parameters of the current position; wherein the drawing parameters include a drawing scale and a drawing size; sort the individual alternative connectors in the set of alternative connectors according to historical drawing records, and display the sorted set of alternative connectors through a display list; and obtain a matching first connector according to the selection instruction obtained in the display list.

[0083] Optionally, the pipeline model drawing device is also used to obtain the expected process parameters of the current position based on the adjacent upstream pipe section, and compare the process parameters of the first connecting piece with the expected process parameters; if it is determined that the difference between the process parameters of the first connecting piece and the expected process parameters is greater than a preset difference threshold, a connector drawing abnormality prompt is issued.

[0084] Optionally, the pipeline model drawing device is specifically used to obtain a drawing size error threshold matching the current user based on historical drawing records; and obtain a matching set of candidate connectors based on the drawing parameters of the current position and the drawing size error threshold of the current user.

[0085] Optionally, the pipeline model drawing device is also used to respond to an edit request for the first pipe segment and determine whether the first pipe segment is a critical butt-joint pipe segment of the sub-pipeline area where it is located; wherein different sub-pipeline areas are located in the same pipeline model drawing interface, and there is no connection relationship between different sub-pipeline areas; the critical butt-joint pipe segment is a pipe segment that has a connection relationship with pipe segments in other sub-pipeline areas; if it is determined that the first pipe segment is the critical butt-joint pipe segment of the sub-pipeline area, respond to the edit request; if it is determined that the first pipe segment is not the critical butt-joint pipe segment of the sub-pipeline area, determine whether the first target object has been locked by other users; wherein the first target object includes the first pipe segment, the adjacent upstream and downstream pipe segments of the first pipe segment, and the sub-pipeline area where the first pipe segment is located; if it is determined that the first target object has not been locked by other users, respond to the edit request; if it is determined that the first target object has been locked by other users, do not respond to the edit request.

[0086] The pipeline model drawing device provided by the present invention can execute the pipeline model drawing method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method. For technical details not described in detail in this embodiment, please refer to the pipeline model drawing method provided by any embodiment of the present invention.

[0087] Embodiment 5

[0088] Figure 5 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 processing, 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.

[0089] like Figure 5 As 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.

[0090] 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.

[0091] 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 pipeline model drawing method.

[0092] In some embodiments, the pipeline model drawing method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit. In some embodiments, part or all of the computer program may be loaded and / or installed on a heterogeneous hardware accelerator via a ROM and / or a communication unit. When the computer program is loaded into RAM and executed by a processor, one or more steps of the pipeline model drawing method described above may be performed. Alternatively, in other embodiments, the processor may be configured to execute the pipeline model drawing method in any other appropriate manner (e.g., by means of firmware).

[0093] 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.

[0094] The 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 pipeline model drawing device, so that when the computer programs are executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer programs may be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.

[0095] 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.

[0096] To provide interaction with a user, the systems and techniques described herein may be implemented on a heterogeneous hardware accelerator having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) through which a user can provide input to the heterogeneous hardware accelerator. Other types of devices may also be used to provide interaction with a 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).

[0097] 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.

[0098] 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.

[0099] 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.

[0100] 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 pipeline model drawing method, characterized in that: include: According to the obtained pipe segment drawing instruction, the pipe segment type at the current position is obtained; wherein the pipe segment type includes a straight pipe segment and an elbow pipe segment; If it is determined that the pipe segment type at the current position is an elbow pipe segment, a matching first connector is obtained through a welding database, and the first connector is inserted into the current position; According to the acquired pipeline model completion instruction, all connectors of the current pipeline model are acquired, and according to the preset classification rules, a list of connectors of the current pipeline model is acquired.

2. The method according to claim 1, characterized in that After obtaining the type of the pipe segment at the current position according to the obtained pipe segment drawing instruction, it also includes: If it is determined that the pipe segment type at the current position is a straight pipe segment, whether the drawing size of the straight pipe segment meets the preset segmentation condition is determined; If it is determined that the drawing size of the straight pipe segment meets the preset segmentation condition, inserting a matching second connector at the current position; If it is determined that the drawing size of the straight pipe segment does not meet the preset segmentation conditions, no connector is inserted at the current position.

3. The method according to claim 1, characterized in that The step of obtaining a matching first connecting piece from a welding database further includes: According to the drawing parameters of the current position, a set of matching candidate connectors is obtained; wherein the drawing parameters include a drawing scale and a drawing size; According to the historical drawing records, the candidate connectors in the candidate connector set are sorted, and the sorted candidate connector set is displayed in a display list; A matching first connector is obtained according to the selection instruction obtained in the display list.

4. The method according to claim 3, characterized in that After inserting the first connecting member into the current position, the method further comprises: Acquire expected process parameters of the current position according to the adjacent upstream pipe section, and compare the process parameters of the first connecting piece with the expected process parameters; If it is determined that the difference between the process parameters of the first connecting piece and the expected process parameters is greater than a preset difference threshold, a prompt of abnormal connection drawing is issued.

5. The method according to claim 3, characterized in that: The step of obtaining a set of matching candidate connectors according to the drawing parameters of the current position specifically includes: According to the historical drawing records, obtain the drawing size error threshold that matches the current user; According to the drawing parameters of the current position and the drawing size error threshold of the current user, a set of matching candidate connectors is obtained.

6. The method according to claim 1, characterized in that The pipeline model drawing method further includes: In response to obtaining an edit request for a first pipe segment, determining whether the first pipe segment is a critical butted pipe segment of the sub-pipeline area where the first pipe segment is located; wherein different sub-pipeline areas are located in the same pipe model drawing interface, and there is no connection relationship between different sub-pipeline areas; the critical butted pipe segment is a pipe segment that has a connection relationship with pipe segments in other sub-pipeline areas; If it is determined that the first pipe section is a critical butted pipe section of the sub-pipeline area, responding to the editing request; If it is determined that the first pipe segment is not a critical butted pipe segment of the sub-pipeline area, determine whether the first target object has been locked by other users; wherein the first target object includes the first pipe segment, the adjacent upstream and downstream pipe segments of the first pipe segment, and the sub-pipeline area where the first pipe segment is located; If it is determined that the first target object is not locked by other users, responding to the editing request; If it is determined that the first target object has been locked by other users, the editing request is not responded to.

7. A pipeline model drawing device, characterized in that: include: A pipe segment type acquisition module, used to acquire the pipe segment type at the current position according to the acquired pipe segment drawing instruction; wherein the pipe segment type includes a straight pipe segment and an elbow pipe segment; A pipe segment insertion execution module is used to obtain a matching first connector from a welding database and insert the first connector into the current position if it is determined that the pipe segment type at the current position is an elbow pipe segment; The classification and statistics execution module is used to complete the instruction according to the acquired pipeline model, obtain all the connectors of the current pipeline model, and obtain the connector list of the current pipeline model according to the preset classification rules.

8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable 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 pipeline model drawing method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the pipeline model drawing method according to any one of claims 1 to 6 when executed.

10. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the pipeline model drawing method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

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

    CN112380607A

  • Collaborative modeling method of three-dimensional CAD model, server and terminal

    CN116992517A

  • Element type selection method, device and equipment applied to metallurgy field and storage medium

    CN117421941A

  • Detailed drawing parameter automatic generation method and device, equipment and storage medium

    CN118410639A

  • KR20220161582A