Content overlapping processing method, system and device for electromechanical installation annotation and medium
By using one-click avoidance and box selection avoidance algorithms in BIM software, the overlap of label content in the electromechanical installation drawings is automatically handled, which solves the problem of label overlap in the existing technology, and improves work efficiency and label quality.
Patent Information
- Application Number
- CN202411682946.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-22
- Publication Date
- 2025-04-18
- Estimated Expiration
- 2044-11-22
AI Technical Summary
There is a lot of overlap of the icons for existing mechanical and electrical installations, which makes it impossible to recognize the picture, and manual modification is time-consuming and labor-intensive, which seriously affects work efficiency.
In the electromechanical installation drawings of the preset BIM software, the one-click avoidance algorithm and the box selection avoidance algorithm are automatically avoided to eliminate overlap. The specific steps include extracting the label information, building a movable range, and automatically evading according to the preset evasion rules.
Through one-click avoidance and box selection avoidance, the time and cost of manually adjusting overlapping annotations is significantly reduced, the labeling efficiency is improved, and the accuracy and completeness of the labeling is ensured.
Smart Images

Figure CN119848976A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of electromechanical installation technology, and in particular to a method, system, device and medium for processing overlapping content of electromechanical installation annotations. Background Art
[0002] For BIM electromechanical installation drawing annotation, Revit and mainstream Revit secondary development software provide quick annotation functions for electromechanical pipeline specifications, pipeline elevations, pipeline positioning dimensions, etc. However, after quick annotation, there will be a lot of overlap between pipeline information annotation and positioning annotation, resulting in the inability to recognize drawings. Manual modification is time-consuming and labor-intensive, which seriously affects work efficiency.
[0003] At present, there are a lot of overlapping problems in the existing electromechanical installation drawings in the relevant technology, and no effective solution has been proposed yet. Summary of the invention
[0004] The embodiments of the present application provide a method, system, device and medium for processing content overlap of electromechanical installation annotations, so as to at least solve the problem that there are a large number of overlaps in the existing electromechanical installation drawing annotations in the related art.
[0005] In a first aspect, an embodiment of the present application provides a method for processing overlapping content of electromechanical installation annotations, the method comprising:
[0006] In the electromechanical installation drawings of the preset BIM software, all the annotation contents in the electromechanical installation drawings are automatically avoided between the overlapping annotation contents through a one-click avoidance algorithm;
[0007] In the electromechanical installation drawings of the preset BIM software, a frame selection avoidance algorithm is used to automatically avoid overlapping annotation contents within a preset frame selection range in the electromechanical installation drawings.
[0008] In some embodiments, the one-key avoidance algorithm is used to automatically avoid overlapping annotation contents of all annotation contents in the electromechanical installation drawing, including:
[0009] Acquire all the annotation contents in the electromechanical installation drawing, extract information from the annotation contents, and obtain text annotation information and dimension annotation information;
[0010] Based on the text annotation information and dimension annotation information of each annotation content, construct a movable range of the corresponding annotation content;
[0011] Through a one-key avoidance algorithm, overlapping annotation contents in the electromechanical installation drawing are automatically avoided within the movable range according to preset avoidance rules.
[0012] In some embodiments, based on the text annotation information and dimension annotation information of each annotation content, constructing the movable range of the corresponding annotation content includes:
[0013] The text annotation information includes text range information and attached pipeline information, and the dimension annotation information includes text positioning information and electromechanical model component positioning information;
[0014] Determine a first range constraint condition corresponding to the annotation content based on the text range information and the attached pipeline information of each annotation content;
[0015] Determine a second range constraint condition of the content to be annotated based on the text positioning information of each annotated content and the electromechanical model component positioning information;
[0016] Based on the first range constraint condition and the second range constraint condition, a movable range corresponding to the annotated content is constructed.
[0017] In some embodiments, the automatic avoidance of overlapping annotation contents within a preset frame selection range in the electromechanical installation drawing by a frame selection avoidance algorithm includes:
[0018] Determine whether the annotation content within the preset frame selection range in the electromechanical installation drawing caches the corresponding movable range, and if so, use a frame selection avoidance algorithm to make the overlapping annotation content within the preset frame selection range automatically avoid within the movable range according to the preset avoidance rule;
[0019] If not, based on the text annotation information and dimension annotation information of each annotation content within the preset frame selection range, a movable range of the corresponding annotation content is constructed, and then automatic avoidance is performed through a frame selection avoidance algorithm.
[0020] In some embodiments, based on the text annotation information and dimension annotation information of each annotation content within the preset selection range, constructing a movable range of the corresponding annotation content includes:
[0021] Using a collision detection algorithm, the overlapping annotation contents in the preset selection range are located to obtain an overlapping annotation content list;
[0022] Extracting information from the annotation contents in the annotation content overlap list to obtain text annotation information and dimension annotation information;
[0023] Based on the text annotation information and dimension annotation information of each annotation content, a movable range of the corresponding annotation content is constructed.
[0024] In some embodiments, the preset avoidance rules include:
[0025] The pipeline specification marking content and pipeline elevation marking content cannot overlap with each other;
[0026] The pipeline specification marking content and pipeline elevation marking content cannot overlap with the structural column;
[0027] The pipeline specification marking content and pipeline elevation marking content cannot overlap with the electromechanical model components;
[0028] The pipeline specification marking content and pipeline elevation marking content cannot overlap with the wall.
[0029] In some of the embodiments, the preset BIM software is Revit software.
[0030] In a second aspect, an embodiment of the present application provides a system for processing overlapping content of electromechanical installation annotations, the system being used to execute the method described in the first aspect above, the system comprising a global automatic avoidance module and a local automatic avoidance module;
[0031] The global automatic avoidance module is used to automatically avoid different annotation contents in all annotation contents in the electromechanical installation drawings of the preset BIM software through the overlapping annotation automatic avoidance algorithm;
[0032] The local automatic avoidance module is used to automatically avoid different annotation contents within a preset box selection range in the electromechanical installation drawings of the preset BIM software through the overlapping annotation automatic avoidance algorithm.
[0033] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described in the first aspect when executing the computer program.
[0034] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described in the first aspect above.
[0035] Compared with the related art, the embodiments of the present application provide a method, system, device and medium for processing overlapping content of electromechanical installation annotations, wherein the method, in the electromechanical installation drawings of the preset BIM software, uses a one-click avoidance algorithm to automatically avoid overlapping annotation contents of all annotation contents in the electromechanical installation drawings; in the electromechanical installation drawings of the preset BIM software, uses a box selection avoidance algorithm to automatically avoid overlapping annotation contents within a preset box selection range in the electromechanical installation drawings, thereby realizing one-click avoidance and box selection avoidance, reducing the time and cost of manually adjusting overlapping annotations in electromechanical installation drawings, significantly improving annotation efficiency, and ensuring the accuracy and completeness of annotations, solving the problem of a large number of overlapping annotations in existing electromechanical installation drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0037] Figure 1 is a flowchart of the steps of a method for processing overlapping content of electromechanical installation annotations according to an embodiment of the present application;
[0038] Figure 2 It is a flowchart of a method for processing overlapping content of electromechanical installation annotations according to an embodiment of the present application;
[0039] Figure 3 Schematic diagram of the comparison before and after automatic avoidance according to the embodiment of the present application Figure 1 ;
[0040] Figure 4 Schematic diagram of the comparison before and after automatic avoidance according to the embodiment of the present application Figure 2 ;
[0041] Figure 5 It is a schematic diagram of the internal structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0042] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments provided in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
[0043] Obviously, the drawings described below are only some examples or embodiments of the present application. For ordinary technicians in this field, the present application can also be applied to other similar scenarios based on these drawings without creative work. In addition, it can also be understood that although the efforts made in this development process may be complicated and lengthy, for ordinary technicians in this field related to the content disclosed in this application, some changes in design, manufacturing or production based on the technical content disclosed in this application are just conventional technical means, and should not be understood as insufficient content disclosed in this application.
[0044] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those of ordinary skill in the art that the embodiments described in this application may be combined with other embodiments without conflict.
[0045] Unless otherwise defined, the technical terms or scientific terms involved in this application should be understood by people with ordinary skills in the technical field to which this application belongs. The words "one", "a", "a", "the" and the like involved in this application do not indicate a quantitative limitation, and may represent the singular or plural. The terms "include", "comprise", "have" and any of their variations involved in this application are intended to cover non-exclusive inclusions; for example, a process, method, system, product or device that includes a series of steps or modules (units) is not limited to the listed steps or units, but may also include steps or units that are not listed, or may also include other steps or units inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The "multiple" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there may be three relationships, for example, "A and / or B" can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects before and after are in an "or" relationship. The terms "first", "second", "third", etc. involved in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.
[0046] The present application embodiment provides a method for processing overlapping content of electromechanical installation annotations. Figure 1 is a flowchart of the steps of the method for processing overlapping content of electromechanical installation annotations according to an embodiment of the present application, such as Figure 1As shown, the method comprises the following steps:
[0047] Step S102, in the electromechanical installation drawings of the preset BIM software, all the annotation contents in the electromechanical installation drawings are automatically avoided between the overlapping annotation contents through a one-click avoidance algorithm; the electromechanical installation drawings include but are not limited to water supply and drainage pipe plan drawings, heating and ventilation pipe plan drawings, electrical bridge plan drawings, and pre-buried and reserved casing drawings.
[0048] It should be noted that BIM (Building Information Modeling) is a digital technology used for building design, construction and management. It is not just a software tool, but also a complete set of workflows designed to improve the efficiency and accuracy of each stage of a construction project. In BIM, each component of a construction project (such as structure, pipeline, electrical system, etc.) is created as a virtual three-dimensional model, which contains a wealth of information, such as material specifications, cost estimates, maintenance requirements, etc. The method for processing overlapping content of electromechanical installation annotations in this embodiment is mainly aimed at the three-dimensional to two-dimensional output annotations. Preferably, the preset BIM software is preferably revit software.
[0049] Step S102 specifically includes the following steps:
[0050] Step S1021, Figure 2 is a flow chart of a method for processing overlapping content of electromechanical installation annotations according to an embodiment of the present application, such as Figure 2 As shown, in one-key avoidance, firstly, the annotation information of all annotation contents in the view is extracted, that is, all annotation contents in the electromechanical installation drawing are obtained, and information is extracted from the annotation contents to obtain text annotation information and dimension annotation information;
[0051] Specifically, step S1021 extracts text annotation information including text range information and attached pipeline information, and dimension annotation information including text positioning information and electromechanical model component positioning information.
[0052] Step S1022, as Figure 2 As shown, then the movable range of the annotation content is constructed based on the extracted annotation information, that is, based on the text annotation information and dimension annotation information of each annotation content, the movable range of the corresponding annotation content is constructed;
[0053] Specifically, step S1022 determines the first range constraint of the corresponding annotation content (such as the distance between the text range and the affiliated pipeline is kept within a preset range) based on the text positioning information and electromechanical model component positioning information of each annotation content; determines the second range constraint of the content to be annotated (such as the text positioning and the electromechanical model positioning cannot overlap) based on the first range constraint and the second range constraint, and constructs the movable range of the corresponding annotation content based on the first range constraint and the second range constraint.
[0054] Step S1023, as Figure 2 As shown, the avoidance algorithm is finally executed, that is, through the one-key avoidance algorithm, the overlapping annotation content in the electromechanical installation drawing is automatically avoided within the movable range according to the preset avoidance rules.
[0055] An example is needed to illustrate that to determine the annotation that needs to be automatically avoided, the movable position in the movable range stored previously is taken to determine whether the movable position overlaps with other view elements (such as structural columns, electromechanical model components, walls). If there is no collision, the position is recorded. If there is overlap, the execution is repeated until there is no overlap.
[0056] Step S104, in the electromechanical installation drawings of the preset BIM software, the overlapping annotation contents are automatically avoided for the annotation contents within the preset frame selection range in the electromechanical installation drawings through a frame selection avoidance algorithm.
[0057] Step S104 specifically includes the following steps:
[0058] Step S1041, as Figure 2 As shown, in the box selection avoidance, it is determined whether the data (movable range) has been constructed, that is, it is determined whether the annotation content within the preset box selection range in the electromechanical installation drawing caches the corresponding movable range. If so, the box selection avoidance algorithm is used to make the overlapping annotation content within the preset box selection range automatically avoid within the movable range according to the preset avoidance rules;
[0059] Step S1042, as Figure 2 As shown, in the box selection avoidance, if there is no cached data, the movable range of the annotation content is constructed based on the extracted annotation information, and the avoidance algorithm is executed, that is, based on the text annotation information and dimension annotation information of each annotation content within the preset box selection range, the movable range of the corresponding annotation content is constructed, and then automatic avoidance is performed through the box selection avoidance algorithm. Figure 3 Schematic diagram of the comparison before and after automatic avoidance according to the embodiment of the present application Figure 1 , Figure 4 Schematic diagram of the comparison before and after automatic avoidance according to the embodiment of the present application Figure 2 .
[0060] Step S1042 specifically locates the overlapping annotation contents in the preset selection range through a collision detection algorithm, and obtains an annotation content overlap list; extracts information from the annotation contents in the annotation content overlap list to obtain text annotation information and dimension annotation information; and constructs a movable range of the corresponding annotation contents based on the text annotation information and dimension annotation information of each annotation content. Table 1 is an example table of the annotation content overlap list, as shown in Table 1.
[0061] Table 1
[0062] Serial number Overlapping annotation content 1 Cable Tray Marking & Dimensioning / Cable Tray Marking 2 Multi-Pipe Markers & Cable Tray Markers 3 Cable Tray Marking & Dimensioning / Cable Tray Accessories 4 Multi-tube marking & dimensioning / structural columns 5 Cable Tray Marking & Dimensioning 6 Dimensioning & Cable Tray Marking / Cable Tray Accessories 7 Dimensioning & Cable Tray Accessories
[0063] It should be noted that the collision detection mainly uses the overlap detection algorithm to detect the overlap between annotations, including horizontal and vertical overlaps. The overlap detection algorithm needs to detect the overlap detection between annotations, annotations and pipes, annotations and air ducts, annotations and bridges, annotations and structural columns, annotations and walls, annotations and annotation leads, etc. The main detection steps are: (1) When judging whether two objects collide, with the help of RTree, other outer boxes that collide with them can be quickly found through the outer boxes; (2) If the outer boxes collide, continue to judge whether the real contours collide;
[0064] It should be further explained that in the one-key avoidance of step S1021, the overlapping annotation contents in the electromechanical installation drawings can be located by using a collision detection algorithm to obtain an overlapping annotation content list; then information extraction is performed on the annotation contents in the overlapping annotation content list to obtain text annotation information and dimension annotation information. It can be seen that by first filtering out the overlapping annotation contents through a collision detection algorithm and then extracting information from the filtered annotation contents, the efficiency of information extraction in steps S1021 and S1042 can be effectively improved, thereby improving the efficiency of automatic avoidance of the overall overlapping annotation contents.
[0065] Through the above steps in the embodiment of the present application, one-click avoidance and frame avoidance are achieved, which reduces the time and cost of manual adjustment of overlapping annotations in electromechanical installation drawings, significantly improves the annotation efficiency, ensures the accuracy and completeness of the annotations, and solves the problem of a large number of overlapping annotations in existing electromechanical installation drawings.
[0066] It should be noted that the steps shown in the above process or the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0067] In some of the embodiments, the preset avoidance rules in the above embodiments preferably include:
[0068] ① The pipeline specification marking content and pipeline elevation marking content cannot overlap with each other;
[0069] ② The pipeline specification marking content and pipeline elevation marking content cannot overlap with the structural column;
[0070] ③ The pipeline specification and elevation marking contents cannot overlap with the electromechanical model components, where the electromechanical model components include pipelines, pipeline accessories and pipe fittings;
[0071] ④ The pipeline specification marking content and pipeline elevation marking content cannot overlap with the wall.
[0072] In some embodiments, the avoidance action corresponding to the automatic avoidance in the above embodiments is preferably:
[0073] ① According to the direction of the pipeline, it is preferred to flip parallel to the pipeline direction; if there is a collision, it is translated by a distance of 1 character width; if there is a collision, it is flipped parallel to the pipeline direction again, and so on and so forth until the lead generation position is at the end of the pipeline, and the mark returns to the initial position;
[0074] ② Flip perpendicular to the pipeline direction; if there is a collision, flip parallel to the pipeline direction; if there is a collision, translate by 1 character width; if there is a collision, flip parallel to the pipeline direction, and repeat this process until the lead generation position is at the end of the pipeline, and the mark returns to the initial position;
[0075] ③ Move 1 character height perpendicular to the pipeline direction; if there is a collision, flip parallel to the pipeline direction; if there is a collision, return to the above ① According to the pipeline direction, flip parallel to the pipeline direction first, and repeat this process. Set the distance moved perpendicular to the pipeline direction to no more than 5 times the character height.
[0076] The embodiment of the present application provides a system for processing overlapping content of electromechanical installation annotations, the system comprising a global automatic avoidance module and a local automatic avoidance module;
[0077] The global automatic avoidance module is used to automatically avoid different annotation contents in the electromechanical installation drawings of the preset BIM software through the overlapping annotation automatic avoidance algorithm;
[0078] The local automatic avoidance module is used to automatically avoid different annotation contents within the preset box selection range in the electromechanical installation drawings of the preset BIM software through the overlapping annotation automatic avoidance algorithm.
[0079] Through the global automatic avoidance module and the local automatic avoidance module in the embodiments of the present application, one-click avoidance and frame selection avoidance are achieved, which reduces the time and cost of manual adjustment of overlapping annotations in electromechanical installation drawings, significantly improves the annotation efficiency, and ensures the accuracy and completeness of the annotations, thus solving the problem of a large number of overlapping annotations in existing electromechanical installation drawings.
[0080] It should be noted that the above modules can be functional modules or program modules, and can be implemented by software or hardware. For modules implemented by hardware, the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.
[0081] This embodiment further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0082] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0083] It should be noted that the specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.
[0084] In addition, in combination with the method for processing overlapping content of electromechanical installation annotations in the above embodiments, the present application embodiment can provide a storage medium for implementation. The storage medium stores a computer program; when the computer program is executed by a processor, any one of the methods for processing overlapping content of electromechanical installation annotations in the above embodiments is implemented.
[0085] In one embodiment, a computer device is provided, which may be a terminal. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a method for processing content overlap of an electromechanical installation annotation is implemented. The display screen of the computer device may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device may be a touch layer covering the display screen, or a key, trackball, or touchpad provided on the housing of the computer device, or an external keyboard, touchpad, or mouse, etc.
[0086] In one embodiment, Figure 5 is a schematic diagram of the internal structure of an electronic device according to an embodiment of the present application, such as Figure 5 As shown, an electronic device is provided, which may be a server, and its internal structure diagram may be as shown in Figure 5 As shown. The electronic device includes a processor, a network interface, an internal memory and a non-volatile memory connected through an internal bus, wherein the non-volatile memory stores an operating system, a computer program and a database. The processor is used to provide computing and control capabilities, the network interface is used to communicate with an external terminal through a network connection, the internal memory is used to provide an environment for the operation of the operating system and the computer program, the computer program is executed by the processor to implement a content overlap processing method for electromechanical installation annotations, and the database is used to store data.
[0087] Those skilled in the art will understand that Figure 5 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0088] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0089] Those skilled in the art should understand that the technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0090] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A method for processing overlapping content of electromechanical installation annotations, characterized in that: The method comprises: In the electromechanical installation drawings of the preset BIM software, all the annotation contents in the electromechanical installation drawings are automatically avoided between the overlapping annotation contents through a one-click avoidance algorithm; In the electromechanical installation drawings of the preset BIM software, a frame selection avoidance algorithm is used to automatically avoid overlapping annotation contents within a preset frame selection range in the electromechanical installation drawings.
2. The method according to claim 1, characterized in that The one-key avoidance algorithm is used to automatically avoid overlapping annotation contents in all annotation contents in the electromechanical installation drawing, including: Acquire all the annotation contents in the electromechanical installation drawing, extract information from the annotation contents, and obtain text annotation information and dimension annotation information; Based on the text annotation information and dimension annotation information of each annotation content, construct a movable range of the corresponding annotation content; Through a one-key avoidance algorithm, overlapping annotation contents in the electromechanical installation drawing are automatically avoided within the movable range according to preset avoidance rules.
3. The method according to claim 2, characterized in that Based on the text annotation information and dimension annotation information of each annotation content, the movable range of the corresponding annotation content is constructed including: The text annotation information includes text range information and attached pipeline information, and the dimension annotation information includes text positioning information and electromechanical model component positioning information; Determine a first range constraint condition corresponding to the annotation content based on the text range information and the attached pipeline information of each annotation content; Determine a second range constraint condition of the content to be annotated based on the text positioning information of each annotated content and the electromechanical model component positioning information; Based on the first range constraint condition and the second range constraint condition, a movable range corresponding to the annotated content is constructed.
4. The method according to claim 1, characterized in that: By using the frame selection avoidance algorithm, the overlapping annotation contents within the preset frame selection range in the electromechanical installation drawing are automatically avoided, including: Determine whether the annotation content within the preset frame selection range in the electromechanical installation drawing caches the corresponding movable range, and if so, use a frame selection avoidance algorithm to make the overlapping annotation content within the preset frame selection range automatically avoid within the movable range according to the preset avoidance rule; If not, based on the text annotation information and dimension annotation information of each annotation content within the preset frame selection range, a movable range of the corresponding annotation content is constructed, and then automatic avoidance is performed through a frame selection avoidance algorithm.
5. The method according to claim 4, characterized in that Based on the text annotation information and dimension annotation information of each annotation content within the preset selection range, constructing a movable range of the corresponding annotation content includes: Using a collision detection algorithm, the overlapping annotation contents in the preset selection range are located to obtain an overlapping annotation content list; Extracting information from the annotation contents in the annotation content overlap list to obtain text annotation information and dimension annotation information; Based on the text annotation information and dimension annotation information of each annotation content, a movable range of the corresponding annotation content is constructed.
6. The method according to claim 2 or 4, characterized in that: The preset avoidance rules include: The pipeline specification marking content and pipeline elevation marking content cannot overlap with each other; The pipeline specification marking content and pipeline elevation marking content cannot overlap with the structural column; The pipeline specification marking content and pipeline elevation marking content cannot overlap with the electromechanical model components; The pipeline specification marking content and pipeline elevation marking content cannot overlap with the wall.
7. The method according to claim 1, characterized in that The preset BIM software is Revit software.
8. A system for processing overlapping content of electromechanical installation annotations, characterized in that: The system is used to execute the method described in any one of claims 1 to 7 above, and the system includes a global automatic avoidance module and a local automatic avoidance module; The global automatic avoidance module is used to automatically avoid different annotation contents in all annotation contents in the electromechanical installation drawings of the preset BIM software through the overlapping annotation automatic avoidance algorithm; The local automatic avoidance module is used to automatically avoid different annotation contents within a preset box selection range in the electromechanical installation drawings of the preset BIM software through the overlapping annotation automatic avoidance algorithm.
9. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to perform the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Automatic labeling and typesetting method for decoration drawings
CN110598195A
Labeling method and processing device of beam reinforcement diagram and computer readable storage medium
CN112800517A
Method, device and equipment for adjusting centralized annotations and readable storage medium
CN114565703A
Wall size marking method and related device
CN115168957A
Water supply and drainage machine room system diagram generation method and device, equipment and storage medium
CN115455521A
Cited By
Method and device for marking beam plate and medium
CN121118196A