Method for upgrading RVT files in batches based on Dynamo

Through the programming methods of the Dynamo plug-in and Rhythm expansion package, batch upgrade of the Revit model is realized, solving the problem of manual upgrade of low-version models that require manual upgrades one by one, and improving the batch upgrade efficiency of the model.

CN119473829APending Publication Date: 2025-02-18CHINA CONSTR EIGHT ENG DIV CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411359994.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-27
Publication Date
2025-02-18

AI Technical Summary

Technical Problem

Lower versions of Revit models or files need to be opened and upgraded manually, which consumes a lot of time and effort.

Method used

Through the Dynamo plug-in and Rhythm extension package, RVT files are found and batch processed using programming methods to achieve batch upgrade of RVT files.

Benefits of technology

It solves the problem that traditional single upgrades require a lot of time and effort, and realizes rapid batch upgrade of the model, which is convenient to operate and efficient.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119473829A_ABST
    Figure CN119473829A_ABST
Patent Text Reader

Abstract

The invention relates to a method for upgrading RVT files in batches based on Dynamo, which comprises the following steps: S1, providing high-version Revit software, and setting a Dynamo plug-in and a Rhythm extension package in the Revit software; s2, the Dynamo plug-in in the Revit software is opened, RVT files needing to be upgraded in batches are searched for by means of related nodes in the Dynamo plug-in, and an RVT directory file of each RVT file is obtained; and S3, opening the Rhythm extension package in the Revit software, and realizing batch opening and storage of all the RVT files on the basis of each RVT directory file by using an opening node and a storage node in the Rhythm extension package, so that each stored RVT file is an upgrade file of the same version as the Revit software. According to the method, batch upgrading of the RVT files can be achieved through a Dynamo programming method, and the problem that traditional single upgrading needs to consume a large amount of time and energy is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of BIM models, and in particular to a method for batch upgrading RVT files based on Dynamo. Background Art

[0002] As the Revit version gets higher and higher, the previous low-version models or files (usually stored as RVT files) need to be opened and upgraded one by one manually, and then saved one by one. When there are many low-version models or files, the upgrade operation will take a lot of time and effort. Summary of the invention

[0003] In order to solve the above problems, the present invention provides a method for batch upgrading RVT files based on Dynamo. The batch upgrading of RVT files can be realized through the Dynamo programming method, which solves the problem that traditional single upgrading requires a lot of time and energy.

[0004] The present invention is implemented by the following scheme: a method for batch upgrading RVT files based on Dynamo, comprising the steps of:

[0005] S1. Provide a higher version of Revit software, and the Revit software is equipped with Dynamo plug-in and Rhythm extension package;

[0006] S2, opening the Dynamo plug-in in the Revit software, using the relevant nodes in the Dynamo plug-in to search for RVT files that need to be batch upgraded, and obtaining the RVT directory file of each RVT file;

[0007] S3. Open the Rhythm extension package in the Revit software, and use the open node and save node in the Rhythm extension package to batch open and save all RVT files based on each RVT directory file. The saved RVT files are upgrade files of the same version as the Revit software.

[0008] A further improvement of the method for batch upgrading RVT files based on Dynamo of the present invention is that when executing step S2:

[0009] S2.1. Use the Directory path node to find the total directory address where the RVT files that need to be batch upgraded are stored;

[0010] S2.2, using the Directory From Path node to convert the general directory address into a general directory file;

[0011] S2.3. Use the Filesystem.GetDirectoryContents node to identify all RVT files under the general directory file, and obtain the RVT directory file of each RVT file.

[0012] A further improvement of the method for batch upgrading RVT files based on Dynamo of the present invention is that, when executing step S2.3, the Code Block code block is combined and the filter condition "*.rvt" is input so that the Filesystem.GetDirectoryContents node filters out other files except RVT files during identification.

[0013] A further improvement of the method for batch upgrading RVT files based on Dynamo of the present invention is that after obtaining the RVT directory file of each RVT file in step S2.3, the List.Flatten node is used to flatten the directory addresses of all identified RVT directory files.

[0014] A further improvement of the method for batch upgrading RVT files based on Dynamo of the present invention is that when executing step S3:

[0015] S3.1. Using the Document.BackgroudOpen node, batch open all RVT files based on the RVT directory files;

[0016] S3.2. Use the Document.Close node to batch close all RVT files that are opened in batches, and use the Boolean node to select True so that each RVT file is saved while being closed.

[0017] The present invention can realize batch upgrade of RVT files through the Dynamo programming method, without opening files one by one, solving the problem that traditional single upgrade requires a lot of time and energy. Moreover, the node code only needs to be simply selected, which is convenient, efficient and fast to operate, and is conducive to the rapid batch upgrade of the model. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 A flow chart of a method for batch upgrading RVT files based on Dynamo of the present invention is shown.

[0019] Figure 2 The schematic diagram of some node associations in the method for batch upgrading RVT files based on Dynamo of the present invention is shown. Figure 1 .

[0020] Figure 3 The schematic diagram of some node associations in the method for batch upgrading RVT files based on Dynamo of the present invention is shown. Figure 2 .

[0021] Figure 4 The schematic diagram of some node associations in the method for batch upgrading RVT files based on Dynamo of the present invention is shown. Figure 3 . DETAILED DESCRIPTION

[0022] In order to solve the problem that the traditional single RVT file upgrade method requires a lot of time and energy, the present invention provides a method for batch upgrading RVT files based on Dynamo. The method for batch upgrading RVT files based on Dynamo is further described below with specific embodiments and accompanying drawings.

[0023] See also Figure 1 to Figure 4 As shown, a method for batch upgrading RVT files based on Dynamo includes the following steps:

[0024] Step S1, providing a high version of Revit software, wherein the Revit software is provided with a Dynamo plug-in and a Rhythm extension package.

[0025] Step S2, open the Dynamo plug-in in the Revit software, use the relevant nodes in the Dynamo plug-in to find the RVT files that need to be batch upgraded, and obtain the RVT directory file of each RVT file. Specifically, the steps include:

[0026] Step S2.1: Use the Directory path node to find the total directory address storing the RVT files that need to be batch upgraded.

[0027] Step S2.2: Use the Directory From Path node to connect the Directory path node to convert the general directory address into a general directory file.

[0028] Step S2.3, use the Filesystem.GetDirectoryContents node to connect the Directory FromPath node to identify all files under the general directory file. At the same time, use the Code Block code block to connect the search string of the Filesystem.GetDirectoryContents node, and enter the filter condition "*.rvt" in the Code Block code block, so that the Filesystem.GetDirectoryContents node filters out other files except the RVT file under the general directory file during identification, and only obtains the RVT directory file of each RVT file, such as Figure 2 shown.

[0029] Step S2.4: Use the List.Flatten node to connect to the Filesystem.GetDirectoryContents node to flatten the directory addresses of all RVT directory files identified in step S2.3 to remove blank directories. Figure 3 shown.

[0030] Step S3, opening the Rhythm extension package in the Revit software, using the open node and save node in the Rhythm extension package to realize batch opening and saving of all RVT files based on the RVT directory files, and each RVT file after saving is an upgraded file of the same version as the Revit software. Specifically, the steps include:

[0031] Step S3.1, use the Document.BackgroudOpen node to connect the List.Flatten node to batch open all RVT files based on the RVT directory files.

[0032] Step S3.2, use the Document.Close node to connect the Document.BackgroudOpen node to batch close all RVT files opened in batches, and use the Boolean node to connect the save of the Document.Close node, and select True on the Boolean node to save each RVT file while closing it.

[0033] The present invention can realize batch upgrade of RVT files through the Dynamo programming method, without opening files one by one, solving the problem that traditional single upgrade requires a lot of time and energy. Moreover, the node code only needs to be simply selected, which is convenient, efficient and fast to operate, and is conducive to the rapid batch upgrade of the model.

[0034] The present invention is described in detail above in conjunction with the embodiments of the accompanying drawings. A person skilled in the art can make various variations of the present invention according to the above description. Therefore, certain details in the embodiments should not constitute a limitation of the present invention, and the scope of protection of the present invention shall be defined by the scope of the attached claims.

Claims

1. A method for batch upgrading RVT files based on Dynamo, characterized in that: Includes steps: S1. Provide a higher version of Revit software, and the Revit software is equipped with Dynamo plug-in and Rhythm extension package; S2, opening the Dynamo plug-in in the Revit software, using the relevant nodes in the Dynamo plug-in to search for RVT files that need to be batch upgraded, and obtaining the RVT directory file of each RVT file; S3. Open the Rhythm extension package in the Revit software, and use the open node and save node in the Rhythm extension package to batch open and save all RVT files based on each RVT directory file. The saved RVT files are upgrade files of the same version as the Revit software.

2. The method for batch upgrading RVT files based on Dynamo according to claim 1, characterized in that: When executing step S2: S2.

1. Use the Directory path node to find the total directory address where the RVT files that need to be batch upgraded are stored; S2.2, using the Directory From Path node to convert the general directory address into a general directory file; S2.

3. Use the Filesystem.GetDirectoryContents node to identify all RVT files under the general directory file, and obtain the RVT directory file of each RVT file.

3. The method for batch upgrading RVT files based on Dynamo as claimed in claim 2, characterized in that: When executing step S2.3, combine the Code Block code block and enter the filter condition "*.rvt" so that the Filesystem.GetDirectoryContents node filters out other files except RVT files during identification.

4. The method for batch upgrading RVT files based on Dynamo as claimed in claim 2, characterized in that: After the RVT directory file of each RVT file is obtained in step S2.3, the directory addresses of all identified RVT directory files are flattened using the List.Flatten node.

5. The method for batch upgrading RVT files based on Dynamo as claimed in claim 1, characterized in that: When executing step S3: S3.

1. Using the Document.BackgroudOpen node, batch open all RVT files based on the RVT directory files; S3.

2. Use the Document.Close node to batch close all RVT files that are opened in batches, and use the Boolean node to select True so that each RVT file is saved while being closed.