Method for creating user-defined elevation by reading file based on Dynamo
By reading external files in Dynamo software and automatically creating elevations using programming interfaces and APIs, the problem of time-consuming and error-prone creation of elevations is solved, and accurate and quick import and efficient editing of elevation data is achieved to meet the needs of complex projects.
Patent Information
- Application Number
- CN202410983318.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2024-11-08
AI Technical Summary
In architectural model design, manually creating and editing elevations is time-consuming and error-prone, resulting in inaccurate or inconsistent elevation information.
By reading external files (such as Excel or CSV files) in Dynamo software, automatically parsing and extracting elevation information, and automatically creating and editing elevations in Revit using Dynamo's programming interface and Revit's API, reducing manual operation steps and improving data accuracy and consistency.
It realizes accurate and quick import and reading of elevation data, reduces error rate, improves work efficiency, and improves data flexibility and customization to meet the needs of complex projects.
Smart Images

Figure CN118916963A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of architectural model design, and in particular to a method for creating custom elevations by reading files based on Dynamo. Background Art
[0002] In Building Information Modeling, levels are an integral part of the design process; they not only represent the heights of different floors or areas within a building, but are also the basis for spatial analysis and coordination.
[0003] At present, in the process of architectural model design, a lot of elevations are still relied on manually creating and editing. Manually creating and editing a large number of elevations not only takes a lot of time, but is also prone to errors, resulting in inaccurate or inconsistent elevation information. Therefore, it is necessary to provide a method for creating custom elevations by reading files based on Dynamo, which can solve the problem of time-consuming and error-prone manual creation and editing of elevations in the prior art. Summary of the invention
[0004] The purpose of the present invention is to provide a method for creating custom elevations by reading files based on Dynamo, which can solve the problem that manual creation and editing of elevations is time-consuming and error-prone in the prior art.
[0005] The present invention is achieved in that:
[0006] A method for creating a custom elevation based on reading a file in Dynamo includes the following steps:
[0007] Step 1: Create an external file containing elevation information;
[0008] Step 2: Import the external file created in step 1 into the Dynamo environment;
[0009] Step 3: Further process the imported content in Dynamo software;
[0010] Step 4: Connect the processed imported content to the node that creates the elevation in Dynamo software, and create the elevation in Revit software;
[0011] Step 5: Run the Dynamo script in Revit software, and the user views the newly created elevation in Revit software and performs verification and adjustments.
[0012] The external file includes at least two columns of data: one column is the elevation name, and the other column is the elevation value corresponding to the elevation name.
[0013] The external file is an Excel or CSV file.
[0014] In step 2, in the Dynamo software, select the external file created in step 1 through the "File Path" node, and use the corresponding read file node to import the content of the external file into the Dynamo environment.
[0015] When the external file is an Excel file, the corresponding file reading node "Excel.Import" is used to import the content of the external file into the Dynamo environment; when the external file is a CSV file, the corresponding file reading node "CSV.Import" is used to import the content of the external file into the Dynamo environment.
[0016] In the steps described above, further processing of the imported content includes unit conversion, format adjustment, and further data processing operations using various mathematical and string operation nodes provided by the Dynamo software.
[0017] Compared with the prior art, the present invention has the following beneficial effects:
[0018] 1. By writing Dynamo scripts, the present invention allows users to import external files such as Excel containing elevation information into the Dynamo environment, and automatically parse and extract data in the files, and then use Dynamo's programming interface and Revit's API to automatically create and edit elevations in Revit, ensuring accurate and fast import and reading of elevation data, greatly reducing the steps of manual operations, allowing users to extract external elevations to create elevations, improving work efficiency, and reducing the error rate.
[0019] 2. The present invention uses Dynamo software to read external files. Users can customize external files and run scripts according to project requirements, convert custom data outside the project into internal elevations of the project, and implement different elevation creation and editing logics. It has high flexibility and customizability, improves data consistency and accuracy, and can adapt to various complex project requirements. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 It is an operation interface diagram of step 1 in the method for creating a custom elevation by reading a file based on Dynamo of the present invention;
[0021] Figure 2 It is an operation interface diagram of step 2 in the method for creating a custom elevation by reading a file based on Dynamo of the present invention;
[0022] Figure 3 It is an operation interface diagram of step 4 in the method for creating custom elevations by reading files based on Dynamo of the present invention. DETAILED DESCRIPTION
[0023] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.
[0024] A method for creating a custom elevation based on reading a file in Dynamo includes the following steps:
[0025] Step 1: Create an external file containing the elevation information.
[0026] The external file includes at least two columns of data: one column is the elevation name, such as "first floor", "second floor", etc., and the other column is the elevation value corresponding to the elevation name.
[0027] The external files are files such as Excel and CSV.
[0028] Step 2: Import the external file created in step 1 into the Dynamo environment.
[0029] Specifically, in the Dynamo software, select the external file created in step 1 through the "File Path" node, and use the corresponding read file node to import the content of the external file into the Dynamo environment.
[0030] When the external file is an Excel file, the corresponding file reading node "Excel.Import" is used to import the content of the external file into the Dynamo environment; when the external file is a CSV file, the corresponding file reading node "CSV.Import" is used to import the content of the external file into the Dynamo environment.
[0031] When selecting the format of an external file, you should choose an external file format that has a corresponding read file node in the Dynamo software to ensure that all data such as elevation names and elevation values in the external file can be accurately, completely and quickly imported into the Dynamo environment.
[0032] Importing external files directly into the Dynamo environment eliminates the need for manual input, solving the time-consuming and error-prone problem of manually creating elevations. All data such as elevation names and elevation values in external files are read through the read file node that matches the external file, ensuring data consistency, completeness, and accuracy.
[0033] Step 3: Further process the imported content in Dynamo software.
[0034] Further processing of the imported content includes unit conversion, format adjustment, etc. Users can use various mathematical and string operation nodes provided by Dynamo software to perform further data processing operations.
[0035] The imported content, i.e. the unit and format consistency and accuracy of the elevation names and their elevation values, is further processed to facilitate subsequent application in the building model.
[0036] Step 4: Connect the processed imported content to the node that creates the level in Dynamo software and create the level in Revit software.
[0037] The function of the node for creating elevations in the Dynamo software is to automatically create corresponding elevations at the locations corresponding to the elevation names in the Revit software according to the imported elevation names and their elevation values.
[0038] Step 5: Run the Dynamo script in Revit software. Users can view the newly created elevations in Revit software and make necessary verifications and adjustments based on actual needs.
[0039] Dynamo is an open source 3D visual programming software that can quickly and accurately process information in building information models. It can write scripts according to actual needs and run Dynamo scripts in Revit software to manipulate various behaviors of the program, thereby automating tasks. Using Dynamo software to write scripts and running the scripts in Revit software is common knowledge in the field and will not be repeated here.
[0040] Embodiment 1:
[0041] Step 1: When designing a certain building model, create an external file in Excel format containing elevation information. The external file includes a column of elevation names and a column of elevation values corresponding to the elevation names.
[0042] Specific content such as Figure 1 As shown: the elevation value corresponding to the elevation name "roof layer" is "28000", the elevation value corresponding to the elevation name "fourth floor" is "21500", the elevation value corresponding to the elevation name "third floor" is "14850", the elevation value corresponding to the elevation name "second floor" is "6200", the elevation value corresponding to the elevation name "indoor elevation" is "-300", the elevation value corresponding to the elevation name "first underground floor" is "-2000", and the elevation value corresponding to the elevation name "second underground floor" is "-7200".
[0043] Step 2: In Dynamo, select the external file created in step 1 through the "File Path" node, and use the read file node "Excel.Import" to import the content of the external file into the Dynamo environment, as shown in the attached figure. Figure 2 shown.
[0044] Step 3: Further process the imported content by converting units and adjusting the format in the Dynamo software.
[0045] Step 4: Connect the processed imported content to the node for creating elevations in the Dynamo software. Using the Dynamo programming interface and Revit API, the node for creating elevations automatically creates corresponding elevations at the locations corresponding to the elevation names in the Revit software based on the imported elevation names and their elevation values, as shown in the attached figure. Figure 3 shown.
[0046] Step 5: Run the Dynamo script in Revit software. Users can view the newly created elevations in Revit software and make necessary verifications and adjustments.
[0047] The above are only preferred embodiments of the present invention and are not intended to limit the scope of protection of the invention. Therefore, any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for creating custom elevations by reading files based on Dynamo, characterized by: The following steps are involved: Step 1: Create an external file containing elevation information; Step 2: Import the external file created in step 1 into the Dynamo environment; Step 3: Further process the imported content in Dynamo software; Step 4: Connect the processed imported content to the node that creates the elevation in Dynamo software, and create the elevation in Revit software; Step 5: Run the Dynamo script in Revit software, and the user views the newly created elevation in Revit software and performs verification and adjustments.
2. The method for creating custom elevations by reading files based on Dynamo according to claim 1 is characterized in that: The external file includes at least two columns of data: one column is the elevation name, and the other column is the elevation value corresponding to the elevation name.
3. The method for creating custom elevations by reading files based on Dynamo according to claim 1 or 2, characterized in that: The external file is an Excel or CSV file.
4. The method for creating custom elevations by reading files based on Dynamo according to claim 1, characterized in that: In step 2, in the Dynamo software, select the external file created in step 1 through the "File Path" node, and use the corresponding read file node to import the content of the external file into the Dynamo environment.
5. The method for creating custom elevations by reading files based on Dynamo according to claim 4 is characterized in that: When the external file is an Excel file, the corresponding file reading node "Excel.Import" is used to import the content of the external file into the Dynamo environment; when the external file is a CSV file, the corresponding file reading node "CSV.Import" is used to import the content of the external file into the Dynamo environment.
6. The method for creating custom elevations by reading files based on Dynamo according to claim 1, characterized in that: In the steps described above, further processing of the imported content includes unit conversion, format adjustment, and further data processing operations using various mathematical and string operation nodes provided by the Dynamo software.
