Automatic pipeline breaking method for mobile terminal to draw pipeline axis view

By automatically judging and processing the intersection of pipelines, and automatically interrupting the pipelines according to user-set rules, it solves the problem of cumbersome pipeline diagram interruption in computer-aided drawing, improves drawing efficiency and quality, and is suitable for handheld drawings in mobile terminals.

CN118940443AActive Publication Date: 2024-11-12NANJING BOILER & PRESSURE VESSEL SUPERVISION & INSPECTION INST +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410927351.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-11
Publication Date
2024-11-12
Estimated Expiration
2044-07-11

AI Technical Summary

Technical Problem

In computer-aided drawing, the process of manually interrupting and adjusting pipeline diagrams is cumbersome, time-consuming and error-prone. The existing automatic interrupt function cannot be automatically adapted to the shape and size of the tile, and is incompatible with different software and tile formats.

Method used

By traversing the graphic elements, we automatically determine whether the pipeline needs to be interrupted according to the priority and rules set by the user, and generate symbols or labels at the interruption to maintain the connectivity and alignment of the pipelines, and use vectors and parameter equations to determine the intersection of pipelines. Implement automatic interruption and redrawing.

Benefits of technology

It simplifies pipeline interruption processing, improves drawing efficiency and quality, is suitable for handheld drawing of mobile terminals, reduces human operation deviations and errors, and supports the expansion of different application scenarios and user needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118940443A_ABST
    Figure CN118940443A_ABST
Patent Text Reader

Abstract

The invention provides an automatic pipeline breaking method for a mobile terminal to draw a pipeline axis view. The automatic pipeline breaking method comprises the following steps: step 1, sequencing all pipelines; 2, checking the intersection condition of the pipeline and all other pipelines; 3, calculating the coordinates of the intersection points; for each intersection point, judging the priority of the two pipelines to which the intersection point belongs; 4, judging whether the pipeline is broken or not according to the priority of the pipeline; 5, according to the positions of the intersection points and the gaps, the original pipeline is divided into a plurality of short pipelines; and 6, recombining all the processed short pipelines into a new graph set, and outputting the new graph set to the mobile terminal. The method can automatically judge which pipelines need to be broken and the breaking position and mode according to priority and rules set by a user when components such as valves, pipe fittings and the like inserted into the drawing software by the user or pipelines drawn before and after are crossed. The efficiency and quality of manually drawing the pipeline diagram by the mobile terminal are improved, and the deviation and error of manual operation are reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to an automatic pipeline interruption algorithm for manually drawing a pipeline axis view on a mobile terminal. Background Art

[0002] In the fields of petroleum, chemical industry, construction, etc., pipeline diagrams are commonly used drawings to represent the structure, layout, connection, flow direction and other information of pipeline systems. Pipeline diagrams are usually composed of pipelines, valves, pipe fittings, instruments and other elements, among which pipelines are the main elements and are used to represent the direction and length of pipelines. In computer-aided drawing (CAD) software, drawing pipeline diagrams requires the use of specific tools and commands to draw accurate pipelines according to certain proportions and specifications. However, in the process of computer-aided drawing, some problems are often encountered, such as: (1) When it is necessary to insert valves, pipe fittings and other blocks on the pipeline, it is necessary to manually interrupt the intersecting pipelines and reconnect the two ends of the interruption to maintain the connectivity and alignment of the pipelines. This process requires repeated selection, input, modification and confirmation, which is very cumbersome, time-consuming and prone to errors. (2) When it is necessary to modify the direction, length, position, etc. of the pipeline, it is necessary to manually adjust the pipeline and its relationship with other elements to maintain the integrity and consistency of the pipeline diagram. This process also requires repeated operation, inspection and correction, which is very complicated and laborious, and easily causes confusion and non-standardization of the drawings.

[0003] To solve the above problems, some computer-aided drawing (CAD) software provides some functions, such as: (1) Quick interruption: You can create a gap between two specified points on an object, thereby breaking the object into two objects. (2) Batch interruption: You can perform quick interruption operations on multiple objects at the same time. (3) Automatic interruption: When inserting a block, you can automatically interrupt objects that intersect with the block and reconnect the two ends of the interruption. These functions can greatly improve the efficiency and quality of drawing pipeline diagrams and reduce human errors and modifications. However, these functions also have some limitations, such as: (1) Quick interruption and batch interruption require users to manually specify the location and method of the interruption, and cannot automatically adapt to the shape and size of the block. (2) Automatic interruption requires users to use specific software and block libraries, and is not compatible with different software and block formats. Summary of the invention

[0004] In order to solve the above problems, the present invention provides a pipeline automatic interruption method for drawing a pipeline axis view on a mobile terminal, which can automatically determine whether the pipeline needs to be interrupted according to the user's settings and the characteristics of the graphics, and generate corresponding symbols or annotations at the interruption point, and maintain the connectivity and alignment of the pipeline.

[0005] In order to achieve the above object, the present invention adopts the following technical solutions:

[0006] A pipeline automatic interruption method for drawing a pipeline axis view on a mobile terminal, the main steps are as follows:

[0007] Step 1. Traverse all graphic elements and find all pipelines and other graphics (such as valves, flanges, etc.). Sort all pipelines and graphics and process them from high to low according to the priority set by the user. The priority judgment index is the layer, color, thickness or the order of drawing pipelines. Different priorities can be flexibly set according to user needs and preferences to achieve different interruption effects. For example, if the layer and drawing order are used as the sorting rules, the smaller the layer, the higher the priority, and the pipeline drawn first in the same layer has a higher priority.

[0008] Step 2. For each pipeline, check whether it has any intersection or overlap with other graphics. If so, record the position and range of the intersection or overlap.

[0009] Step 3. Determine the rules and methods for interrupting the pipeline according to the user's settings, for example:

[0010] (a) Whether the pipeline needs to be interrupted when passing through the flange;

[0011] (b) Whether the pipeline needs to be interrupted when it intersects with other pipelines;

[0012] (c) After the pipeline is interrupted, whether it is necessary to generate symbols or annotations, and the style and content of the symbols or annotations.

[0013] Step 4. According to the rules and methods of the third step, interrupt each pipeline at the intersecting or overlapping parts and generate symbols or labels.

[0014] Step 5. Redraw the processed pipeline and other graphics onto the canvas to complete the automatic interruption of the pipeline. In this process, the properties of the original pipeline can be kept unchanged to avoid distortion of graphics or loss of information due to interruption.

[0015] In step 2 above, the process of determining whether two line segments (or pipelines) intersect and finding the intersection point is as follows. Assume that there are two line segments PL1 and PL2, and their endpoints are P i1 (x i1 ,y i1 ), P j1 (x j1 ,y j1 ), P i2 (x i2 ,y i2 ) and P j2 (x j2 ,y j2 ). We can describe these two line segments using vectors and parametric equations:

[0016] PL1=P j1 -P i1 =(x j1 -x i1 ,y j1 -y i1 )

[0017] PL2=P j2 -P i2 =(x j2 -x i2 ,y j2 -y i2 )

[0018] Then any point P on line segment PL1 t It can be expressed as:

[0019] P t =(x i1 +t(x j1 -x i1 ),y i1 +t(y j1 -y i1 )),t∈[0,1]

[0020] Any point P on line segment PL1 u It can be expressed as:

[0021] P u =(x i2 +u(x j2 -x i2 ),y i2 +u(y j2 -y i2 )),u∈[0,1]

[0022] Determining whether the two pipelines PL1 and PL2 intersect can be transformed into whether t∈[0,1] and u∈[0,1] are satisfied at the same time. t =P u , if not satisfied, it means that the pipeline is parallel or compared to the extension line.

[0023] The beneficial effects of the present invention are:

[0024] (1) The method of the present invention can automatically determine which pipelines need to be interrupted, as well as the location and method of interruption according to the priorities and rules set by the user when there are intersections between valves, pipe fittings and other components inserted by the user in the drawing software or the pipelines drawn before and after. It can effectively simplify the processing of pipeline interruption in manual drawing and improve the efficiency and quality of drawing. It can also be expanded and optimized according to different application scenarios and user needs, for example: (a) it can increase the recognition and display of pipeline shapes and attributes, such as circles, squares, dotted lines, solid lines, etc.; (b) it can increase the customization and management of pipeline symbols or annotations, such as color, size, font, position, etc.; (c) it can increase the selection and adjustment of pipeline interruption rules and methods, such as priority, conditions, exceptions, etc.

[0025] (2) This method differs from the interruption command method of AutoCAD drawing software in two main aspects: first, this interruption method is automatically judged according to the set rules, without the need for cumbersome operation steps, and is more suitable for chemical inspection personnel to draw on-site handheld mobile terminals; second, when a component interrupts the pipeline, the component can be moved to any position along the pipeline, and the system can automatically interrupt it.

[0026] (3) The method of the present invention improves the efficiency and quality of manually drawing pipeline diagrams on mobile terminals and reduces deviations and errors in human operations. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0028] Figure 1 It is a schematic diagram of the process of the present invention;

[0029] Figure 2 It is a schematic diagram of pipelines intersecting but not interrupting;

[0030] Figure 3 is a schematic diagram of a pipeline interruption method in Example 1;

[0031] Figure 4 It is a schematic diagram of another pipeline interruption method in Example 1. DETAILED DESCRIPTION

[0032] The present invention will be further described below in conjunction with the accompanying drawings and embodiments. For the purpose of clear description, many practical details will be described together in the following description.

[0033] like Figure 1 As shown, a pipeline automatic interruption method for drawing a pipeline axis view on a mobile terminal, the method comprising the following steps:

[0034] Step 1: Sort all pipelines and process them in descending order according to the priority set by the user. The priority can be the layer, color, thickness and other attributes of the pipeline, or it can be a user-defined order;

[0035] Define pipeline: PL1(P i1 ,P j1 ,L1,S1),P i1 and P j1 are the two endpoints of the pipeline, P i1 (x i1 ,y i1 ) is defined as the coordinate of the point, L1 is the layer where the pipeline is located, and S1 is the sequence number after the pipeline is sorted.

[0036] Step 2: For each pipeline, check its intersection with all other pipelines. If there is an intersection, calculate the coordinates of the intersection point and record it;

[0037] First, use vectors and parametric equations to describe these two line segments:

[0038] PL1=P j1 -P i1 =(x j1 -x i1 ,y j1 -y i1 )

[0039] PL2=P j2 -P i2 =(x j2 -x i2 ,y j2 -y i2 )

[0040] Then any point P on line segment PL1 t It can be expressed as:

[0041] P t =(x i1 +t(x j1 -x i1 ),y i1 +t(y j1 -y i1 )),t∈[0,1]

[0042] Any point P on line segment PL1 u It can be expressed as:

[0043] P u =(x i2 +u(x j2 -x i2 ),y i2 +u(yj2 -y i2 )),u∈[0,1]

[0044] Determining whether the two pipelines PL1 and PL2 intersect can be transformed into whether t∈[0,1] and u∈[0,1] are satisfied at the same time. t =P u , if not satisfied, it means that the pipeline is parallel or compared to the extension line.

[0045] Step 3: For each intersection point, determine the priority of the two pipelines it belongs to. If the pipeline with high priority is above the pipeline with low priority, it does not need to be interrupted; if the pipeline with high priority is below the pipeline with low priority, the pipeline with low priority needs to be interrupted and a certain gap needs to be left on both sides of the intersection point; this example uses the order of layers and drawing as the sorting rules. The smaller the layer, the higher the priority. The pipeline drawn first in the same layer has a higher priority. The smaller the value of the priority function pr(), the higher the priority.

[0046] Assume that the intersection point P t The pipelines are PL1 and PL2 respectively. If PL1.L1=PL2.L2, then

[0047] pr(PL1)=PL1.S1,pr(PL2)=PL2.S2

[0048] Otherwise, let pr(PL1)=PL1.L1, pr(PL2)=PL2.L2;

[0049] Step 4: For each pipeline that needs to be interrupted, split the original pipeline into multiple short pipelines according to the positions of intersection points and gaps, and keep the original attributes unchanged;

[0050] Step 5: Reassemble all processed short pipelines into a new graphics set and output it to the mobile terminal.

[0051] Example 1

[0052] The following is a specific embodiment:

[0053] A pipeline automatic interruption method for drawing a pipeline axis view on a mobile terminal. First, the pipeline interruption priority is set, the pipeline interruption interval is set to 5mm, and the interruption mode is to interrupt when the pipelines intersect.

[0054] Step 1: If Figure 2 As shown, the user draws two pipelines PL1 and PL2 on the drawing respectively. The pipeline properties are shown in Table 1, where the S value represents the order in which the pipelines are drawn. S1 means PL1 is drawn first, and S2 means PL2 is drawn first.

[0055] Table 1 Pipeline attributes

[0056] Pipeline x-axis coordinate y-axis coordinate L S S PL (3.66,3.06) (12.08,5.84) 1 1 2 PL (7.8,0.7) (7.8,7.14) 1 2 1

[0057] Step 2: Determine whether PL1 and PL2 intersect. If so, calculate the coordinates of the intersection point and record them. The specific calculation process is as follows:

[0058] First we need to determine the equation of each line segment. For PL1 with endpoints (3.66, 3.06) and (12.08, 5.84), write the parametric equation:

[0059]

[0060] For PL2 with endpoints (7.8, 0.7) and (7.8, 7.14), write the parametric equation:

[0061]

[0062] Solve the equations for the two line segments simultaneously:

[0063]

[0064] We obtain t≈0.49,u≈0.58, satisfying t∈[0,1],u∈[0,1], then PL1 and PL2 intersect, and the coordinates of the intersection are (7.8,4.41).

[0065] Step 3: For each intersection point, determine the priority of the two pipelines it belongs to. The L values ​​of the two pipelines PL and PL2 are the same, that is, they are in the same layer. S1 and S2 represent two different drawing orders, where S1 means PL1 is drawn first. According to the interruption rule, PL1 is interrupted. The interruption is shown as follows: Figure 3 As shown; S2 means PL2 is drawn first. According to the interruption rule, PL2 is interrupted. The interruption is shown as follows Figure 4 shown.

[0066] Step 4: For each pipeline that needs to be interrupted, split the original pipeline into multiple short pipelines according to the positions of intersection points and gaps, and keep the original attributes unchanged;

[0067] Step 5: Reassemble all processed short pipelines into a new graphic set and output it to the mobile terminal. It can be seen that the present invention realizes the automatic interruption of pipelines in drawing pipeline axis views without the need for cumbersome operations similar to AutoCAD, which greatly facilitates handwritten drawing on mobile terminals and improves work efficiency.

[0068] The method of the present invention analyzes the data of two pipelines, detects an intersection point, determines the pipeline to be interrupted and the interruption position. According to the interruption parameters, the pipeline to be interrupted is interrupted, a break or a gap is generated, and the pipeline data after interruption is output. The pipeline data after interruption is displayed in a drawing interface in a graphical manner.

[0069] The above description is only an embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.

Claims

1. A pipeline automatic interruption method for drawing pipeline axis view on a mobile terminal, Features: The method comprises the following steps: Step 1: Sort all pipelines and process them in descending order according to the priority set by the user; define pipeline: PL 1 (P i1 ,P j1 ,L 1 ,S 1 ),P i1 and P j1 are the two endpoints of the pipeline, P i1 (x i1 ,y i1 ) is defined as the coordinates of the point, L 1 is the layer where the pipeline is located, S 1 Number the sequence after pipeline sorting; Step 2: For each pipeline, check its intersection with all other pipelines. If there is an intersection, calculate the coordinates of the intersection point and record it; Step 3: For each intersection point, determine the priority of the two pipelines it belongs to, and determine the rules and methods for interrupting the pipelines; Step 4: For each pipeline that needs to be interrupted, split the original pipeline into multiple short pipelines according to the positions of intersection points and gaps, and keep the original attributes unchanged; Step 5: Reassemble all processed short pipelines into a new graphics collection output and redraw it to the canvas.

2. According to claim 1, a pipeline automatic interruption method for drawing a pipeline axis view on a mobile terminal, Features: In step 1, the priority judgment indicators include but are not limited to: the layer, color, thickness or order of drawing the pipeline, and different priorities can be set according to the needs and preferences of the user to achieve different interruption effects.

3. According to claim 1, a pipeline automatic interruption method for drawing a pipeline axis view on a mobile terminal, Features: In step 4, if the high-priority pipeline is above the low-priority pipeline, it does not need to be interrupted; if the high-priority pipeline is below the low-priority pipeline, the low-priority pipeline needs to be interrupted and a certain gap needs to be left on both sides of the intersection.

4. According to claim 1, a pipeline automatic interruption method for drawing a pipeline axis view on a mobile terminal, Features: In step 2, the process of determining whether two pipelines intersect and finding the intersection point is as follows: First, use vectors and parametric equations to describe these two line segments: PL 1 =P j1 -P i1 =(x j1 -x i1 ,y j1 -y i1 ) PL 2 =P j2 -P i2 =(x j2 -x i2 ,y j2 -y i2 ) Then the line segment PL 1 Any point P on t It can be expressed as: P t =(x i1 +t(x j1 -x i1 ),y i1 +t(y j1 -y i1 )),t∈[0,1] Line segment PL 1 Any point P on u It can be expressed as: P u (x) i2 +u(x j2 -x i2 ),and i2 +u(and j2 -and i2 )),u∈[0,1] Determine the PL of two pipelines 1 and PL 2 Whether they intersect can be transformed into whether t∈[0,1] and u∈[0,1] are satisfied at the same time. t =P u , if not satisfied, it means that the pipeline is parallel or compared to the extension line.

5. According to claim 1, a pipeline automatic interruption method for drawing a pipeline axis view on a mobile terminal, Features: In step 3, the rules and methods for determining pipeline interruption include but are not limited to any of the following situations: (a) Whether the pipeline needs to be interrupted when passing through the flange; (b) Whether the pipeline needs to be interrupted when it intersects with other pipelines; (c) After the pipeline is interrupted, whether it is necessary to generate symbols or annotations, and the style and content of the symbols or annotations.

6. According to claim 1, a pipeline automatic interruption method for drawing a pipeline axis view on a mobile terminal, Features: In step 5, the properties of the original pipeline are kept unchanged to avoid graphic distortion or information loss due to interruption.

Citation Information

Patent Citations

  • Automatic bridging graphics processing method for power system circuit

    CN103077496A

  • Automatic disconnection method for wire connection of CAD electrical drawing

    CN113886932A

  • BIM (Building Information Modeling)-based comprehensive pipe gallery pipeline outgoing line design method

    CN114580057A

  • Interactive wiring method for membrane keyboard circuit board

    CN115659902A

  • Piping diagram creation method and piping diagram creation device

    US20230205942A1