Revit-based three-dimensional model pipeline construction drawing generation method and system

Through the three-dimensional model pipeline construction drawing generation method based on Revit, the pre-acquisitioned pipeline annotation frame template and target element information are automatically marked and avoided, solving the problems of low drawing efficiency and low accuracy in the existing technology, and efficient and accurate construction drawing generation is achieved.

CN120088441APending Publication Date: 2025-06-03CHINA NUCLEAR IND 23 CONSTR +1

Patent Information

Application Number
CN202510166528.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-14
Publication Date
2025-06-03

AI Technical Summary

Technical Problem

When existing Revit software and plug-ins generate three-dimensional model pipeline construction drawings, the drawing output efficiency and accuracy are low, making it difficult to meet the personalized needs of users.

Method used

Based on Revit's three-dimensional model pipeline construction drawing generation method, a three-dimensional model pipeline axial measurement diagram is created through the pre-acquisition pipeline diagram template, the target element information is determined, and the target element frame and the map frame to be marked based on the target element information are determined. Combined with the target element information, the target element frame and the map frame to be marked, the target element is marked to generate a three-dimensional model pipeline construction drawing.

Benefits of technology

It improves the accuracy and efficiency of drawing, reduces the time and labor of manual operations, reduces project costs, and improves project progress.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120088441A_ABST
    Figure CN120088441A_ABST
Patent Text Reader

Abstract

The invention provides a method and system for generating a three-dimensional model pipeline construction drawing based on Revit, and relates to the technical field of structural construction drawing design, and the method comprises the steps: firstly, based on a pre-obtained pipeline marking drawing frame template, creating a three-dimensional model pipeline axonometric drawing, and marking the three-dimensional model pipeline axonometric drawing into a three-dimensional model pipeline axonometric drawing; and then determining a target primitive to be labeled and information to be labeled in the current movable view, further determining a picture frame of the target primitive and the information to be labeled, and labeling the target primitive in combination with the target primitive information and the picture frame to generate a three-dimensional model pipeline construction drawing. Through the method, the technical problems of low drawing efficiency and low accuracy in the prior art are solved, and the technical effects of improving the drawing accuracy and efficiency and improving the user experience are achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of structural construction drawing design, and in particular to a method and system for generating three-dimensional model pipeline construction drawings based on Revit. Background Art

[0002] With the wide application of Building Information Modeling (BIM) technology, Revit, as a powerful BIM design software, has been widely recognized and used in the construction industry. Although Revit provides rich modeling and design functions, there are still some challenges and limitations in the process of generating construction drawings.

[0003] Although the default drawing function of Revit is powerful, it often fails to meet the personalized needs of users; users usually need to manually adjust views, add annotations and marks, and perform cumbersome operations such as format typesetting, which is not only time-consuming and laborious, but also error-prone. The drawing efficiency of Revit is also a focus of concern for users. In large projects, due to complex models and numerous views, traditional drawing methods often require a large amount of time and manpower, which not only increases the project cost, but may also affect the project progress.

[0004] In response to the above problems, although there are some plugins for assisting Revit in drawing on the market, they still need to be improved in terms of function, efficiency, and intelligence level, especially for the application of three-dimensional model pipeline construction drawings. That is to say, when using the existing Revit software and plugins to generate three-dimensional model pipeline construction drawings, there are technical problems of low drawing efficiency and low accuracy. Summary of the Invention

[0005] The purpose of the present invention is to provide a method and system for generating three-dimensional model pipeline construction drawings based on Revit, so as to alleviate the technical problems of low drawing efficiency and low accuracy existing in the prior art.

[0006] In a first aspect, an embodiment of the present invention provides a method for generating a three-dimensional model pipeline construction drawing based on Revit, which is applied to a terminal including Revit software. The method includes: creating a three-dimensional model pipeline isometric drawing based on a pre-acquired pipeline annotation drawing frame template; the pipeline annotation drawing frame template includes basic parameter settings of the annotation drawing frame; the three-dimensional model pipeline isometric drawing includes a plurality of active views; determining target element information to be annotated in the current active view; the target element information includes: the position range of the target element and the information to be annotated corresponding to the target element; determining the drawing frame of the target element and the drawing frame of the information to be annotated according to the target element information; combining the target element information, the drawing frame of the target element, and the drawing frame of the information to be annotated, annotating the target element, and generating a three-dimensional model pipeline construction drawing.

[0007] In some alternative implementations, determining the target element information to be annotated in the current active view includes: traversing the current document or view object of the Revit graphics library to obtain all elements and annotation objects in the current active view; using the Revit quick filter to determine the target element information to be processed according to the application scenario requirements.

[0008] In some alternative implementations, the information to be annotated includes condition information defined by the user; the condition information includes one or more of the following: rack number, weld number, pipe section number, pipeline KKS code, component number, valve number, elevation point, and dimension annotation.

[0009] In some alternative implementations, determining the drawing frame of the target element and the drawing frame of the information to be annotated according to the target element information includes: using the axis-aligned rectangular bounding box algorithm to determine the bounding box of the target element and the information to be annotated according to the target element information; the bounding box is used to limit the boundary of the target element or the information to be annotated; determining the drawing frame of the target element and the drawing frame of the information to be annotated according to the bounding box.

[0010] In some alternative implementations, the method further includes: performing collision detection on the drawing frame of the target element and the drawing frame of the information to be annotated; moving the drawing frame of the information to be annotated with a collision according to a predefined movement rule.

[0011] In some alternative implementations, performing collision detection on the drawing frame of the target element and the drawing frame of the information to be annotated includes: using the directional rectangular bounding box collision detection algorithm to perform pairwise collision detection between any two drawing frames, and recording the drawing frames with a collision and the current position information of the drawing frames.

[0012] In some alternative implementations, the above-mentioned predefined movement rules include: movement direction and distance; the above method further includes: moving the frames of the to-be-annotated information with collisions in the above-mentioned movement direction by the above-mentioned distance; the above-mentioned movement directions are up, down, left, right, upper left, upper right, lower left, and lower right, and the above-mentioned movement directions are arranged in sequence; after each movement, re-determine the frames of the to-be-annotated information, and perform collision detection between the updated frames of the to-be-annotated information and the other frames; repeat moving the frames of the to-be-annotated information with collisions in the order of the above-mentioned movement directions until a collision-free position is determined or a preset iteration count is reached.

[0013] In a second aspect, an embodiment of the present invention provides a system for generating a three-dimensional model pipeline construction drawing based on Revit, which is applied to a terminal including Revit software. The above system includes:

[0014] A creation module, configured to create a three-dimensional model pipeline isometric drawing based on a pre-acquired pipeline annotation frame template; the above pipeline annotation frame template includes basic parameter settings of the annotation frame; the above three-dimensional model pipeline isometric drawing includes multiple active views;

[0015] A first determination module, configured to determine target primitive information to be annotated in the current above-mentioned active view; the above target primitive information includes: the position range of the above target primitive and the to-be-annotated information corresponding to the above target primitive;

[0016] A second determination module, configured to determine the frame of the above target primitive and the frame of the to-be-annotated information according to the above target primitive information;

[0017] A generation module, configured to combine the above target primitive information, the frame of the above target primitive, and the frame of the to-be-annotated information to annotate the above target primitive and generate a three-dimensional model pipeline construction drawing.

[0018] In a third aspect, an embodiment of the present invention provides an electronic device, including a memory and a processor. A computer program that can run on the above processor is stored in the above memory. When the above processor executes the above computer program, the steps of the method according to any one of the above in the first aspect are implemented.

[0019] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium. Machine-executable instructions are stored in the above computer-readable storage medium. When the above computer-executable instructions are called and run by a processor, the above computer-executable instructions cause the above processor to run the method according to any one of the above in the first aspect.

[0020] The present invention provides a method and system for generating a three-dimensional model pipeline construction drawing based on Revit. The method includes: first, creating a three-dimensional model pipeline isometric drawing based on a pre-acquired pipeline annotation drawing frame template, then determining a target primitive to be annotated and annotation information in the current active view, further determining the drawing frame of the target primitive and the annotation information, and combining the target primitive information and the drawing frame to annotate the target primitive, so as to generate a three-dimensional model pipeline construction drawing. Through the above method, the technical problems of low drawing efficiency and low accuracy in the prior art are solved, and the technical effects of improving the accuracy and efficiency of drawing and improving the user experience are achieved. Description of the Drawings

[0021] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings required for use in the description of the specific embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0022] Figure 1 It is a schematic flowchart of a method for generating a three-dimensional model pipeline construction drawing based on Revit provided by an embodiment of the present invention;

[0023] Figure 2 It is a pipeline construction drawing for automatic annotation generation without using annotation avoidance provided by an embodiment of the present invention;

[0024] Figure 3 It is a pipeline construction drawing for automatic annotation generation using annotation avoidance provided by an embodiment of the present invention;

[0025] Figure 4 It is a schematic structural diagram of an electronic device provided by an embodiment of the present invention. Detailed Embodiments

[0026] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. Usually, the components of the embodiments of the present invention described and illustrated in the accompanying drawings here can be arranged and designed in various different configurations.

[0027] Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0028] It should be noted that similar reference numerals and letters indicate similar items in the following drawings. Therefore, once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. The following will describe in detail some embodiments of the present invention with reference to the drawings. Without conflict, the following embodiments and the features in the embodiments can be combined with each other.

[0029] With the wide application of Building Information Modeling (BIM) technology, Revit, as a powerful BIM design software, has been widely recognized and used in the construction industry. Although Revit provides rich modeling and design functions, there are still some challenges and limitations in the process of generating construction drawings. Although the default drawing function of Revit is powerful, it often cannot meet the personalized needs of users; users usually need to manually adjust views, add notes and marks, and perform cumbersome operations such as format typesetting, which is not only time-consuming and laborious but also error-prone. The drawing efficiency of Revit is also a focus of users. In large projects, due to the complex model and numerous views, the traditional drawing method often takes a lot of time and manpower, which not only increases the project cost but also may affect the project progress.

[0030] In response to the above problems, although there are some plugins in the market to assist Revit in drawing, there is still room for improvement in terms of function, efficiency, and intelligence level, especially for the application of three-dimensional model pipeline construction drawings. That is to say, when using the existing Revit software and plugins to generate three-dimensional model pipeline construction drawings, there are technical problems of low drawing efficiency and low accuracy. With the continuous improvement of the drawing quality requirements in the construction industry, users also put forward higher requirements for the intelligence and automation level of drawing software, requiring the software to automatically identify key information in the model and automatically generate construction drawings that meet the specifications to improve the accuracy and efficiency of drawing.

[0031] Based on this, the embodiments of the present invention provide a method and system for generating three-dimensional model pipeline construction drawings based on Revit to solve the above problems.

[0032] To facilitate the understanding of this embodiment, first, a method for generating three-dimensional model pipeline construction drawings based on Revit disclosed in the embodiments of the present invention will be introduced in detail. Refer to Figure 1 The flow schematic diagram of a method for generating three-dimensional model pipeline construction drawings based on Revit shown in the figure. This method is applied to a terminal including Revit software, and the terminal can be an electronic device. This method mainly includes the following steps S110 to step S140:

[0033] S110: Create a three-dimensional model pipeline isometric drawing based on a pre-acquired pipeline annotation drawing frame template;

[0034] Among them, the pipeline annotation drawing frame template includes the basic parameter settings of the annotation drawing frame; the basic parameter settings include the category and direction of the annotation drawing frame. The 3D model pipeline isometric drawing includes multiple active views; different active views are used to display the graphics elements of the 3D model pipeline.

[0035] S120: Determine the target graphic element information to be annotated in the current active view; the target graphic element information includes: the position range of the target graphic element and the information to be annotated corresponding to the target graphic element;

[0036] Among them, the information to be annotated includes the condition information defined by the user; as a specific example, the condition information that can be defined by the user includes one or more of the following: rack number, weld number, pipe section number, pipeline KKS code, component number, valve number, elevation point, and dimension annotation.

[0037] In one embodiment, the above S120 includes:

[0038] (121) Traverse the current document or view object of the Revit graphic library to obtain all the graphic elements and annotation objects in the current active view;

[0039] (122) According to the application scenario requirements, use the Revit quick filter to determine the target graphic element information to be processed. Among them, the Revit quick filter can be an attribute filter, a space filter, etc. S130: Determine the drawing frame of the target graphic element and the drawing frame of the information to be annotated according to the target graphic element information;

[0040] S140: Combine the target graphic element information, the drawing frame of the target graphic element and the drawing frame of the information to be annotated to annotate the target graphic element and generate the construction drawing of the 3D model pipeline.

[0041] That is to say, based on the current active view, obtain the upper and lower connector information of each pipeline; the upper and lower connector information of the pipeline includes the number of connectors and the attributes of each connector; then create a working plane according to the connector attributes, and generate annotations on this working plane and write the corresponding attributes.

[0042] In one embodiment, the above S130 includes:

[0043] (131) According to the target graphic element information, use the axis-aligned rectangular bounding box algorithm to determine the bounding box of the target graphic element and the information to be annotated; the bounding box is used to limit the boundary of the target graphic element or the information to be annotated;

[0044] (132) Determine the drawing frame of the target graphic element and the drawing frame of the information to be annotated according to the bounding box.

[0045] Among them, the Axis-Aligned Bounding Box (AABB) algorithm is used to calculate the bounding boxes of all primitives and annotations.

[0046] In one embodiment, the above method further includes:

[0047] (133) Perform collision detection on the bounding box of the target primitive and the bounding box of the information to be annotated;

[0048] As a specific example, the oriented bounding box (OBB) collision detection algorithm can be used to perform pairwise collision detection between any two bounding boxes, and record the bounding boxes with collisions and the current position information of the bounding boxes. Among them, the oriented bounding box (OBB) collision detection algorithm is used to perform pairwise collision detection between different primitives and annotations to determine whether there is a collision between any two bounding boxes.

[0049] (134) Move the bounding box of the information to be annotated with a collision according to the predefined movement rules.

[0050] Among them, the predefined movement rules include: movement direction and distance.

[0051] In one embodiment, the above method further includes:

[0052] (1) Move the bounding box of the information to be annotated with a collision by the distance in the movement direction; the movement directions are up, down, left, right, upper left, upper right, lower left, and lower right, and the movement directions are arranged in order;

[0053] (2) After each movement, re-determine the bounding box of the information to be annotated, and perform collision detection between the updated bounding box of the information to be annotated and the remaining bounding boxes;

[0054] (3) Repeat moving the bounding box of the information to be annotated with a collision in the order of the movement direction until a collision-free position is determined or the preset iteration count is reached.

[0055] That is to say, a movement strategy is predefined for the colliding annotations, usually considering small movements in 8 directions (up, down, left, right, upper left, upper right, lower left, lower right). For each colliding annotation, try to move according to the defined strategy. After each movement, recalculate its AABB bounding box and check whether it still collides with any primitive or annotation. Set a maximum number of attempts, and continuously try to move within this range until a collision-free position is found or the maximum number of attempts is reached. If a collision-free position is found, update the position information of the annotation.

[0056] In addition, in one embodiment, the above method should further include: listening for change events in the view or document (such as changes in the position of graphic elements, addition of new annotations, etc.). When relevant changes are detected, the above steps (starting from constructing the AABB) are re-executed for the annotations with changes to ensure the real-time and accuracy of annotation avoidance. To optimize performance, a caching mechanism or incremental update strategy can be introduced to avoid unnecessary repeated calculations.

[0057] As a specific example, the present application also provides a specific implementation manner of a method for generating a three-dimensional model pipeline construction drawing based on Revit, including the following steps:

[0058] (1) Automatically obtain the graphic elements and annotations of the current active view;

[0059] Initialization: Automatically traverse the current document or view object of the Revit graphic library to obtain all graphic element and annotation objects in the current active view.

[0060] Quick filtering: According to needs, use Revit quick filters (such as property filters, space filters, etc.) to screen out the graphic elements and annotations to be processed.

[0061] (2) Construct an AABB bounding box;

[0062] Traverse graphic elements and annotations: Traverse all graphic element and annotation elements obtained by filtering;

[0063] AABB calculation: Calculate the bounding boxes of all graphic elements and annotations. The bounding box algorithm uses AABB (Axis-Aligned Bounding Box) for calculation.

[0064] (3) Collision detection;

[0065] Pairwise detection: Perform pairwise collision detection between different graphic elements and annotations. The OBB (Oriented Bounding Box) collision detection algorithm is used to check whether there is a collision between components.

[0066] Record collisions: If a collision is detected between a graphic element and an annotation, record the colliding graphic element and annotation, as well as the current position information.

[0067] (4) Collision resolution and annotation avoidance;

[0068] Define a movement strategy: Define a movement strategy for the colliding annotations, usually considering small movements in 8 directions (up, down, left, right, upper left, upper right, lower left, lower right).

[0069] Attempt to move: For each colliding annotation, attempt to move according to the defined strategy. After each move, recalculate its AABB and check if it still collides with any primitive or annotation.

[0070] Iterative optimization: Set a maximum number of attempts and continuously attempt to move within this range until a collision-free position is found or the maximum number of attempts is reached.

[0071] Update the position: If a collision-free position is found, update the position information of the annotation.

[0072] As a specific example, the implementation of the annotation avoidance function specifically includes the following steps:

[0073] Step 1, the user operates on the graphical display interface of Revit to select the annotation avoidance function. Obtain the element information of the hit elements selected by the user through the PickElementsByRectangle method (a method in the Revit API that allows the user to select elements by drawing a rectangle in the view). Then, determine whether the number of obtained elements (annotations) is greater than 1. If it is not greater than 1, prompt "Please select at least two annotations". Otherwise, traverse all the primitive and annotation elements obtained by filtering and execute the annotation avoidance method on the element list.

[0074] Step 2, convert the selected elements into Oriented Bounding Box (OBB) data of MEP (Mechanical, Electrical, and Plumbing) elements through a method provided by the Revit API, and store the element bounding box data in "List 1". Determine whether the number of "List 1" is less than 1. If it is less than 1, prompt "There are no pipe-related components in the current view!". Otherwise, obtain the "OBB" data of all dimensions and annotations in the list, create a new list "List 2", and add the OBB data of pipe components, annotations, and dimensions to "List 2". Use the "OBB distance detection method" to detect the distance between the bounding boxes. This method first calculates the distance from the upper left corner point (UpLeft) to the upper right corner point (UpRight) of the smallest OBB, then calculates the distance from the upper left corner point (UpLeft) to the lower left corner point (DownLeft) of the smallest OBB, compares the smaller value between the two, and divides the smaller value by 100 to obtain the step distance between each element;

[0075] Step 3, determine whether there is "OBB" data of a separate size. If so, execute the "linear size avoidance method". This method traverses the elements in the "component OBB list" to see if there is any intersection. If not, exit. If yes, try to change the coordinates of the element OBB, obtain the XYZ axis coordinate values ​​of the element, invert these coordinate values ​​(i.e. multiply by -1), create a new XYZ point, return the new XYZ coordinates to the element, and then perform collision detection on the element. If there is no collision, end the attempt. If so, continue, and perform a maximum of 5 collision detection judgments;

[0076] Step 4: Execute the "marking avoidance" method, which traverses the "component OBB list" to check whether the elements intersect, and moves the intersecting elements. The movement algorithm is:

[0077] (S01) setting the center point of the new OBB to the center point of the original OBB plus the direction vector (XYZ) multiplied by the inverse value of the corresponding direction coordinate;

[0078] (S02) setting the upper left corner of the new OBB to the upper left corner of the original OBB plus the direction vector (XYZ) multiplied by the inverse value of the corresponding direction coordinate;

[0079] (S03) setting the upper right corner of the new OBB to the upper right corner of the original OBB plus the direction vector (XYZ) multiplied by the inverse value of the corresponding direction coordinate;

[0080] (S04) setting the lower left corner of the new OBB to the lower left corner of the original OBB plus the direction vector (XYZ) multiplied by the inverse value of the corresponding direction coordinate;

[0081] (S05) The lower right corner of the new OBB is set to the lower right corner of the original OBB plus the direction vector (XYZ) multiplied by the inverse value of the corresponding direction coordinate.

[0082] After the element coordinates are moved, the OBB collision judgment is performed. If there is no collision, the process ends. If there is a collision, the movement behavior is repeated until the collision detection ends without collision. To ensure that the device performance is not seriously affected, the cycle is executed up to 100 times.

[0083] At this point, the process of the "Marking Avoidance" function is completed.

[0084] (5) Monitor refresh;

[0085] Listen for changes: Listen for change events in the view or document (such as changes in element position, addition of new annotations, etc.).

[0086] Re-evaluation: When relevant changes are detected, re-execute the above steps (starting from building AABB) for the changed annotations to ensure the real-time and accuracy of annotation avoidance.

[0087] Optimize performance: To optimize performance, a caching mechanism or incremental update strategy can be introduced to avoid unnecessary repeated calculations.

[0088] Figure 2 and Figure 3 shows the effects of two pipeline construction drawings, see Figure 2 The pipeline construction drawing generated without using annotation avoidance for automatic annotation; Figure 3 The pipeline construction drawing generated using annotation avoidance for automatic annotation.

[0089] The method for generating a three-dimensional model pipeline construction drawing based on Revit provided by the embodiments of the present invention aims to solve the technical problems encountered when using Revit for drawing, such as low efficiency, cumbersome operations, and lack of intelligent support, etc. By providing an efficient, intelligent and user-friendly Revit drawing method, it realizes automatic view adjustment, automatic addition of annotations and marks, and annotation avoidance, thereby significantly improving the drawing efficiency and quality.

[0090] Taking the method for extracting pipeline construction drawings from a Revit three-dimensional model developed by a certain company as an example, this method includes:

[0091] Step 1: Standardize the drawing frame standard; import the drawing frame template required by the user; this drawing frame template can be customized according to the user's needs or actual application scenarios;

[0092] That is, based on the Revit model, the drawing frame file is uploaded and stored on the server through the file stream method, and then downloaded through HttpWebRequest for wide use within the company to standardize the drawing frame standard. Import the drawing frame template required by the user, and it can also be customized if the template does not meet the user's requirements.

[0093] As a specific example, the information displayed after importing the drawing frame template may include: serial number, drawing frame type, whether it is disabled, name, category, drawing frame direction, drawing size, version number, submission time, etc.

[0094] Step 2: Create a three-dimensional axonometric drawing based on the drawing frame template;

[0095] After the template is selected, the user can create a 3D axonometric drawing by simply selecting the model. During this process, the user has full autonomy and can set the level of detail and scale of the axonometric drawing according to their needs. Specifically, the user can select a specific pipe fitting number from the selected primitives and use it as the naming basis for the newly generated axonometric drawing. In addition, the system provides flexible options that allow the user to batch generate 3D axonometric drawings with different levels of detail (including rough, medium, and fine) and various display styles (such as shading, realistic rendering, etc.) to meet the requirements of different engineering stages and display needs. This function greatly enhances the flexibility and practicality of Revit pipe drawing, enabling the user to quickly and accurately generate the required 3D axonometric drawings according to the specific requirements of the project.

[0096] Step 3: Through the automatic annotation function, obtain the upper and lower connection part information of the pipes in the current active view, including the number of connection parts and the attributes of each connection part; create a working plane based on the connection part attributes, generate annotations on the working plane and write the corresponding attributes;

[0097] That is to say, after the 3D axonometric drawing is generated, the user selects automatic annotation. This function uses methods such as recursion, loop, filtering, and quicksort to obtain the upper and lower connection parts of the pipes in the current active view, and then traverses all the connection parts. According to the connection part type, position, length, and other relevant attributes, it calls the Revit API transaction and API interface to create a working plane, generate annotations of the corresponding style, and write them into private attributes to achieve the function of quick automatic annotation.

[0098] Step 4: Batch print the drawings; call the quick filter to find all the drawings in the project, filter out the drawings that support printing and load them into the operation interface. The user checks the drawings to be printed, enables the embedded ClawPDF virtual printer and registry, and then traverses to obtain the name and frame size of the drawings to generate corresponding-sized paper, adds the drawings to be printed to the printing process, and uses delegation, multi-threading, and real-time monitoring of the local printing status, etc. to achieve batch PDF printing.

[0099] This embodiment realizes the innovation of Revit pipe drawing and automatic annotation. By dynamically loading the marker family and allowing the user to customize the annotation style, it provides rich style settings for the automatic annotation function. At the same time, it also realizes the optimization of drawing frame management, allowing the user to manage according to different drawing frame types and standardizing the drawing frame standards. In addition, this embodiment also introduces the annotation avoidance technology, which realizes the automatic avoidance of annotations through the AABB algorithm and OBB calculation, improving the readability and professionalism of the drawings. The application of these technologies improves the efficiency of the design document distribution and transfer process, optimizes the project construction organization management model, improves the work efficiency of technical preparation and on-site construction, and enhances the digital level and overall benefits of the engineering construction stage.

[0100] In addition, an embodiment of the present invention further provides a system for generating construction drawings of three-dimensional model pipelines based on Revit. This system is applied to a terminal including Revit software and includes:

[0101] A creation module, configured to create an isometric drawing of a three-dimensional model pipeline based on a pre-acquired pipeline annotation drawing frame template. The pipeline annotation drawing frame template includes the basic parameter settings of the annotation drawing frame. The isometric drawing of the three-dimensional model pipeline includes multiple active views;

[0102] A first determination module, configured to determine target element information to be annotated in the current active view. The target element information includes: the position range of the target element and the information to be annotated corresponding to the target element;

[0103] A second determination module is configured to determine the drawing frame of the target element and the drawing frame of the information to be annotated according to the target element information;

[0104] A generation module, configured to combine the target element information, the drawing frame of the target element, and the drawing frame of the information to be annotated to annotate the target element and generate construction drawings of the three-dimensional model pipeline.

[0105] As another specific example, the system for generating construction drawings of three-dimensional model pipelines based on Revit provided in this embodiment includes the following functional modules:

[0106] An automatic annotation module, which can automatically annotate components in the active view according to a user-defined template, reduce the manual annotation amount of engineers, and greatly shorten the drawing time;

[0107] A labeling avoidance module. After the labeling avoidance function is enabled, when automatically labeling, it will avoid the overlap between labels and the overlap between labels and components to the greatest extent, making the drawing content more intuitive and increasing readability;

[0108] A monitoring and refreshing module, which dynamically refreshes the automatic annotation function when there are changes in components or annotations in the active view, reduces the amount of manual operations, improves the real-time nature of the drawing operation, and optimizes the user experience of engineers.

[0109] Through the automated and intelligent pipeline construction drawing generation technology provided in this embodiment, users can significantly reduce manual operations such as view adjustment, annotation, and mark addition when drawing in Revit, thereby significantly shortening the drawing time. This not only reduces the workload of designers, but also helps to improve the project progress and reduce project costs.

[0110] In the embodiment of this application, by automatically identifying key information in the model and automatically generating construction drawings that meet the specifications, the intelligence of the drawing process is realized. This intelligent support not only improves the accuracy of drawing, but also reduces the error rate, providing strong technical support for designers.

[0111] The embodiment of the present application introduces the AABB algorithm to automatically construct the bounding boxes of graphic elements and annotations, and precisely checks for potential collisions through OBB calculation to achieve intelligent avoidance of annotations. When the system detects a collision, it can automatically adjust the annotation position to the optimal one, ensuring the neatness of the drawing surface and the accuracy of the annotations. This function greatly improves the readability and professionalism of the drawings, while reducing the time and effort invested by designers in adjusting the annotation positions, further enhancing the intelligence and user-friendliness of the Revit drawing method and device.

[0112] The generation system of three-dimensional model pipeline construction drawings based on Revit provided by the embodiment of the present application can be specific hardware on a device or software or firmware installed on the device, etc. The device provided by the embodiment of the present application has the same implementation principle and the same technical effects as the foregoing method embodiment. For the sake of brief description, for the parts not mentioned in the device embodiment, reference can be made to the corresponding content in the foregoing method embodiment. Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the foregoing described system, device, and unit can all refer to the corresponding processes in the foregoing method embodiment, and will not be elaborated herein. The generation system of three-dimensional model pipeline construction drawings based on Revit provided by the embodiment of the present application has the same technical features as the generation method of three-dimensional model pipeline construction drawings based on Revit provided by the foregoing embodiment, so it can also solve the same technical problems and achieve the same technical effects.

[0113] The embodiment of the present application also provides an electronic device. Specifically, the electronic device includes a processor and a storage device; a computer program is stored on the storage device, and the computer program executes the method according to any one of the foregoing implementation manners when being run by the processor.

[0114] Figure 4 FIG. 11 is a schematic structural diagram of an electronic device provided by an embodiment of the present application. The electronic device 400 includes: a processor 40, a memory 41, a bus 42, and a communication interface 43. The processor 40, the communication interface 43, and the memory 41 are connected through the bus 42; the processor 40 is used to execute an executable module stored in the memory 41, such as a computer program.

[0115] Among them, the memory 41 may include a high-speed random access memory (RAM, Random Access Memory), and may also include a non-volatile memory, such as at least one disk memory. Through at least one communication interface 43 (which can be wired or wireless), the communication connection between the system network element and at least one other network element can be realized, and the Internet, wide area network, local area network, metropolitan area network, etc. can be used.

[0116] The bus 42 can be an ISA bus, a PCI bus, an EISA bus, or the like. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 only a bidirectional arrow is used in Figure 4 , but it does not mean that there is only one bus or one type of bus.

[0117] Among them, the memory 41 is used to store a program. After receiving an execution instruction, the processor 40 executes the program. The method executed by the device defined by the process disclosed in any embodiment of the foregoing embodiments of the present invention can be applied to the processor 40 or implemented by the processor 40.

[0118] The processor 40 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the integrated logic circuit in the hardware of the processor 40 or by instructions in software form. The above-mentioned processor 40 can be a general-purpose processor, including a central processing unit (CPU for short), a network processor (NP for short), etc.; it can also be a digital signal processor (DSP for short), an application specific integrated circuit (ASIC for short), a field-programmable gate array (FPGA for short), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. It can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present invention. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in combination with the embodiments of the present invention can be directly embodied as being executed and completed by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. This storage medium is located in the memory 41, and the processor 40 reads the information in the memory 41 and combines its hardware to complete the steps of the above method.

[0119] Corresponding to the above method, an embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium stores machine-executable instructions. When the computer-executable instructions are called and run by the processor, the computer-executable instructions cause the processor to run the steps of the above method.

[0120] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For another example, 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 displayed or discussed couplings or direct couplings or communication connections between each other can be through some communication interfaces. The indirect couplings or communication connections of the devices or units can be in electrical, mechanical or other forms.

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

[0122] In addition, each functional unit in the embodiments provided in the present application can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit.

[0123] If the functions are implemented in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, an electronic device, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical discs that can store program codes.

[0124] It should be noted that similar reference numerals and letters indicate similar items in the drawings. Therefore, once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. In addition, the terms "first", "second", "third", etc. are only used for distinguishing descriptions and cannot be understood as indicating or implying relative importance.

[0125] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements on some or all of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for generating a three-dimensional model pipeline construction drawing based on Revit, characterized in that: Applied to a terminal including Revit software, the method includes: Creating a three-dimensional model pipeline axonometric drawing based on a pre-acquired pipeline annotation frame template; the pipeline annotation frame template includes basic parameter settings for the annotation frame; the three-dimensional model pipeline axonometric drawing includes multiple active views; Determine the target primitive information to be marked in the current active view; the target primitive information includes: the position range of the target primitive and the information to be marked corresponding to the target primitive; Determine the frame of the target graphic element and the frame of the information to be annotated according to the target graphic element information; The target graphic element is labeled in combination with the target graphic element information, the graphic frame of the target graphic element and the graphic frame of the information to be labeled, so as to generate a three-dimensional model pipeline construction drawing.

2. The method for generating a three-dimensional model pipeline construction drawing based on Revit according to claim 1, characterized in that: Determining target element information to be annotated in the currently active view includes: Traverse the current document or view object of the Revit drawing library to obtain all the elements and annotation objects in the current active view; According to the application scenario requirements, use Revit quick filters to determine the target element information that needs to be processed.

3. The method for generating a three-dimensional model pipeline construction drawing based on Revit according to claim 2, characterized in that: The information to be marked includes user-defined condition information; the condition information includes: one or more of: frame number, weld number, pipe section number, pipeline KKS code, component number, valve number, elevation point, and dimension marking.

4. The method for generating a three-dimensional model pipeline construction drawing based on Revit according to claim 1, characterized in that: Determining the frame of the target graphic element and the frame of the information to be annotated according to the target graphic element information includes: According to the target primitive information, an axis-aligned rectangular bounding box algorithm is used to determine the bounding box of the target primitive and the information to be labeled; the bounding box is used to limit the boundary of the target primitive or the information to be labeled; The frame of the target graphic element and the frame of the information to be labeled are determined according to the bounding box.

5. The method for generating a three-dimensional model pipeline construction drawing based on Revit according to claim 4, characterized in that: The method further comprises: Performing collision detection on the frame of the target graphic element and the frame of the information to be annotated; The image frames of the information to be annotated that collide are moved according to a predefined movement rule.

6. The method for generating a three-dimensional model pipeline construction drawing based on Revit according to claim 5, characterized in that: Performing collision detection on the frame of the target graphic element and the frame of the information to be annotated, including: A directional rectangular bounding box collision detection algorithm is used to perform collision detection between any two frames, and the frames with collision and the current position information of the frames are recorded.

7. The method for generating a three-dimensional model pipeline construction drawing based on Revit according to claim 5, characterized in that: The predefined movement rules include: movement direction and distance; the method further includes: Move the frame of the information to be annotated that has collided by the distance in the moving direction; the moving directions are up, down, left, right, upper left, upper right, lower left, and lower right, and the moving directions are arranged in order; After each movement, the frame of the information to be annotated is re-determined, and the updated frame of the information to be annotated is subjected to collision detection with other frames; The frames of the information to be annotated that collide are repeatedly moved in the order of the moving directions until a position without collision is determined or a preset number of iterations is reached.

8. A system for generating a 3D model pipeline construction drawing based on Revit, characterized in that: Applied to a terminal including Revit software, the system includes: A creation module, used to create a three-dimensional model pipeline axonometric drawing based on a pre-acquired pipeline annotation frame template; the pipeline annotation frame template includes basic parameter settings for the annotation frame; the three-dimensional model pipeline axonometric drawing includes multiple active views; A first determination module is used to determine target primitive information to be annotated in the current active view; the target primitive information includes: a position range of the target primitive and information to be annotated corresponding to the target primitive; A second determining module, used to determine the frame of the target primitive and the frame of the information to be annotated according to the target primitive information; The generating module is used to combine the target primitive information, the frame of the target primitive and the frame of the information to be annotated, annotate the target primitive, and generate a three-dimensional model pipeline construction drawing.

9. An electronic device comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to execute the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Revit-based pipeline axonometric map size marking and exporting method

    CN113468683A

Cited By

  • Home-entry pipe number marking method, equipment and medium

    CN120524622A