A method, device and equipment for processing electromechanical pipeline information

By generating relative coordinate systems and internal units, filtering the end equipment, and calculating collision intersection points and bend control points, the problem of low accuracy of collision detection of electromechanical pipelines in the existing technology is solved, and the automatic adjustment design of electromechanical pipelines is realized, and the design is improved. Efficiency and project progress.

CN119167458BActive Publication Date: 2025-02-25INNER MONGOLIA ELECTRIC POWER SURVEY & DESIGN INST
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411240628.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-04
Publication Date
2025-02-25
Estimated Expiration
2044-09-04

AI Technical Summary

Technical Problem

In the prior art, the collision detection accuracy of electromechanical pipelines is low and the error is large, resulting in the inability to automatically adjust the design, resulting in low design efficiency, extended construction period and increased design costs.

Method used

By obtaining the electromechanical pipeline model and its absolute coordinate system and basic units, we generate relative coordinate system and internal units, filter the end devices in the model, traverse the element collector to obtain geometric information, parameter information and positioning information, and calculate collision intersection points and bend control points Spatial coordinates, generate an automatically adjusted electromechanical pipeline model.

Benefits of technology

It improves the accuracy of pipeline collision detection methods, realizes automatic adjustment design of electromechanical pipelines, reduces designer manual operations, and improves design efficiency and project progress.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119167458B_ABST
    Figure CN119167458B_ABST
Patent Text Reader

Abstract

The present invention provides a method, device and equipment for processing electromechanical pipeline information. The electromechanical pipeline information processing method includes: obtaining an electromechanical pipeline model and an absolute coordinate system and a basic unit of the electromechanical pipeline model; generating a relative coordinate system and an internal unit according to the absolute coordinate system and the basic unit; filtering the electromechanical pipeline model, and storing the remaining equipment and its information in an element collector; traversing the element collector to obtain the geometry, parameters and positioning information of the first electromechanical pipeline and the second electromechanical pipeline; obtaining the spatial coordinates of the collision intersection between the first electromechanical pipeline and the second electromechanical pipeline in the relative coordinate system; obtaining the spatial coordinates of the bending control points of the first electromechanical pipeline and the second electromechanical pipeline at the collision intersection in the relative coordinate system; and generating a first electromechanical pipeline model in the relative coordinate system. The solution of the present invention accurately expresses the positions of pipelines in different design drawings, improves the accuracy of the pipeline collision detection method and can automatically adjust the design.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of power grid information models, and in particular to a method, device and equipment for processing electromechanical pipeline information. Background Art

[0002] In the prior art, collision detection of electromechanical pipelines still relies on manual mode in the later adjustment of pipeline collisions. Although software for automatically adjusting electromechanical pipelines is available on the market, the collision detection accuracy of this type of software is low and the error is large, so that the bending avoidance adjustment of pipelines still relies on manual operation by designers, resulting in low design efficiency, extended construction period and increased design costs, which seriously hinders the project's progress and wastes construction resources. Summary of the invention

[0003] The present invention provides a method, device and equipment for processing electromechanical pipeline information, which solves the technical problems that the drawings are not fully expressed due to differences in the positions of pipelines between different design drawings, and the existing pipeline collision detection method has low accuracy and large errors, resulting in the inability to automatically adjust the design.

[0004] In order to solve the above technical problems, the technical solution of the present invention is as follows:

[0005] A method for processing electromechanical pipeline information, comprising:

[0006] Acquire an electromechanical pipeline model and an absolute coordinate system and a basic unit of the electromechanical pipeline model;

[0007] Generate a relative coordinate system according to the absolute coordinate system;

[0008] generating internal units according to the basic units;

[0009] Filtering the electromechanical pipeline model, deleting the terminal devices and terminal device information in the electromechanical pipeline model, and then storing the remaining devices and the remaining device information after filtering into the element collector;

[0010] Traversing the element collector to obtain geometric information, parameter information and positioning information of the first electromechanical pipeline and the second electromechanical pipeline;

[0011] Obtaining the spatial coordinates of the collision intersection between the first electromechanical pipeline and the second electromechanical pipeline in a relative coordinate system according to the geometric information, parameter information and positioning information of the first electromechanical pipeline and the second electromechanical pipeline;

[0012] According to the spatial coordinates of the collision intersection between the first electromechanical pipeline and the second electromechanical pipeline in the relative coordinate system, the geometric information and parameter information of the first electromechanical pipeline and the second electromechanical pipeline, the spatial coordinates of the bending control points of the first electromechanical pipeline and the second electromechanical pipeline at the collision intersection in the relative coordinate system are obtained;

[0013] A first electromechanical pipeline model in a relative coordinate system is generated according to the spatial coordinates of the bending control points.

[0014] The present invention also provides an electromechanical pipeline information processing device, comprising:

[0015] An acquisition module, used for acquiring an electromechanical pipeline model and an absolute coordinate system and a basic unit of the electromechanical pipeline model;

[0016] A processing module generates a relative coordinate system based on the absolute coordinate system; generates an internal unit based on the basic unit; filters the electromechanical pipeline model, deletes the terminal devices and terminal device information in the electromechanical pipeline model, and then stores the remaining filtered devices and remaining device information in an element collector; traverses the element collector to obtain geometric information, parameter information and positioning information of the first electromechanical pipeline and the second electromechanical pipeline; obtains the spatial coordinates of the collision intersection between the first electromechanical pipeline and the second electromechanical pipeline in the relative coordinate system based on the geometric information, parameter information and positioning information of the first electromechanical pipeline and the second electromechanical pipeline; obtains the spatial coordinates of the bending control points of the first electromechanical pipeline and the second electromechanical pipeline at the collision intersection in the relative coordinate system based on the spatial coordinates of the collision intersection between the first electromechanical pipeline and the second electromechanical pipeline in the relative coordinate system, and the geometric information and parameter information of the first electromechanical pipeline and the second electromechanical pipeline; generates the first electromechanical pipeline model in the relative coordinate system based on the bending control point spatial coordinates.

[0017] The present invention also provides a computing device, comprising: a processor and a memory storing a computer program, wherein when the computer program is executed by the processor, the method described above is executed.

[0018] The present invention also provides a computer-readable storage medium storing instructions, which, when executed on a computer, enable the computer to execute the method described above.

[0019] The above solution of the present invention includes at least the following beneficial effects:

[0020] The above scheme of the present invention obtains the electromechanical pipeline model and the absolute coordinate system and basic unit of the electromechanical pipeline model; generates a relative coordinate system according to the absolute coordinate system; generates an internal unit according to the basic unit; filters the electromechanical pipeline model, deletes the terminal equipment and terminal equipment information in the electromechanical pipeline model, and then stores the remaining filtered equipment and the remaining equipment information into an element collector; traverses the element collector to obtain the geometric information, parameter information and positioning information of the first electromechanical pipeline and the second electromechanical pipeline; and generates the relative coordinate system according to the absolute coordinate system and the basic unit. The geometric information, parameter information and positioning information of the electrical pipeline are used to obtain the spatial coordinates of the collision intersection between the first electromechanical pipeline and the second electromechanical pipeline in the relative coordinate system; according to the spatial coordinates of the collision intersection between the first electromechanical pipeline and the second electromechanical pipeline in the relative coordinate system, the geometric information and parameter information of the first electromechanical pipeline and the second electromechanical pipeline are used to obtain the spatial coordinates of the bending control points of the first electromechanical pipeline and the second electromechanical pipeline at the collision intersection in the relative coordinate system; according to the spatial coordinates of the bending control points, the first electromechanical pipeline model in the relative coordinate system is generated. The positions of pipelines in different design drawings can be accurately expressed, the accuracy of pipeline collision detection methods is improved, and the design can be automatically adjusted. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 is a flow chart of a method for processing electromechanical pipeline information according to an embodiment of the present invention;

[0022] Figure 2 is a corresponding relationship diagram between the absolute coordinate system and the relative coordinate system of an embodiment of the present invention;

[0023] Figure 3 2 is a schematic diagram of a pipeline bending structure of a first electromechanical pipeline and a second electromechanical pipeline at a collision intersection in an embodiment of the present invention;

[0024] Figure 4 is a schematic diagram of a projection structure at a collision intersection of an embodiment of the present invention;

[0025] Figure 5 is a structural diagram of a mechanical and electrical pipeline information processing device according to an embodiment of the present invention;

[0026] Description of reference numerals:

[0027] 1. The distance the second electromechanical pipeline moves in the horizontal direction; 2. The width of the first electromechanical pipeline; 3. The distance the second electromechanical pipeline moves in the vertical direction; 4. The height of the first electromechanical pipeline; 5. The distance between the first electromechanical pipeline and the second electromechanical pipeline; 6. The first positioning point; 7. The first control point; 8. The second control point; 9. The third control point; 10. The fourth control point; 11. The second positioning point. DETAILED DESCRIPTION

[0028] The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to enable the scope of the present invention to be fully communicated to those skilled in the art.

[0029] like Figure 1 As shown, an embodiment of the present invention provides a method for processing electromechanical pipeline information, comprising:

[0030] Step 11, obtaining an electromechanical pipeline model and an absolute coordinate system and a basic unit of the electromechanical pipeline model;

[0031] Step 12, generating a relative coordinate system according to the absolute coordinate system;

[0032] Step 13, generating internal units according to the basic units;

[0033] Step 14, filtering the electromechanical pipeline model, deleting the terminal devices and terminal device information in the electromechanical pipeline model, and then storing the remaining devices and the remaining device information after filtering into the element collector;

[0034] Step 15, traversing the element collector to obtain geometric information, parameter information and positioning information of the first electromechanical pipeline and the second electromechanical pipeline;

[0035] Step 16, obtaining the spatial coordinates of the collision intersection between the first electromechanical pipeline and the second electromechanical pipeline in the relative coordinate system according to the geometric information, parameter information and positioning information of the first electromechanical pipeline and the second electromechanical pipeline;

[0036] Step 17, obtaining the spatial coordinates of the bending control points of the first electromechanical pipeline and the second electromechanical pipeline at the collision intersection in the relative coordinate system according to the spatial coordinates of the collision intersection between the first electromechanical pipeline and the second electromechanical pipeline in the relative coordinate system, and the geometric information and parameter information of the first electromechanical pipeline and the second electromechanical pipeline;

[0037] Step 18: Generate a first electromechanical pipeline model in a relative coordinate system according to the spatial coordinates of the bending control points.

[0038] The embodiment of the present invention generates a relative coordinate system based on the acquired absolute coordinate system and generates an internal unit based on the basic unit, thereby accurately expressing the position of the electromechanical pipelines in different design drawings and improving the accuracy of the collision detection method. By filtering the electromechanical pipeline model and deleting the terminal equipment and terminal equipment information in the electromechanical pipeline model, the system operation efficiency is improved. By traversing the electromechanical pipeline model, the geometric information, parameter information and positioning information of the first electromechanical pipeline and the second electromechanical pipeline are obtained; based on the geometric information, parameter information and positioning information of the first electromechanical pipeline and the second electromechanical pipeline, the spatial coordinates of the collision intersection between the first electromechanical pipeline and the second electromechanical pipeline in the relative coordinate system are obtained; based on the spatial coordinates of the collision intersection between the first electromechanical pipeline and the second electromechanical pipeline in the relative coordinate system, the geometric information and parameter information of the first electromechanical pipeline and the second electromechanical pipeline are used to obtain the spatial coordinates of the bending control points of the first electromechanical pipeline and the second electromechanical pipeline at the collision intersection in the relative coordinate system; based on the spatial coordinates of the bending control points, a first electromechanical pipeline model in the relative coordinate system is generated, so as to realize automatic adjustment of the design when a collision intersection occurs between the two electromechanical pipelines, and realize automatic bending and avoidance of the electromechanical pipelines.

[0039] In an optional embodiment of the present invention, step 12 includes:

[0040] Step 121, mapping two coordinate axes in the absolute coordinate system to the relative coordinate system;

[0041] Step 122, obtaining the third coordinate axis in the relative coordinate system by vector cross product;

[0042] Step 123: Obtain the corresponding relationship between the absolute coordinate system and the relative coordinate system through the origin positions of the absolute coordinate system and the relative coordinate system.

[0043] In the above embodiment, in step 121, preferably, Figure 2 As shown, the X-axis and Y-axis in the absolute coordinate system are mapped to the relative coordinate system. Specifically, the mapping direction can be selected according to the actual situation. Then, according to the X1 axis and the Y1 axis, the Z1 axis in the relative coordinate system is obtained by the vector cross product. The third coordinate axis in the relative coordinate system is obtained by using the vector cross product method, which plays a role in ensuring the orthogonality of the relative coordinate system.

[0044] In step 123, the spatial coordinates of the origin in the relative coordinate system are obtained, and the position correspondence between the absolute coordinate system and the relative coordinate system is obtained by calculating the offset of the origin position in the absolute coordinate system and the relative coordinate system.

[0045] By constructing the relative coordinate system and generating a first electromechanical pipeline model in the relative coordinate system, the electromechanical pipeline models in different design drawings are converted from an absolute coordinate system to a relative coordinate system, thereby accurately expressing the positions of the electromechanical pipelines in different design drawings and improving the accuracy of the collision detection method.

[0046] In an optional embodiment of the present invention, step 13 includes:

[0047] Step 131, multiplying the base unit by the unit conversion coefficient to generate the internal unit.

[0048] In the above embodiment, the unit conversion coefficient is 304.7999995367, which plays a role in accurately converting imperial units and metric units. Furthermore, in the existing unit conversion, 0.3048 is usually used as the conversion coefficient for unit conversion. For large-scale and large-volume projects, using 0.3048 as the conversion coefficient will produce a large error. Therefore, the internal unit described in this application can be converted by high-precision floating-point operations, which avoids rounding errors caused by manual conversion and improves the accuracy of the collision detection method. Preferably, the conversion relationship between the base unit and the internal unit is shown in Table 1 below.

[0049] Table 1 Relationship between internal units and basic units

[0050]

[0051]

[0052] In an optional embodiment of the present invention, step 14 includes:

[0053] Step 141, obtaining an element collector and a logical filter;

[0054] Step 142, the logical filter includes a floor height filter and a device filter;

[0055] Step 143, identifying the devices in the electromechanical pipeline model layer by layer through the layer height filter, dividing the devices in the electromechanical pipeline model into terminal devices and other devices through the device filter, and obtaining the addresses of the terminal devices and other devices;

[0056] Step 144, deleting the terminal device and terminal device information in the electromechanical pipeline model according to the address of the terminal device;

[0057] Step 145: store the remaining devices and the remaining device information into the element collector according to the addresses of the remaining devices.

[0058] In the above embodiment, the element collector can store, query and retrieve data information in the element collector, which can be a database. The information stored in the element collector includes: unique identifiers of other devices, category information of other devices, elevation information of other devices, geometric information of other devices, attribute parameters of other devices and family types of other devices.

[0059] The layer height filter can obtain the elevation data of the electromechanical pipeline in the electromechanical pipeline model, and filter all the devices in the electromechanical pipeline model layer by layer according to the elevation data. The devices within the elevation range to be processed are obtained, and the devices outside the elevation range are classified as terminal devices.

[0060] Furthermore, the category information of the equipment that does not need to be processed and the family type information of the equipment that does not need to be processed are obtained. The equipment that does not need to be processed in the elevation range that needs to be processed is classified as terminal equipment through the equipment filter, and the category information, geometric information, attribute parameters and family type of the equipment that does not need to be processed are classified as terminal equipment information.

[0061] The remaining devices that need to be processed are classified into remaining devices, and the category information, geometric information, attribute parameters and family types of the remaining devices that need to be processed are classified into remaining device information.

[0062] Then, the addresses of the terminal device and the remaining devices are obtained through the device filter, and the terminal device and the terminal device information in the electromechanical pipeline model are deleted according to the address of the terminal device; and the remaining devices and the remaining device information are stored in the element collector according to the addresses of the remaining devices.

[0063] The equipment in the electromechanical pipeline model is filtered through the equipment filter. According to the equipment category information and family type that do not need to be processed, the equipment in the electromechanical pipeline model is divided into terminal equipment and other equipment. According to the addresses of the terminal equipment and other equipment, the category information, geometric information, attribute parameters and family type of the equipment in the electromechanical pipeline model are divided into terminal equipment information and other equipment information. The equipment and information that are unnecessary for pipeline bending processing in the electromechanical pipeline model are deleted, which reduces the system operation burden and improves processing efficiency.

[0064] Specifically, the equipment family types include: drainage part, HVAC part, high-voltage part, and low-voltage part. The equipment types in the drainage part include: water supply, drainage, sewage, fire sprinkler and fire hydrant equipment. The equipment types in the HVAC part include: air conditioning return air vents, fresh air vents, air conditioning maintenance ports and other equipment. The equipment types in the high-voltage part include: high-voltage sockets, switches, emergency lighting, evacuation signs, safety exit signs, high-voltage boxes and other equipment. The equipment types in the low-voltage part include: network sockets, audio sockets, video sockets, telephone sockets and other equipment.

[0065] In an optional embodiment of the present invention, step 15 includes: traversing the element collector to obtain geometric information, parameter information and positioning information of the first electromechanical pipeline and the second electromechanical pipeline.

[0066] In the above embodiment, the first electromechanical pipeline and the second electromechanical pipeline that may have a collision intersection can be manually selected according to actual needs, or the first electromechanical pipeline and the second electromechanical pipeline can be randomly selected. The element collector is traversed to obtain geometric information, parameter information and positioning information of the first electromechanical pipeline and the second electromechanical pipeline from the element collector.

[0067] Specifically, in the bending avoidance of electromechanical pipelines, pipelines can be divided into "pipes", "ducts" and "cable trays", where pipes include water supply and drainage pipes, heating pipes, industrial pipes and other types, ducts include supply air ducts, fresh air ducts, return air ducts and other types, cable trays are divided into communication cable trays, power cable trays, thermal resistance cables and other types; according to the bending avoidance requirements, the parameter information that needs to be extracted from the three major types of pipelines includes: pipeline reference elevation, pipeline bottom elevation, pipeline top elevation, pipeline slope, pipeline length, pipeline type, branch pipe type and cable tray type.

[0068] Specifically, the positioning information of the first electromechanical pipeline and the second electromechanical pipeline is used to describe the position and direction of the component in the building, and this information can be obtained by adding positioning parameters or using the automatic positioning option. The manual positioning option allows users to place the incoming electromechanical pipeline model according to specific points defined in the imported or linked file. The automatic positioning option can also help users quickly locate components. When it is necessary to re-import files or import multiple files into the main model, the center point or origin can be determined based on the geometry to achieve rapid positioning.

[0069] In an optional embodiment of the present invention, step 16 includes:

[0070] Step 161, obtaining geometric elements in the geometric information of the first electromechanical pipeline and the second electromechanical pipeline;

[0071] Step 162, determining whether the geometric element is a geometric entity;

[0072] Step 163, storing the geometric entity in the first database;

[0073] Step 164, traversing the geometric entities in the first database, generating geometric surfaces, and storing the geometric surfaces in the second database;

[0074] Step 165, traversing the geometric surfaces in the second database to generate center lines of the geometric surfaces;

[0075] Step 166, obtaining the positioning lines of the first electromechanical pipeline and the second electromechanical pipeline in the absolute coordinate system according to the center line of the geometric surface;

[0076] Step 167, obtaining geometric information, parameter information and positioning information of the first electromechanical pipeline and the second electromechanical pipeline in the relative coordinate system, and positioning lines of the first electromechanical pipeline and the second electromechanical pipeline in the relative coordinate system according to the corresponding relationship between the absolute coordinate system and the relative coordinate system;

[0077] Step 168, obtaining the spatial coordinates of the collision intersection of the first electromechanical pipeline and the second electromechanical pipeline in the relative coordinate system based on the positioning lines of the first electromechanical pipeline and the second electromechanical pipeline in the relative coordinate system, the geometric information, parameter information and positioning information of the first electromechanical pipeline and the second electromechanical pipeline in the relative coordinate system.

[0078] In the above embodiment, in step 162, the geometric elements include points, lines, geometric surfaces, and geometric entities. Whether the geometric elements are geometric entities is determined by the categories to which the geometric elements belong in the geometric information, so as to screen the geometric entities from the geometric elements. Specifically, the points belong to the Point class, the lines belong to the Line class, the geometric surfaces belong to the Face class, and the geometric entities belong to the Solid class.

[0079] The geometric entity is stored in the first database.

[0080] In step 164, the first database is traversed, and according to the classification of the geometric information in the geometric entity, the geometric faces included in each geometric entity are extracted respectively and stored in the second database. In step 165, the second database is traversed, all the geometric faces in the second database are rasterized, and then the center lines of all the geometric faces are calculated by the centroid method. In step 166, the positioning line can be a central axis, a center of gravity line, etc., which can be set according to actual needs. The positioning lines of the first and second electromechanical pipelines are determined according to the center lines of all faces of the first and second electromechanical pipelines and the requirements of the positioning lines.

[0081] In step 168, according to the positioning lines of the first and second electromechanical pipelines in the relative coordinate system, the geometric information, parameter information and positioning information of the first and second electromechanical pipelines, the spatial coordinates of the collision intersection of the first and second electromechanical pipelines in the relative coordinate system are obtained through the electromechanical pipeline collision intersection projection algorithm. Specifically, the positioning lines of the first and second electromechanical pipelines are projected onto the XY axis plane, the XZ axis plane and the YZ axis plane of the relative coordinate system respectively. If the projected positioning lines of the positioning lines of the first and second electromechanical pipelines on the XY axis plane, the XZ axis plane and the YZ axis plane all intersect, then there is a collision intersection between the first and second electromechanical pipelines. The intersection coordinates of the projected positioning lines of the positioning lines of the first and second electromechanical pipelines on the XY axis plane, the XZ axis plane and the YZ axis plane are the spatial coordinates of the collision intersection in the absolute coordinate system.

[0082] By calculating the spatial coordinates of the collision intersection of the first electromechanical pipeline and the second electromechanical pipeline in the relative coordinate system, the positions of the electromechanical pipelines in different design drawings can be accurately expressed, thereby improving the accuracy of the collision detection method.

[0083] In an optional embodiment of the present invention, step 17 includes:

[0084] Step 171, according to Obtain the distance that the second electromechanical pipeline moves in the horizontal direction, where HO is the distance that the second electromechanical pipeline moves in the horizontal direction, PW is the width of the first electromechanical pipeline, D is the diameter of the second electromechanical pipeline, and GAP is the distance 5 between the first electromechanical pipeline and the second electromechanical pipeline;

[0085] Step 172, according to Obtaining a distance 3 that the second electromechanical pipeline moves in the vertical direction, wherein VE is a distance 3 that the second electromechanical pipeline moves in the vertical direction, PH is a height 4 of the first electromechanical pipeline, D is a diameter of the second electromechanical pipeline, and GAP is a distance 5 between the first electromechanical pipeline and the second electromechanical pipeline;

[0086] Step 173, the distance the second electromechanical pipeline moves in the horizontal direction, the width of the first electromechanical pipeline, the distance 3 the second electromechanical pipeline moves in the vertical direction, the height 4 of the first electromechanical pipeline, the diameter of the second electromechanical pipeline and the distance 5 between the first electromechanical pipeline and the second electromechanical pipeline are all in internal units;

[0087] Step 174, obtaining the spatial coordinates of the first positioning point 6 and the second positioning point 11 on the second electromechanical pipeline away from both sides of the collision intersection in the relative coordinate system;

[0088] Step 175, obtaining the spatial coordinates of the bending control points of the first electromechanical pipeline and the second electromechanical pipeline at the collision intersection in the relative coordinate system according to the spatial coordinates of the first positioning point 6 and the second positioning point 11 in the relative coordinate system, the projection of the distance 3 moved by the second electromechanical pipeline in the vertical direction in the relative coordinate system, and the projection of the distance moved by the second electromechanical pipeline in the horizontal direction in the relative coordinate system;

[0089] The turning control points include: a first control point 7 , a second control point 8 , a third control point 9 and a fourth control point 10 .

[0090] In the above embodiments, the main reasons for the collision of electromechanical pipelines include inadequate drawing expression and poor design coordination. Inadequate drawing expression means that the design drawings fail to clearly express the location, size, shape and other information of the pipelines, or the location of the electromechanical pipelines on the drawings is different from the location on other drawings; poor design coordination means that there is a lack of effective communication and coordination between different design teams or personnel, resulting in conflicts or intersections in the design of electromechanical pipelines. The scope of electromechanical pipeline collision is mainly concentrated in large public buildings and factories. For example, in hotel and office projects, the standard floor will be designed with an air-conditioning room corresponding to the HVAC system. Regardless of whether a fan coil unit plus a fresh air unit or a full air-conditioning unit is used, most of its outlet pipes are located in the aisle area at the door of the machine room, and the pipeline air volume is large and the size is large. In addition to other professional pipelines, such as fire main pipes of water supply and drainage, upper and lower sprays, electrical bridges, weak current bridges, HVAC hot and cold water pipes, fire exhaust pipes, etc., the aisle air-conditioning room area will become a pipeline-intensive area, which is very easy to affect the net height of the standard floor. The specific electromechanical pipeline avoidance principles are shown in Table 2:

[0091] Table 2 Pipeline collision avoidance adjustment principles

[0092]

[0093]

[0094] like Figure 3 As shown, in the above embodiment, the width PW of the first electromechanical pipeline, the height 4 (PH) of the first electromechanical pipeline, and the diameter D of the second electromechanical pipeline are obtained according to the parameter information of the first electromechanical pipeline. The distance 5 (GAP) of the gap between the first electromechanical pipeline and the second electromechanical pipeline is determined according to a preset standard. The horizontal distance HO of the second electromechanical pipeline is calculated. The distance 3(VE) that the second electromechanical pipeline moves in the vertical direction is calculated.

[0095] The spatial coordinates of the first positioning point 6 and the second positioning point 11 in the relative coordinate system are determined on both sides of the second electromechanical pipeline away from the collision intersection, which plays a role in calculating the bending control point.

[0096] Specifically, let the first positioning point 6 be C, whose coordinates in the relative coordinate system are (C1, C2, C3), let the second positioning point 11 be D, whose coordinates in the relative coordinate system are (D1, D2, D3), let the first control point 7 be Q, whose coordinates in the relative coordinate system are (Q1, Q2, Q3), let the second control point 8 be R, whose coordinates in the relative coordinate system are (R1, R2, R3), let the third control point 9 be S, whose coordinates in the relative coordinate system are (S1, S2, S3), let the fourth control point 10 be T, whose coordinates in the relative coordinate system are (T1, T2, T3). Moreover, the positional relationship among the first positioning point C, the second positioning point D, the first control point Q, the second control point R, the third control point S, and the fourth control point T satisfies, |QR|=|ST|=VE, QR⊥CD, ST⊥CD. The projection length of the horizontal moving distance HO of the second electromechanical pipeline on the XZ axis plane of the relative coordinate system is HO1, the projection length on the YZ axis plane is HO2, and the projection length on the XY axis plane is HO3.

[0097] according to

[0098] The spatial coordinates of the first control point Q, the second control point R, the third control point S, and the fourth control point T in the relative coordinate system are obtained by calculation.

[0099] In an optional embodiment of the present invention, step 18 includes,

[0100] Step 181, traversing the electromechanical pipeline model to obtain geometric information, parameter information and positioning information of a second electromechanical pipeline in the electromechanical pipeline model;

[0101] Step 182, generating geometric information, parameter information and positioning information of the second electromechanical pipeline in the relative coordinate system according to the correspondence between the absolute coordinate system and the relative coordinate system;

[0102] Step 183, generating a bent pipeline at a collision intersection between the second electromechanical pipeline and the first electromechanical pipeline in the relative coordinate system according to the spatial coordinates of the first control point 7, the second control point 8, the third control point 9 and the fourth control point 10 in the relative coordinate system;

[0103] Step 184, connecting the bent pipeline with the second electromechanical pipeline in the relative coordinate system, deleting the pipeline at the collision intersection between the second electromechanical pipeline and the first electromechanical pipeline in the second electromechanical pipeline, and generating a first electromechanical pipeline model in the relative coordinate system.

[0104] like Figure 3 As shown, in the above embodiment, the geometric information, parameter information and positioning information of the second electromechanical pipeline model in the absolute coordinate system are obtained by traversing the electromechanical pipeline model, and according to the correspondence between the absolute coordinate system and the relative coordinate system, the geometric information, parameter information and positioning information of the second electromechanical pipeline in the relative coordinate system are obtained.

[0105] The first control point 7, the second control point 8, the third control point 9 and the fourth control point 10 in the relative coordinate system are connected in sequence to generate a bent pipeline at the collision intersection of the second electromechanical pipeline and the first electromechanical pipeline, and then the pipeline between the first control point 7 and the fourth control point 10 in the second electromechanical pipeline is deleted, and the pipeline between the first control point 7 and the fourth control point 10 in the second electromechanical pipeline in the relative coordinate system is replaced by the bent pipeline to generate a first electromechanical pipeline model in the relative coordinate system.

[0106] A specific embodiment of the electromechanical pipeline information processing method of the present invention is:

[0107] Step 1: obtain an electromechanical pipeline model and an absolute coordinate system and a basic unit of the electromechanical pipeline model, and generate a relative coordinate system according to the absolute coordinate system.

[0108] For BIM models, the coordinates in the mechanical and electrical pipeline geometry information are expressed in the relative coordinate system inside Revit, and need to be converted to compare, analyze and process with other external absolute coordinate systems. To improve accuracy, when two directions have been determined, the third direction is calculated using the vector cross product.

[0109] Specifically, the steps to generate a relative coordinate system are as follows:

[0110] First, create an initial coordinate system and define an initial coordinate system, that is, the world coordinate system or absolute coordinate system. This coordinate system is usually provided by default in the Revit software, and its origin and the directions of the three axes XYZ are pre-set.

[0111] Second, define the new origin of the coordinate system. Based on the world coordinate system, specify a new origin, which is the starting point of the relative coordinate system. This new origin can be any point, usually a specific location related to design or construction.

[0112] Third, set the new coordinate axis direction. X-axis direction: specifies the X-axis direction of the relative coordinate system. This direction is usually based on a vector in the absolute coordinate system. Y-axis direction: specifies the Y-axis direction of the relative coordinate system, which is usually also based on a vector in the absolute coordinate system. Z-axis direction: In order to ensure that the new coordinate system maintains orthogonality (that is, the X, Y, and Z axes are perpendicular to each other), the Z-axis direction is calculated by the cross product operation from the X-axis and Y-axis directions.

[0113] Fourth, coordinate conversion. Once the new coordinate system is established, the coordinates of any point in the world coordinate system can be converted to coordinates in the relative coordinate system by calculating the offset between the origin position in the absolute coordinate system and the relative coordinate system.

[0114] Step 2: Generate internal units based on the basic units.

[0115] Autodesk Revit is a software that uses imperial units as default units. All internal geometric values ​​are in feet. In a metric template project, a model line with a length of 1000mm is created. The internal length read by Revit Lookup is 3.2808 feet. In order to meet the design habits of domestic engineering designers using millimeters as units, the data entered by the user needs to be converted into units.

[0116] 1 foot is equal to 304.7999995367 millimeters, which is approximately equal to 0.3048 meters. In most cases, 0.3048 is used as the coefficient for conversion. However, for large-scale and large-volume projects, in order to minimize the slightest error, the ConverToInternalUnits method of the UnitUtils class provided by the API is usually used for unit conversion. The comparison between the units in Revit and the basic units is shown in Table 1.

[0117] The basic principle of this method is as follows:

[0118] First, the use of a scaling factor: 1 foot equals 304.8 millimeters. Using this known scaling factor, the user-entered value is multiplied by the conversion factor to convert millimeters to feet. For example, 1000 millimeters would be converted to 1000 / 304.8≈3.2808 feet.

[0119] Second, built-in precision and rounding processing: Revit API uses high-precision floating-point operations to process conversions, avoiding rounding errors that may be introduced by manual conversions. In addition, Revit API can also perform rounding and other processing internally to ensure that the conversion results meet internal precision requirements.

[0120] Third, the mechanism to reduce errors: High-precision calculation: Use high-precision algorithms inside Revit for conversion, which are optimized to handle very small numerical errors.

[0121] Fourth, automatically handle conversion details: The API automatically handles various complex situations that may be involved in the unit conversion process, such as different project unit settings and conversion requirements for different data types (such as length, area, etc.). This reduces errors caused by improper human operation.

[0122] Fifth, built-in verification and consistency: During the conversion process, Revit API can also check and verify unit consistency to ensure that all conversion results remain consistent within the system, thereby further reducing the possibility of errors.

[0123] Step 3, filtering the electromechanical pipeline model, deleting the terminal devices and terminal device information in the electromechanical pipeline model, and then storing the remaining devices and the remaining device information after filtering into the element collector.

[0124] In practical applications, electromechanical pipeline models are usually accompanied by mechanical equipment and other components. The water supply and drainage part mainly includes water supply, drainage, sewage, fire sprinklers and fire hydrants. The HVAC part mainly includes air conditioning return air vents, fresh air vents, air conditioning maintenance ports and other equipment. For electricity, it is divided into strong electricity and weak electricity. Strong electricity includes strong electricity sockets, switches, emergency lighting, evacuation instructions, safety exit instructions, strong electricity boxes and other equipment. The weak electricity part includes network sockets, audio sockets, video sockets, telephone sockets and other equipment. These are the terminal equipment of electromechanical pipelines. These equipment models are unnecessary for the bending of electromechanical pipelines. If the entire file is iteratively processed, it is bound to increase the running burden of the program. Therefore, in order to improve the processing efficiency of the program, first filter out redundant graphics. The specific operations are as follows:

[0125] (1) First, create an element collector (FilteredElementCollector) to store the filtered terminal device models, and then create a level filter (BuiltInCategoryLevel) to filter each level according to the level (Level).

[0126] (2) Read the data of each layer, create an equipment filter (BuiltInCategoryMEP), and filter elements such as pipe accessories, mechanical equipment, and bathroom fixtures. Take the urinal as an example. Its internal identifier is SCHEDULE_LEVEL_PARAM. The identifiers of the equipment elements that need to be filtered in this embodiment in Revit are shown in Table 3.

[0127] Table 3: Terminal device names and internal identifiers that need to be filtered

[0128] Filter device name Internal Logo Lighting OST_LightingFixtures Valves OST_PipeAccessory Strong and weak current switch OST_LightingFixtures Various water tanks OST_IOSModelGroups Fire Fighting Equipment OST_MechanicalEquipment Sanitary ware OST_PlumbingFixtures

[0129] Equipment filters, floor height filters, and logical filters are based on the filtering mechanism provided by Revit API. They filter elements of specific categories, types, and properties to improve the efficiency and accuracy of program processing.

[0130] In Revit software, equipment type: usually refers to a specific object in the model, such as a specific water pipe, air conditioning equipment, etc.

[0131] Through these mechanisms, the device filter can effectively screen out the devices that need to be processed and avoid redundant operations on irrelevant devices, thereby optimizing the processing flow of the entire system.

[0132] The filtering standard of the floor height filter is the floor elevation, and the filter will filter the device models according to the floor elevation where the electromechanical device models are located. Only the device models that meet the specific floor elevation will be selected for further processing.

[0133] Equipment Filter: Next, use the equipment filter (ElementCategoryFilter or ElementClassFilter) to further filter the equipment model. This filter will exclude those equipment that do not need further processing based on the category of the equipment (such as pipe accessories, mechanical equipment, etc.) or family type.

[0134] Combination of logical filters: The above two filters are combined through logical filters, which means that the final filtered equipment must meet two conditions at the same time: located on a specific floor (filtered by the floor height filter) and belong to a specific category or family type (filtered by the equipment filter).

[0135] The purpose of the filtration terminal equipment is to improve the filtration accuracy, optimize the program performance and ensure the relevance of the treatment.

[0136] Step 4, traverse the element collector to obtain geometric information, parameter information and positioning information of the first electromechanical pipeline and the second electromechanical pipeline.

[0137] Automatically extract 3D geometry and semantic information from the BIM model to obtain the location of the supply (starting point) and demand (end point) points of the electromechanical pipelines, the size information of the building layout space, the location and size of building components such as columns, beams, equipment and other obstacles in the layout space, and the parameters of the piping system. In order to reduce errors and tedious manual work and improve the efficiency of geometric information extraction, a plug-in for the BIM platform is developed to automate the necessary information extraction. The project-specific model information required for the piping system design is then automatically extracted and passed to an external file for further design flow.

[0138] 1. Extraction of geometric information of electromechanical pipelines

[0139] In the development of electromechanical pipeline bending avoidance, it is necessary to frequently extract the geometric information of various pipelines. Taking the center positioning line of the air duct as an example, the steps for extracting geometric information are as follows:

[0140] (1) Use the "get_Geometry" method to obtain the geometric elements of the air duct, recursively obtain all GeometryObject objects of the geometric elements, and obtain the geometric entity (Solid).

[0141] (2) Store all geometric entities (Solid) and their geometric information into the collection "List <solid>", traverse the collection, obtain the geometric faces of the components from the geometric entity objects, and set the detail level of the extracted geometric faces to fine to improve the accuracy.

[0142] (3) Store all geometric faces and their geometric information into the collection "List <face>", traverse the set, obtain the center line (CenterCurve) from the geometric surface, project the center line in the coordinate system, obtain the positioning line of the center line on each coordinate axis, and judge whether the electromechanical pipelines intersect by whether the straight line equations of the positioning lines intersect, so as to know whether there is a collision relationship between the electromechanical pipelines.

[0143] The "get_Geometry" method is used in Revit API to obtain geometric data of elements. Geometric data includes points (Point), lines (Curve), geometric surfaces (Face), geometric entities (Solid), etc.

[0144] Specifically, geometric entities, geometric faces and their geometric information can be stored in a database as needed, or in a collection or list.

[0145] In Revit, the geometry of electromechanical pipelines is information about how building components occupy space and how they are related to each other, while the geometry of pipe components refers to the size, positioning and relationship of model elements. In Revit API, the geometric elements of pipelines can be obtained through the "get_Geometry" method of the component. Points In Revit, points are mainly used to mark specific locations in three-dimensional space, such as nodes in structures or specific spaces in buildings. These points can be represented by three-dimensional coordinates (X, Y, Z). Lines In Revit, a line is a straight line segment composed of two points. By specifying the start and end points, line elements can be created. These line elements can be used to represent various structural elements, such as the edges of steel bars, beams or walls. Geometric surfaces In Revit, planes are planes composed of three or more points. These points usually represent the floors, walls or other two-dimensional structures of buildings. Complex building structures can be created by adding different layers and materials on the planes. By using these basic geometric elements, Revit can be used to create various complex architectural and structural designs. At the same time, Revit also supports various annotations and dimensions to describe and record these geometric elements.

[0146] 2. Extraction of electromechanical pipeline parameter information

[0147] Take extracting duct parameter information as an example. First, check the duct parameter information in the Revit model. You can see that its parameter information includes width, length, system type, system classification, size, etc. Query the internal parameter name of the duct in the electromechanical pipeline model and extract the electromechanical pipeline parameter information corresponding to the internal parameter name. Among them, the internal parameter name corresponding to the duct is RBS_DUCT_SYSTEM.

[0148] Furthermore, the electromechanical pipelines include: "Pipe", "Duct" and "Cable Tray", where the pipelines include water supply and drainage pipelines, heating pipelines, industrial pipelines and other types, the ducts include air supply ducts, fresh air ducts, return air ducts and the like, and the cable trays are divided into communication cable trays, power cable trays, thermal resistance cables and other types; according to the bending avoidance requirements of the electromechanical pipelines, it is necessary to extract the internal parameter names shown in Table 4 from the three types of electromechanical pipelines respectively, and obtain the parameter information of the electromechanical pipelines through the internal parameter names, which is used as the basis for the subsequent calculation of the bending avoidance data of the electromechanical pipelines.

[0149] Table 4 Electromechanical pipeline parameter information name table

[0150]

[0151]

[0152] Taking the air duct as an example, the method of obtaining the geometric element parameter information in the electromechanical pipeline model through Revit API is divided into two steps: the first step is to obtain the required parameter information; the second step is to read and extract the value of the parameter information.

[0153] Specifically, the method for obtaining the geometric element parameter information in the electromechanical pipeline model in the first step includes:

[0154] Method 1: Get parameter information of data type "String" by calling the "LookupParameter" function. This method is a general method, but its disadvantage is that it is not compatible with Revit software in multiple languages.

[0155] Method 2: Get parameter information of data types "String", "BuiltInParameter" and "Guid" by calling the "Get_Parameter" function. This method is compatible with various Revit language versions.

[0156] Preferably, if the parameter information type is a built-in parameter, the parameter information can be obtained by calling the "get_Parameter" function, such as: pipeline system type, pipeline type, pipeline elevation, pipeline bottom elevation, pipeline slope, length, etc. If the geometric elements in the electromechanical pipeline model contain custom parameter information, such as: wind pressure, voltage, flow, material, etc., the parameter information containing custom parameters can be extracted by calling "LookupParameter".

[0157] The methods for obtaining different types of parameter information in Revit are shown in Table 5.

[0158] Table 5 Methods for obtaining different types of parameter information in Revit

[0159] Function Name Parameter information type describe LookupParameter String Obtained by the parameter name displayed on the Revit interface Get_Parameter BuiltInParameter Look up built-in parameters in a language-independent way Get_Parameter String to get all matches with a given name Get_Parameter Guid Get shared parameters by stored guid

[0160] Specifically, the method for reading and extracting the value of the parameter information in the second step includes:

[0161] After obtaining the parameters, you need to know the storage type of the parameters to extract the parameter values. Revit's parameter storage types are divided into 4 types, as shown in Table 6.

[0162] Table 6 Parameter information types and parameter information extraction function table

[0163] Parameter information type Extraction function Double(value) AsDouble Integer AsIntege String (text) AsString ElementID (geometric element ID) AsElementID

[0164] 3. Extraction of electromechanical pipeline positioning information

[0165] In Revit, the positioning information of electromechanical lines is used to describe the position and direction of electromechanical lines in a building. The positioning information can be obtained by manually adding positioning parameters or using the automatic positioning option. Manually adding positioning parameters allows users to place incoming geometry based on specific points defined in imported or linked files. The automatic positioning option can help users quickly position components, and can determine the center point or origin based on the geometry, thereby achieving rapid positioning of electromechanical lines.

[0166] Revit uses the "Location" attribute to record the location. "Location" is divided into two modes: "LocationPoint" and "LocationCurve", which correspond to the two positioning modes of positioning point and positioning line respectively. Equipment positioned by positioning point includes: structural columns, most furniture such as tables, doors and windows, most mechanical equipment, sprinklers, doors and windows, etc. Equipment positioned by positioning line includes: walls, structural beams, pipes, ducts, bridges, etc.

[0167] Step 5, obtaining the spatial coordinates of the collision intersection between the first electromechanical pipeline and the second electromechanical pipeline in the relative coordinate system according to the geometric information, parameter information and positioning information of the first electromechanical pipeline and the second electromechanical pipeline;

[0168] Finding the collision intersection of pipelines provides a data basis for the subsequent calculation of the bending control points of the electromechanical pipelines. Combined with the width and height parameters of the electromechanical pipelines, the collision intersection of the electromechanical pipelines is found through the "Intersect" function. Then, by extracting the positioning information of the electromechanical pipelines, the positioned pipelines are projected onto the same plane, and finally the spatial coordinates of the collision intersection between the electromechanical pipelines are obtained.

[0169] like Figure 4 Specifically, taking the collision between the air duct and other electromechanical pipelines as an example, the electromechanical pipeline intersection projection algorithm is as follows:

[0170] The first step is to obtain the endpoints of the positioning points of the duct and the collision pipeline. The purpose of obtaining the duct endpoints is to locate the unit vectors of the X-axis and the Z-axis during projection, so the endpoints at both ends of the duct are set to Duct_1 and Duct_2; the purpose of obtaining the endpoints of the collision pipeline is to locate the unit vector of the Z-axis during projection, so the single-side endpoint of the collision pipeline is set to Pipe_1.

[0171] In the second step, create a projection positioning line through the pipeline endpoints extracted in the previous step, project the duct positioning line onto the same plane as the collision pipeline positioning line, determine the position of the duct positioning line in space after projection, and set the two end points of the projected positioning line as Duct_3 and Duct_4.

[0172] The third step is that the duct projection positioning line and the collision pipeline positioning line are in the same spatial plane. The spatial coordinates of the collision point in the absolute coordinate system are calculated through the "Intersect" function and the coordinate data is returned.

[0173] According to the corresponding relationship between the absolute coordinate system and the relative coordinate system, the spatial coordinates of the collision intersection point between the air duct and the collision pipeline in the relative coordinate system are obtained.

[0174] Step 6, obtaining the spatial coordinates of the bending control points of the first electromechanical pipeline and the second electromechanical pipeline at the collision intersection in the relative coordinate system according to the spatial coordinates of the collision intersection between the first electromechanical pipeline and the second electromechanical pipeline in the relative coordinate system, and the geometric information and parameter information of the first electromechanical pipeline and the second electromechanical pipeline;

[0175] The coordinates of the pipeline bending control point can be calculated through the pipeline bending control point algorithm.

[0176] Specifically, the control points of the electromechanical pipelines after flipping are calculated using the intersection points of the electromechanical pipelines, combined with the width, height parameters, and radius parameters of the electromechanical pipelines, to facilitate the subsequent creation of pipelines; to facilitate the creation of connectors for pipeline elbows, the acquired control points are stored in sequence.

[0177] Step 7: Generate a first electromechanical pipeline model in a relative coordinate system according to the spatial coordinates of the bending control points.

[0178] The coordinates of the four points Q, R, S, and T are obtained through the pipeline control point algorithm, where QR is the two end positioning points of the vertical pipeline on the left, ST is the positioning point of the vertical pipeline on the right, and RS is the positioning point of the pipeline above the bend. The bend pipeline here is a water supply pipeline system. The connectors in the electromechanical pipeline model are traversed to generate elbows to connect the two sections of pipes. Finally, the bend pipelines are created in sequence, and the newly created bend pipelines are set according to the system type, pipeline type elevation, diameter and other parameters of the original pipeline. Since the newly generated bend pipeline has no connection relationship, it is necessary to connect the pipeline relationship. First, traverse the generated bend pipeline, obtain the connectors between the pipelines, and then create an elbow in the middle of the two pipelines to connect the two pipelines. According to the elbows recorded at the original two ends, use the "ConnectorAtPoint" function to find the new pipelines at both ends of the bend pipeline, and finally connect them.

[0179] The above method of the present invention has the following advantages: High automation: The present invention realizes the fully automatic extraction of pipeline geometry information, parameter information, and positioning information in a highly automated manner. Developed using the Revit secondary development API interface, it is possible to fully acquire and process the geometry data, parameter attributes, and positioning information of electromechanical pipelines in the building space. This automated processing not only reduces the time and workload of manual operation, but also greatly improves the accuracy and consistency of data extraction. In practical applications, through the automatically extracted electromechanical pipeline information, the system can quickly and accurately perform collision detection and adjustment, effectively avoiding errors and delays caused by human operation, and ensuring that the design and construction process of the project is more efficient and smooth. This automated processing method is particularly suitable for pipeline-dense areas in complex construction projects, greatly improving the overall design efficiency and project management level.

[0180] High accuracy: The present invention significantly improves the accuracy of identifying collision pipelines by using a variety of advanced spatial geometry algorithms. Specifically, these algorithms can accurately capture and analyze the spatial position, size and shape of pipelines, thereby efficiently identifying and handling various complex collision situations. In addition, the system can adjust the constraints according to different pipelines, intelligently adjust the pipeline layout, and achieve optimized turning and avoidance of multi-pipeline systems in limited spaces, ensuring the efficiency and feasibility of the design solution.

[0181] Efficiency: The present invention significantly improves the efficiency of modeling and design through an intelligent automatic adjustment algorithm compared to traditional manual methods. Designers no longer need to perform tedious manual operations, and the system can automatically complete pipeline collision detection and adjustment, greatly reducing the workload of designers. At the same time, due to the high accuracy and automated processing capabilities of the system, errors and omissions in the design process are effectively avoided, thereby reducing the risk of engineering rework due to design problems. In addition, the overall progress of the project is guaranteed, and there are no more delays in the construction period due to frequent design modifications. This not only improves the efficiency of project management, but also saves a lot of manpower and time costs, ensuring that the project can be completed on time and with high quality.

[0182] The present invention also provides an electromechanical pipeline information processing device 50, comprising:

[0183] An acquisition module 51 is used to acquire an electromechanical pipeline model and an absolute coordinate system and a basic unit of the electromechanical pipeline model;

[0184] The processing module 52 generates a relative coordinate system according to the absolute coordinate system; generates an internal unit according to the basic unit; filters the electromechanical pipeline model, deletes the terminal devices and terminal device information in the electromechanical pipeline model, and then stores the remaining filtered devices and remaining device information in the element collector; traverses the element collector to obtain the geometric information, parameter information and positioning information of the first electromechanical pipeline and the second electromechanical pipeline; obtains the spatial coordinates of the collision intersection between the first electromechanical pipeline and the second electromechanical pipeline in the relative coordinate system according to the geometric information, parameter information and positioning information of the first electromechanical pipeline and the second electromechanical pipeline; obtains the spatial coordinates of the bending control point of the first electromechanical pipeline and the second electromechanical pipeline at the collision intersection in the relative coordinate system according to the spatial coordinates of the collision intersection between the first electromechanical pipeline and the second electromechanical pipeline in the relative coordinate system, and the geometric information and parameter information of the first electromechanical pipeline and the second electromechanical pipeline; generates the first electromechanical pipeline model in the relative coordinate system according to the spatial coordinates of the bending control point.

[0185] Optionally, generating a relative coordinate system according to the absolute coordinate system includes:

[0186] Mapping two coordinate axes in the absolute coordinate system to the relative coordinate system;

[0187] Obtaining the third coordinate axis in the relative coordinate system by means of a vector cross product;

[0188] The corresponding relationship between the absolute coordinate system and the relative coordinate system is obtained through the origin positions of the absolute coordinate system and the relative coordinate system.

[0189] Optionally, generating an internal unit according to the basic unit includes:

[0190] The base unit is multiplied by a unit conversion factor to generate the internal unit.

[0191] Optionally, filtering the electromechanical pipeline model, deleting the terminal devices and terminal device information in the electromechanical pipeline model, and then storing the remaining filtered devices and the remaining device information in the element collector, includes:

[0192] Get element collectors and logical filters;

[0193] The logical filter includes a floor height filter and a device filter;

[0194] Identify the devices in the electromechanical pipeline model layer by layer through the layer height filter, divide the devices in the electromechanical pipeline model into terminal devices and other devices through the device filter, and obtain the addresses of the terminal devices and other devices;

[0195] Deleting the terminal device and the terminal device information in the electromechanical pipeline model according to the address of the terminal device;

[0196] According to the addresses of the remaining devices, the remaining devices and the remaining device information are stored in the element collector.

[0197] Optionally, obtaining the spatial coordinates of the collision intersection between the first electromechanical pipeline and the second electromechanical pipeline in a relative coordinate system according to the geometric information, parameter information and positioning information of the first electromechanical pipeline and the second electromechanical pipeline includes:

[0198] Acquire geometric elements in geometric information of the first electromechanical pipeline and the second electromechanical pipeline;

[0199] Determine whether the geometric element is a geometric entity;

[0200] storing the geometric entity in the first database;

[0201] Traversing the geometric entities in the first database, generating geometric surfaces, and storing the geometric surfaces in the second database;

[0202] Traversing the geometric surfaces in the second database to generate center lines of the geometric surfaces;

[0203] According to the center line of the geometric surface, obtaining the positioning lines of the first electromechanical pipeline and the second electromechanical pipeline in the absolute coordinate system;

[0204] According to the correspondence between the absolute coordinate system and the relative coordinate system, geometric information, parameter information and positioning information of the first electromechanical pipeline and the second electromechanical pipeline in the relative coordinate system, and positioning lines of the first electromechanical pipeline and the second electromechanical pipeline in the relative coordinate system are obtained;

[0205] Based on the positioning lines of the first electromechanical pipeline and the second electromechanical pipeline in the relative coordinate system, the geometric information, parameter information and positioning information of the first electromechanical pipeline and the second electromechanical pipeline in the relative coordinate system, the spatial coordinates of the collision intersection of the first electromechanical pipeline and the second electromechanical pipeline in the relative coordinate system are obtained.

[0206] Optionally, according to the spatial coordinates of the collision intersection between the first electromechanical pipeline and the second electromechanical pipeline in the relative coordinate system, the geometric information and parameter information of the first electromechanical pipeline and the second electromechanical pipeline, the spatial coordinates of the bending control points of the first electromechanical pipeline and the second electromechanical pipeline at the collision intersection in the relative coordinate system are obtained, including:

[0207] according to Obtain the distance that the second electromechanical pipeline moves in the horizontal direction, where HO is the distance that the second electromechanical pipeline moves in the horizontal direction, PW is the width of the first electromechanical pipeline, D is the diameter of the second electromechanical pipeline, and GAP is the distance 5 between the first electromechanical pipeline and the second electromechanical pipeline;

[0208] according to Obtaining a distance 3 that the second electromechanical pipeline moves in the vertical direction, wherein VE is a distance 3 that the second electromechanical pipeline moves in the vertical direction, PH is a height 4 of the first electromechanical pipeline, D is a diameter of the second electromechanical pipeline, and GAP is a distance 5 between the first electromechanical pipeline and the second electromechanical pipeline;

[0209] The distance the second electromechanical pipeline moves in the horizontal direction, the width of the first electromechanical pipeline, the distance 3 the second electromechanical pipeline moves in the vertical direction, the height 4 of the first electromechanical pipeline, the diameter of the second electromechanical pipeline and the distance 5 between the first electromechanical pipeline and the second electromechanical pipeline are all in internal units;

[0210] Obtain the spatial coordinates of the first positioning point 6 and the second positioning point 11 on the second electromechanical pipeline, which are away from both sides of the collision intersection, in the relative coordinate system;

[0211] According to the spatial coordinates of the first positioning point 6 and the second positioning point 11 in the relative coordinate system, the projection of the distance 3 moved by the second electromechanical pipeline in the vertical direction in the relative coordinate system and the projection of the distance moved by the second electromechanical pipeline in the horizontal direction in the relative coordinate system, the spatial coordinates of the bending control points of the first electromechanical pipeline and the second electromechanical pipeline at the collision intersection in the relative coordinate system are obtained;

[0212] The turning control points include: a first control point 7 , a second control point 8 , a third control point 9 and a fourth control point 10 .

[0213] Optionally, generating a first electromechanical pipeline model in a relative coordinate system according to the spatial coordinates of the bending control point includes:

[0214] Traversing the electromechanical pipeline model to obtain geometric information, parameter information and positioning information of a second electromechanical pipeline in the electromechanical pipeline model;

[0215] According to the correspondence between the absolute coordinate system and the relative coordinate system, generating geometric information, parameter information and positioning information of the second electromechanical pipeline in the relative coordinate system;

[0216] According to the spatial coordinates of the first control point 7, the second control point 8, the third control point 9 and the fourth control point 10 in the relative coordinate system, a bent pipeline at the collision intersection of the second electromechanical pipeline and the first electromechanical pipeline is generated in the relative coordinate system;

[0217] The bent pipeline is connected to the second electromechanical pipeline in the relative coordinate system, and the pipeline at the collision intersection between the second electromechanical pipeline and the first electromechanical pipeline is deleted to generate a first electromechanical pipeline model in the relative coordinate system.

[0218] It should be noted that the device is a device corresponding to the above method, and all implementation methods in the above method embodiments are applicable to the embodiments of the device and can achieve the same technical effects.

[0219] The embodiment of the present invention further provides a computing device, including: a processor, a memory storing a computer program, and when the computer program is executed by the processor, the method described in the above embodiment is executed. All implementations in the above method embodiment are applicable to this embodiment and can achieve the same technical effect.

[0220] In an embodiment of the present invention, a computer-readable storage medium is further provided, which stores instructions, and when the instructions are executed on a computer, the computer executes the method described in the above embodiment. All implementations in the above method embodiment are applicable to this embodiment, and can also achieve the same technical effect.

[0221] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can 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.

[0222] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0223] In the embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0224] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0225] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0226] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, ROM, RAM, magnetic disks, or optical disks.

[0227] In addition, it should be noted that in the apparatus and method of the present invention, it is obvious that each component or each step can be decomposed and / or recombined. These decompositions and / or recombinations should be regarded as equivalent schemes of the present invention. Moreover, the steps of performing the above-mentioned series of processing can naturally be performed in chronological order according to the order of description, but it is not necessary to perform them in chronological order, and some steps can be performed in parallel or independently of each other. For those of ordinary skill in the art, it is understood that all or any steps or components of the method and apparatus of the present invention can be implemented in any computing device (including processors, storage media, etc.) or a network of computing devices in hardware, firmware, software or a combination thereof, which can be achieved by those of ordinary skill in the art using their basic programming skills after reading the description of the present invention.

[0228] Therefore, the purpose of the present invention can also be achieved by running a program or a group of programs on any computing device. The computing device can be a well-known general device. Therefore, the purpose of the present invention can also be achieved by simply providing a program product containing a program code that implements the method or device. That is to say, such a program product also constitutes the present invention, and the storage medium storing such a program product also constitutes the present invention. Obviously, the storage medium can be any well-known storage medium or any storage medium developed in the future. It should also be pointed out that in the device and method of the present invention, it is obvious that each component or each step can be decomposed and / or recombined. These decompositions and / or recombinations should be regarded as equivalent schemes of the present invention. In addition, the steps of performing the above-mentioned series of processing can naturally be performed in chronological order according to the order of description, but it is not necessary to perform them in chronological order. Some steps can be performed in parallel or independently of each other.

[0229] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.< / face> < / solid>

Claims

1. A method for processing electromechanical pipeline information, characterized in that: include: Acquire an electromechanical pipeline model and an absolute coordinate system and a basic unit of the electromechanical pipeline model; Generate a relative coordinate system according to the absolute coordinate system; generating internal units according to the basic units; Filtering the electromechanical pipeline model, deleting the terminal devices and terminal device information in the electromechanical pipeline model, and then storing the remaining devices and the remaining device information after filtering into the element collector; Traversing the element collector to obtain geometric information, parameter information and positioning information of the first electromechanical pipeline and the second electromechanical pipeline; Obtaining the spatial coordinates of the collision intersection between the first electromechanical pipeline and the second electromechanical pipeline in a relative coordinate system according to the geometric information, parameter information and positioning information of the first electromechanical pipeline and the second electromechanical pipeline; According to the spatial coordinates of the collision intersection between the first electromechanical pipeline and the second electromechanical pipeline in the relative coordinate system, the geometric information and parameter information of the first electromechanical pipeline and the second electromechanical pipeline, the spatial coordinates of the bending control points of the first electromechanical pipeline and the second electromechanical pipeline at the collision intersection in the relative coordinate system are obtained; Generating a first electromechanical pipeline model in a relative coordinate system according to the spatial coordinates of the bending control points; Wherein, obtaining the spatial coordinates of the collision intersection between the first electromechanical pipeline and the second electromechanical pipeline in the relative coordinate system according to the geometric information, parameter information and positioning information of the first electromechanical pipeline and the second electromechanical pipeline includes: Acquire geometric elements in geometric information of the first electromechanical pipeline and the second electromechanical pipeline; Determine whether the geometric element is a geometric entity; storing the geometric entity in a first database; Traversing the geometric entities in the first database, generating geometric surfaces, and storing the geometric surfaces in the second database; Traversing the geometric surfaces in the second database to generate center lines of the geometric surfaces; According to the center line of the geometric surface, obtaining the positioning lines of the first electromechanical pipeline and the second electromechanical pipeline in the absolute coordinate system; According to the correspondence between the absolute coordinate system and the relative coordinate system, geometric information, parameter information and positioning information of the first electromechanical pipeline and the second electromechanical pipeline in the relative coordinate system, and positioning lines of the first electromechanical pipeline and the second electromechanical pipeline in the relative coordinate system are obtained; Obtaining the spatial coordinates of the collision intersection of the first electromechanical pipeline and the second electromechanical pipeline in the relative coordinate system according to the positioning lines of the first electromechanical pipeline and the second electromechanical pipeline in the relative coordinate system, the geometric information, parameter information and positioning information of the first electromechanical pipeline and the second electromechanical pipeline in the relative coordinate system; Among them, according to the spatial coordinates of the collision intersection between the first electromechanical pipeline and the second electromechanical pipeline in the relative coordinate system, the geometric information and parameter information of the first electromechanical pipeline and the second electromechanical pipeline, the spatial coordinates of the bending control points of the first electromechanical pipeline and the second electromechanical pipeline at the collision intersection in the relative coordinate system are obtained, including: according to Obtain the distance that the second electromechanical pipeline moves in the horizontal direction, where HO is the distance that the second electromechanical pipeline moves in the horizontal direction, PW is the width of the first electromechanical pipeline, D is the diameter of the second electromechanical pipeline, and GAP is the distance between the first electromechanical pipeline and the second electromechanical pipeline; according to Obtaining a distance moved by the second electromechanical pipeline in the vertical direction, wherein VE is a distance moved by the second electromechanical pipeline in the vertical direction, PH is a height of the first electromechanical pipeline, D is a diameter of the second electromechanical pipeline, and GAP is a distance between the first electromechanical pipeline and the second electromechanical pipeline; The horizontal movement distance of the second electromechanical pipeline, the width of the first electromechanical pipeline, the vertical movement distance of the second electromechanical pipeline, the height of the first electromechanical pipeline, the diameter of the second electromechanical pipeline, and the distance between the first electromechanical pipeline and the second electromechanical pipeline are all expressed in internal units; Obtaining spatial coordinates of a first positioning point and a second positioning point on the second electromechanical pipeline that are away from both sides of the collision intersection in a relative coordinate system; According to the spatial coordinates of the first positioning point and the second positioning point in the relative coordinate system, the projection of the distance moved by the second electromechanical pipeline in the vertical direction in the relative coordinate system and the projection of the distance moved by the second electromechanical pipeline in the horizontal direction in the relative coordinate system, the spatial coordinates of the bending control points of the first electromechanical pipeline and the second electromechanical pipeline at the collision intersection in the relative coordinate system are obtained; The turning control points include: a first control point, a second control point, a third control point and a fourth control point; According to the spatial coordinates of the bending control points, a first electromechanical pipeline model in a relative coordinate system is generated, including: Traversing the electromechanical pipeline model to obtain geometric information, parameter information and positioning information of a second electromechanical pipeline in the electromechanical pipeline model; According to the correspondence between the absolute coordinate system and the relative coordinate system, generating geometric information, parameter information and positioning information of the second electromechanical pipeline in the relative coordinate system; Generate a bent pipeline at a collision intersection between the second electromechanical pipeline and the first electromechanical pipeline in the relative coordinate system according to the spatial coordinates of the first control point, the second control point, the third control point and the fourth control point in the relative coordinate system; The bent pipeline is connected to the second electromechanical pipeline in the relative coordinate system, and the pipeline at the collision intersection between the second electromechanical pipeline and the first electromechanical pipeline is deleted to generate a first electromechanical pipeline model in the relative coordinate system.

2. The electromechanical pipeline information processing method according to claim 1, characterized in that: Generating a relative coordinate system according to the absolute coordinate system includes: Mapping two coordinate axes in the absolute coordinate system to the relative coordinate system; Obtaining the third coordinate axis in the relative coordinate system by means of a vector cross product; The corresponding relationship between the absolute coordinate system and the relative coordinate system is obtained through the origin positions of the absolute coordinate system and the relative coordinate system.

3. The electromechanical pipeline information processing method according to claim 1, characterized in that: Based on the basic unit, internal units are generated, including: The base unit is multiplied by a unit conversion factor to generate the internal unit.

4. The electromechanical pipeline information processing method according to claim 1, characterized in that: Filtering the electromechanical pipeline model, deleting the terminal devices and terminal device information in the electromechanical pipeline model, and then storing the remaining filtered devices and the remaining device information in the element collector, including: Get element collectors and logical filters; The logical filter includes a floor height filter and a device filter; Identify the devices in the electromechanical pipeline model layer by layer through the layer height filter, divide the devices in the electromechanical pipeline model into terminal devices and other devices through the device filter, and obtain the addresses of the terminal devices and other devices; Deleting the terminal device and the terminal device information in the electromechanical pipeline model according to the address of the terminal device; According to the addresses of the remaining devices, the remaining devices and the remaining device information are stored in the element collector.

5. An electromechanical pipeline information processing device, characterized in that: include: An acquisition module, used for acquiring an electromechanical pipeline model and an absolute coordinate system and a basic unit of the electromechanical pipeline model; A processing module generates a relative coordinate system according to the absolute coordinate system; generating internal units according to the basic units; Filtering the electromechanical pipeline model, deleting the terminal devices and terminal device information in the electromechanical pipeline model, and then storing the remaining devices and the remaining device information after filtering into the element collector; Traversing the element collector, obtaining geometric information, parameter information and positioning information of the first electromechanical pipeline and the second electromechanical pipeline; obtaining the spatial coordinates of the collision intersection between the first electromechanical pipeline and the second electromechanical pipeline in the relative coordinate system according to the geometric information, parameter information and positioning information of the first electromechanical pipeline and the second electromechanical pipeline; obtaining the spatial coordinates of the bending control points of the first electromechanical pipeline and the second electromechanical pipeline at the collision intersection in the relative coordinate system according to the spatial coordinates of the collision intersection between the first electromechanical pipeline and the second electromechanical pipeline in the relative coordinate system, and the geometric information and parameter information of the first electromechanical pipeline and the second electromechanical pipeline; generating a first electromechanical pipeline model in the relative coordinate system according to the bending control point spatial coordinates; Wherein, obtaining the spatial coordinates of the collision intersection between the first electromechanical pipeline and the second electromechanical pipeline in the relative coordinate system according to the geometric information, parameter information and positioning information of the first electromechanical pipeline and the second electromechanical pipeline includes: Acquire geometric elements in geometric information of the first electromechanical pipeline and the second electromechanical pipeline; Determine whether the geometric element is a geometric entity; storing the geometric entity in a first database; Traversing the geometric entities in the first database, generating geometric surfaces, and storing the geometric surfaces in the second database; Traversing the geometric surfaces in the second database to generate center lines of the geometric surfaces; According to the center line of the geometric surface, obtaining the positioning lines of the first electromechanical pipeline and the second electromechanical pipeline in the absolute coordinate system; According to the correspondence between the absolute coordinate system and the relative coordinate system, geometric information, parameter information and positioning information of the first electromechanical pipeline and the second electromechanical pipeline in the relative coordinate system, and positioning lines of the first electromechanical pipeline and the second electromechanical pipeline in the relative coordinate system are obtained; Obtaining the spatial coordinates of the collision intersection of the first electromechanical pipeline and the second electromechanical pipeline in the relative coordinate system according to the positioning lines of the first electromechanical pipeline and the second electromechanical pipeline in the relative coordinate system, the geometric information, parameter information and positioning information of the first electromechanical pipeline and the second electromechanical pipeline in the relative coordinate system; Among them, according to the spatial coordinates of the collision intersection between the first electromechanical pipeline and the second electromechanical pipeline in the relative coordinate system, the geometric information and parameter information of the first electromechanical pipeline and the second electromechanical pipeline, the spatial coordinates of the bending control points of the first electromechanical pipeline and the second electromechanical pipeline at the collision intersection in the relative coordinate system are obtained, including: according to Obtain the distance that the second electromechanical pipeline moves in the horizontal direction, where HO is the distance that the second electromechanical pipeline moves in the horizontal direction, PW is the width of the first electromechanical pipeline, D is the diameter of the second electromechanical pipeline, and GAP is the distance between the first electromechanical pipeline and the second electromechanical pipeline; according to Obtaining a distance moved by the second electromechanical pipeline in the vertical direction, wherein VE is a distance moved by the second electromechanical pipeline in the vertical direction, PH is a height of the first electromechanical pipeline, D is a diameter of the second electromechanical pipeline, and GAP is a distance between the first electromechanical pipeline and the second electromechanical pipeline; The horizontal movement distance of the second electromechanical pipeline, the width of the first electromechanical pipeline, the vertical movement distance of the second electromechanical pipeline, the height of the first electromechanical pipeline, the diameter of the second electromechanical pipeline, and the distance between the first electromechanical pipeline and the second electromechanical pipeline are all expressed in internal units; Obtaining spatial coordinates of a first positioning point and a second positioning point on the second electromechanical pipeline that are away from both sides of the collision intersection in a relative coordinate system; According to the spatial coordinates of the first positioning point and the second positioning point in the relative coordinate system, the projection of the distance moved by the second electromechanical pipeline in the vertical direction in the relative coordinate system and the projection of the distance moved by the second electromechanical pipeline in the horizontal direction in the relative coordinate system, the spatial coordinates of the bending control points of the first electromechanical pipeline and the second electromechanical pipeline at the collision intersection in the relative coordinate system are obtained; The turning control points include: a first control point, a second control point, a third control point and a fourth control point; According to the spatial coordinates of the bending control points, a first electromechanical pipeline model in a relative coordinate system is generated, including: Traversing the electromechanical pipeline model to obtain geometric information, parameter information and positioning information of a second electromechanical pipeline in the electromechanical pipeline model; According to the correspondence between the absolute coordinate system and the relative coordinate system, generating geometric information, parameter information and positioning information of the second electromechanical pipeline in the relative coordinate system; Generate a bent pipeline at a collision intersection between the second electromechanical pipeline and the first electromechanical pipeline in the relative coordinate system according to the spatial coordinates of the first control point, the second control point, the third control point and the fourth control point in the relative coordinate system; The bent pipeline is connected to the second electromechanical pipeline in the relative coordinate system, and the pipeline at the collision intersection between the second electromechanical pipeline and the first electromechanical pipeline is deleted to generate a first electromechanical pipeline model in the relative coordinate system.

6. A computing device, characterized in that include: A processor and a memory storing a computer program, wherein when the computer program is executed by the processor, the method according to any one of claims 1 to 4 is performed.

7. A computer-readable storage medium, characterized in that: Instructions are stored, and when the instructions are executed on a computer, the computer is caused to execute the method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Tractor and trailer collision detection method, system and device and storage medium

    CN115014809A

  • Collision member automatic optimization method

    CN117669100A