A method for quickly extracting CAD drawing information and generating plan views based on Revit software

By automatically extracting CAD drawing information and generating plan views in Revit, the cumbersome problems of CAD drawing information extraction and BIM model creation process are solved, and an efficient BIM modeling process is achieved.

CN115630421BActive Publication Date: 2025-04-18CHINA CONSTR THIRD ENG BUREAU GRP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211257831.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-12
Publication Date
2025-04-18
Estimated Expiration
2042-10-12

AI Technical Summary

Technical Problem

When creating a BIM model using Revit software, you need to extract various project information from the CAD drawings and create elevations, view planes and other contents. This process is cumbersome and time-consuming, affecting modeling efficiency.

Method used

By using the secondary development plug-in in Revit, import CAD drawings and automatically extract floor abbreviation and elevation information, generate Excel files, automatically generate floor structures and elevations, and batch insert and link CAD drawings to achieve rapid generation of floor views.

Benefits of technology

It greatly reduces repetitive labor, reduces error rate, improves BIM modeling efficiency, simplifies operational processes, and improves the efficiency of use of Revit software.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115630421B_ABST
    Figure CN115630421B_ABST
Patent Text Reader

Abstract

The present invention provides a method for quickly extracting CAD drawing information and generating plane views based on Revit software, and specifically relates to the field of building information modeling. The method uses a secondary development plug-in in Revit to realize the three basic functions of quickly creating floors, batch creating plane views, and batch linking CAD drawings, so as to realize the Revit software to quickly extract CAD drawing information and quickly generate plane views. The method for quickly extracting CAD drawing information and generating plane views based on Revit software is simple and convenient to operate. Users can use the secondary development plug-in to quickly create floors, batch create plane views, and batch link CAD drawings according to the project CAD drawing materials required by the project. The solution effectively improves the creation efficiency of realizing the Revit software to quickly extract CAD drawing information and quickly generate plane views, improves the BIM modeling efficiency, and can play a good supporting role for rapid intelligent modeling applications.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of building information modeling, and in particular to a method for quickly extracting CAD drawing information and generating a plane view based on Revit software. Background Art

[0002] At present, domestic projects still use traditional construction drawings as design delivery, and the standard for BIM delivery of complete project completion based on BIM technology has just started; therefore, when BIM technical standards have not yet been popularized and relevant policies have not yet been perfected, developing a technology that can automatically convert CAD architectural drawings into BIM models can save the financial and material resources consumed by manual modeling, which can not only realize the value of BIM technology in engineering applications, but also avoid the full use of BIM models to spend more time and manpower than CAD drawings. At present, Revit is one of the BIM modeling software. In the process of using Revit software to create BIM models of various architectural disciplines, it is necessary to extract various project information from CAD drawings, create elevations, view planes, view plane families (floor plans / structural plans), type names, view templates, view categories, view types, linked CAD drawings and other contents in the project BIM files. The creation of this part of the content often takes a lot of time, and the operation is cumbersome, with a lot of repetitive work, which affects the modeling efficiency. Summary of the invention

[0003] In view of the shortcomings of the prior art, the purpose of the present invention is to provide a method for quickly extracting CAD drawing information and generating plan views based on Revit software to solve the problems raised in the above background technology. The present invention reduces repetitive work, reduces the error rate, and thus can improve the efficiency of BIM modeling.

[0004] In order to achieve the above object, the present invention is implemented by the following technical solution: a method for quickly extracting CAD drawing information and generating plan views based on Revit software, comprising the following steps:

[0005] S11. Import CAD drawings into Revit, and use the secondary development plug-in to retrieve the floor abbreviations and elevations in the CAD drawings in Revit;

[0006] or S11-1, manually read the floor abbreviations and elevations in the CAD drawings;

[0007] Or S11-2, compile the floor abbreviations and elevations in the CAD drawings into an Excel spreadsheet file;

[0008] Or S11-3, import the Excel spreadsheet file written in S11-2 into Revit using the secondary development plug-in to read the floor abbreviations and elevations in the CAD drawing;

[0009] S12. Generate an Excel file of floor abbreviations and elevations in Revit using secondary development plug-ins;

[0010] S13. Automatically generate the abbreviations and elevations of the structures and building floors that need to be created for the corresponding building floors in Revit software;

[0011] S21. Use the secondary development plug-in in Revit to select multiple (or one) dwg files and insert them into CAD drawings in batches;

[0012] S22. According to the result of S21, the interface list displays the selected CAD drawings, the name of the generated floor plan view is the name of the dwg drawing (manual modification is supported), and the floor elevation generated in S13 (or the floor elevation added by other means) is specified;

[0013] S23. According to the result of S22, the plane view family (floor plan / structural plan), type name, view template, view category, view type, view parent and view parent, etc., are continued to be specified in the interface list;

[0014] S24. Based on the results selected in the interface list in S22 and S23, use the secondary development plug-in to automatically and quickly generate floor plans in batches in Revit, and the view plane name can be the name of the dwg drawing.

[0015] S25. In the plan view generated in S24, automatically linking into the corresponding CAD drawing in the manner of alignment to the origin as originally intended;

[0016] S31. In the plan view generated by S24 (or in the plan view added by other means), use the secondary development plug-in to open the batch link CAD function in Revit;

[0017] S32. Use the secondary development plug-in in Revit to select multiple (or one) dwg files and insert them into CAD drawings in batches;

[0018] S33. In the plan view of S31, the corresponding CAD drawing is automatically linked in the manner of alignment to the origin.

[0019] Furthermore, in steps S11, S12, S13, S21, S24, S25, S31, S32 and S33, the Revit secondary development platform is constructed including a variety of software tools.

[0020] Furthermore, the tools used include Visual Studio 2017, Revit 2019 SDK, AddinManager, and Revit Lookup; the Revit API implements software function expansion operations through the external command interface, which contains only one abstract function Execute, which is overloaded to implement external commands.

[0021] Furthermore, in the step S13, the plug-in for automatically generating the structure and building floor abbreviations and elevations required to be created for the corresponding building floors in the Revit software includes:

[0022] The Revit software quickly extracts CAD drawing information and generates plan view plug-ins by extending functions through external commands (ExternalCommand). On the Visual Studio 2017 platform, the Revit interface definition files RevitAPI.dll and RevitAPIUI.dll are referenced, and plug-in development is implemented using C# language. It is started from within the Revit software through the addin file.

[0023] Furthermore, in the step S24, the method of automatically and quickly batch-generating floor plan plug-ins in Revit using the secondary development plug-in includes:

[0024] The Revit software quickly extracts CAD drawing information and generates plane view plug-ins by extending functions through external commands (ExternalCommand). On the Visual Studio 2017 platform, the Revit interface definition files RevitAPI.dll and RevitAPIUI.dll are referenced, and plug-in development is implemented using C# language. It is started from within the Revit software through the addin file;

[0025] Create a new class library in Visual Studio 2017, reference the Revit interface definition files RevitAPI.DLL and RevitAPIUI.DLL (the files are in the Revit installation directory), and set the Copy Local property to False; reference the namespace in the program header, create a transaction, and submit a series of operations to modify the Revit model to the document object; set the transaction start mode, create a new command class, derive from IExternalCommand, and overload the Execute() method; compile the main code, and write the main functional codes for the above three items: quick creation of floors, batch creation of plan views, and batch linking to CAD; create a plug-in button, first add an embedded panel, then call the PushButton class to add a button control, and finally call the Uri class to import the corresponding icon into the button; register and run the extension module, and after the button is made, write the addin file as the internal startup file, and put the addin file in the corresponding Revit version folder under the C: / programdata / Autodesk / Revit / addin / path so that the button can be imported into the Revit software.

[0026] Furthermore, the path of the .dll file generated by the above-mentioned program for creating the pipeline system plug-in function, the namespace and class name of the plug-in are written into the file, and the "Revit software quickly extracts CAD drawing information and generates plan views" plug-in can be obtained by opening the Revit software. Clicking the button can perform the three functions of creating floors, batch creating plan views and batch linking CAD, thereby realizing the Revit software to quickly extract CAD drawing information and generate plan views.

[0027] Beneficial effects of the present invention:

[0028] 1. The method for quickly extracting CAD drawing information and generating plane views based on Revit software is easy to operate. Users only need to use the method for quickly extracting CAD drawing information and generating plane views based on Revit software to realize the use of secondary development plug-ins in Revit. For CAD drawing information under different projects, the functions of quickly extracting CAD drawing information and quickly generating plane views can be realized. Revit software can realize functions such as quickly creating floors, batch creating plane views and batch linking CAD drawings in BIM modeling files, and can create elevations, view planes, drawing families (floor plans / structural plans) under view planes, type names, view templates, view categories, view types, linking CAD drawings and other contents in project BIM files, effectively improving the use efficiency of Revit software.

[0029] 2. This method of quickly extracting CAD drawing information and generating plan views based on Revit software realizes the rapid extraction of project CAD drawing information and the rapid and intelligent creation of plan views and their ancillary information in Revit software, which greatly reduces the repetitive work of front-line BIM in-depth designers and reduces the errors of BIM in-depth designers, thereby improving BIM modeling efficiency and playing a good supporting role in rapid intelligent modeling applications. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 A schematic diagram of a process of a method for quickly extracting CAD drawing information and generating a plan view based on Revit software according to the present invention;

[0031] Figure 2 This is a secondary development plug-in demonstration diagram of a method for quickly extracting CAD drawing information and generating plan views based on Revit software in the present invention;

[0032] Figure 3 The present invention discloses a pipeline system demonstration diagram completed by a method for quickly extracting CAD drawing information and generating a plane view based on Revit software. DETAILED DESCRIPTION

[0033] In order to make the technical means, creative features, objectives and effects achieved by the present invention easy to understand, the present invention is further explained below in conjunction with specific implementation methods.

[0034] See also Figures 1 to 3 The present invention provides a technical solution: a method for quickly extracting CAD drawing information and generating a plan view based on Revit software, comprising the following steps:

[0035] S11. Reading CAD drawing information: One way is to import CAD drawings into Revit, and use the secondary development plug-in to retrieve the floor abbreviations and elevation information in the CAD drawings in Revit; another way is to manually read the floor abbreviations and elevation information in the CAD drawings, write the floor abbreviations and elevations in the CAD drawings into an Excel spreadsheet file, and then import the compiled Excel spreadsheet file into Revit using the secondary development plug-in to read the floor abbreviations and elevation information in the CAD drawings;

[0036] In this embodiment, by importing CAD drawings into Revit, the floor abbreviations and elevation information in the CAD drawings are read in Revit by using the secondary development plug-in; the core code is as follows:

[0037]

[0038]

[0039] In this embodiment, after manually reading the piping system in the CAD drawing, the floor abbreviations and elevation information in the CAD drawing are compiled into an Excel spreadsheet file, and then the compiled Excel spreadsheet file is imported into Revit using a secondary development plug-in to read the floor abbreviations and elevation information in the CAD drawing; the core code is as follows:

[0040]

[0041]

[0042] S12. Generate an Excel file of floor abbreviations and elevations in Revit using secondary development plug-ins: The Revit API implements software function expansion through the interface of external commands. There is only one abstract function Execute in the interface. Overload this function to implement external commands.

[0043]

[0044]

[0045] S13. Obtain the floor abbreviation and elevation information to be created in Revit software: Revit software can be used to generate the structure and building elevation of the corresponding floor from the floor abbreviation and elevation information read from the CAD drawing; the core code is as follows:

[0046]

[0047]

[0048]

[0049]

[0050]

[0051]

[0052]

[0053] S21. Use the secondary development plug-in in Revit to select multiple (or one) dwg files and insert them into CAD drawings in batches; the core code is as follows:

[0054]

[0055]

[0056] S22. According to the results of batch inserting CAD drawings, the interface list displays the selected CAD drawings, the name of the generated floor plan view is the name of the dwg drawing (manual modification is supported), and the floor elevation generated in S13 (or the floor elevation added by other methods) is specified; the core code is as follows:

[0057]

[0058]

[0059] S23. According to the result of batch inserting CAD drawings, the interface list continues to specify the plan view family (floor plan / structural plan), type name, view template, view category, view type, view parent and view parent, etc. The core code is as follows:

[0060]

[0061]

[0062] S24. Based on the results selected in the interface list of batch insert CAD drawings, use the secondary development plug-in to automatically and quickly generate floor plans in batches in Revit, and the view plane name can be the name of the dwg drawing; the core code is as follows:

[0063]

[0064]

[0065]

[0066] S25. Based on the result of the rapid batch generation of floor plans, the corresponding CAD drawings are automatically linked in the plan view generated in S24 in the manner of alignment to the origin. The core code is as follows:

[0067]

[0068] S31. In Revit, use the secondary development plug-in to select the plane view generated by S24 (or the plane view added by other methods) and open the batch link CAD function; the core code is as follows:

[0069]

[0070]

[0071]

[0072]

[0073]

[0074]

[0075] S32. Use the secondary development plug-in in Revit to select multiple (or one) dwg files and batch insert CAD drawings; the core code is as follows:

[0076]

[0077]

[0078] S33. In the plane view generated in S31, the corresponding CAD drawing is automatically linked in the original alignment to the origin; the core code is as follows:

[0079]

[0080]

[0081]

[0082]

[0083]

[0084] The above shows and describes the basic principles and main features of the present invention and the advantages of the present invention. It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and the present invention can be implemented in other specific forms without departing from the spirit or basic features of the present invention. Therefore, no matter from which point of view, the embodiments should be regarded as exemplary and non-restrictive. The scope of the present invention is defined by the attached claims rather than the above description, and it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any figure mark in the claims should not be regarded as limiting the claims involved.

[0085] In addition, it should be understood that although the present specification is described according to implementation modes, not every implementation mode contains only one independent technical solution. This description of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment may also be appropriately combined to form other implementation modes that can be understood by those skilled in the art.

Claims

1. A method for quickly extracting CAD drawing information and generating plan views based on Revit software, characterized in that: The following steps are involved: S11. Import CAD drawings into Revit, and use the secondary development plug-in to retrieve the floor abbreviations and elevations in the CAD drawings in Revit; or S11-1, manually read the floor abbreviations and elevations in the CAD drawings; Or S11-2, compile the floor abbreviations and elevations in the CAD drawing into an Excel spreadsheet file; import the Excel spreadsheet file compiled in S11-2 into Revit using the secondary development plug-in to read the floor abbreviations and elevations in the CAD drawing; S12. Generate an Excel file of floor abbreviations and elevations in Revit using secondary development plug-ins; S13. Automatically generate the structure and building floor abbreviations and elevations required to create the corresponding building floors in Revit software, thus completing the quick creation of floors; S21. Use the secondary development plug-in in Revit to select multiple dwg files and insert them into CAD drawings in batches; S22. According to the result of S21, the interface list displays the selected CAD drawings, the name of the generated floor plan view is the name of the dwg drawing, and the floor elevation generated in S13 is specified; S23. According to the result of S22, the plane view family, type name, view template, view category, view type, view parent and view parent content are continued to be specified in the interface list; S24. Based on the results selected in the interface list in S22 and S23, the secondary development plug-in is used to automatically and quickly generate floor plans in batches in Revit, and the view plane name is the name of the DWG drawing; S25. In the plane view generated in S24, the corresponding CAD drawing is automatically linked in the manner of alignment to the origin, thus completing batch creation of plane views; S31. In the plan view generated by S24, use the secondary development plug-in to open the batch link CAD function in Revit; S32. Use the secondary development plug-in in Revit to select multiple dwg files and insert CAD drawings in batches; S33. In the plane view of S31, the corresponding CAD drawings are automatically linked in the original alignment to the origin, thus completing the batch linking of CAD.

2. The method for quickly extracting CAD drawing information and generating plan views based on Revit software according to claim 1, characterized in that: In the steps S11, S12, S13, S21, S24, S25, S31, S32 and S33, the secondary development plug-in includes a variety of software tools.

3. The method for quickly extracting CAD drawing information and generating plan views based on Revit software according to claim 2, characterized in that: Software tools include Visual Studio 2017, Revit 2019 SDK, AddinManager, and Revit Lookup. The Revit API implements software function expansion operations through the external command interface, which contains only one abstract function, Execute, which is overloaded to implement external commands.

4. The method for quickly extracting CAD drawing information and generating plan views based on Revit software according to claim 1, characterized in that: In the step S13, the structure and building floor abbreviations and elevations that need to be created for the corresponding building floors are automatically generated in the Revit software, including: The Revit software quickly extracts CAD drawing information and generates plan view plug-ins by extending functions through external commands. On the Visual Studio 2017 platform, the Revit interface definition files RevitAPI.dll and RevitAPIUI.dll are referenced, and plug-in development is implemented using C# language. It is started from within the Revit software through the addin file.

5. The method for quickly extracting CAD drawing information and generating plan views based on Revit software according to claim 1, characterized in that: In the step S24, the method of automatically and quickly batch-generating floor plan plug-ins in Revit using the secondary development plug-in includes: The Revit software quickly extracts CAD drawing information and generates plan view plug-ins through external command extension functions. On the Visual Studio 2017 platform, the Revit interface definition files RevitAPI.dll and RevitAPIUI.dll are referenced, and the plug-in development is realized using C# language. It is started from within the Revit software through the addin file; Create a new class library in Visual Studio 2017, reference the Revit interface definition files RevitAPI.DLL and RevitAPIUI.DLL located in the Revit installation directory, and set the Copy to Local property to False; reference the namespace in the program header, create a transaction, and submit a series of operations to modify the Revit model to the document object; set the transaction start mode, create a new command class, derive from IExternalCommand, and overload the Execute() method; compile the main code, and write the main functional codes for the above three items: quick creation of floors, batch creation of plan views, and batch linking to CAD; create a plug-in button, first add an embedded panel, then call the PushButton class to add a button control, and finally call the Uri class to import the corresponding icon into the button; register and run the extension module, and after the button is made, write the addin file as the internal startup file, and put the addin file in the corresponding Revit version folder under the C: / programdata / Autodesk / Revit / addin / path to import the button into the Revit software.

6. The method for quickly extracting CAD drawing information and generating plan views based on Revit software according to claim 5, characterized in that: Write the path of the generated .dll file, the namespace and class name of the plug-in into the file. Open the Revit software to obtain the "Revit software quickly extracts CAD drawing information and generates plan views" plug-in. Click the button to perform the three functions of creating floors, batch creating plan views and batch linking CAD, thereby realizing the Revit software to quickly extract CAD drawing information and generate plan views.

Citation Information

Patent Citations

  • Method for rapidly generating three-dimensional building model based on two-dimensional CAD drawings

    CN108597026A

  • Method for linking drawings in batches based on Revit

    CN111931259A