Dynamo for Revit

Scripting & Automation

Dynamo is a scripting program that has been automatically installed with Revit since version 2020. Dynamo is used for so-called scripting, this activity can also be called visual or computational programming. Dynamo is fully integrated with Revit functionality and offers its very interesting addition to innovative functions.

 

Dynamo can work with data in the Revit project, it can manage, change, move, delete, control, and automate any repetitive activity. By running a so-called script, you can very quickly perform a series of tasks that would manually take long hours.

The main focus of Last parametrics is the creation of scripts in Dynamo, which aims to make the workflow in Revit for both architects and engineers more efficient. Below you can find a basic offer of scripts, from which you can choose anything or just take inspiration for your own user scripts, which Last parametrics can create for you.

SCRIPTS OFFER

If you are interested in any of the scripts below, please contact me in the form.

VIEWS & SHEETS

MULTIPLE DUPLICATIONS OF SHEETS AND VIEWS
After running the script in Dynamo Player, a dialog box opens where you can select which sheets or views to duplicate, what form of duplication (dependent, with detailing, without detailing), and how many times. You can duplicate multiple views or sheets at once.
VIEWPORTS ALIGNMENT ON SHEETS

After running the script, you select the sample viewport as an input parameter and on which sheets the viewports should be aligned in the same way as the selected one. 

PLACE LEGENDS AUTOMATICALLY ON MULTIPLE SHEETS

The script places a legend on all selected sheets at once, always on the same place

AUTOMATICALLY CREATE A SECTION ORTHOGONAL TO THE SELECTED WALL
When you run the script, you select a wall and then the script automatically creates a section view orthogonal to the selected wall in the middle of this wall.
CREATE A LEGEND SHOWING THE FILTER COLOR SETTINGS IN OF THE SELECTED VIEW

After running the script a drafting view will be created with the legend of filters color settings of the active view.

SHEETS CREATION ACCORDING TO THE xlsx. SCHEDULE 
The script automatically creates, number, and name sheets according to the Excel schedule. In case of changes in xlsx. It is possible to update the already set sheets in Revit by running the script again.
AUTOMATIC SHEETS CREATION FROM VIEWS
When you run the script, a dialog window opens, in which you select the views from which you want to create the sheets and the type of titleblock to place on those sheets along with the views themselves. The sheets are numbered and named according to the inserted views
CHANGING VIEW AND SHEET NAMES TO CAPS

When you run the script, you choose which sheet and view names to change to caps or lower case.

EXPORT xlsx. SCHEDULE OF VIEWS NOT PLACED ON SHEETS

The script exports an Excel schedule that lists the views that are not placed on any sheet in the project. Great for organizing and cleaning your project

AUTOMATICALLY CREATE AN ELEVATION PARALLEL TO THE SELECTED WALL

When you run the script, you select a wall and then the script automatically creates an elevation view showing that wall.

RESET OF ALL OVERRIDES IN THE ACTIVE VIEW
After running the script all the custom element overrides done using the Override element in view tool will be reset.
OPEN SHEET WITH THE ACTIVE VIEW
The script opens the view where is the active view placed. If the view is not placed on any sheet the dialog box will appear with this alert. 
 
 

PROJECT CLEANUP

AUTOMATIC DELETION OF "NOT PLACED" ROOMS IN THE PROJECT
When you run the script, all not placed rooms in the project are automatically deleted.
DELETE UNUSED FILTERS

When you run the script, a window opens with a list of unused filters from which you can choose which filters to delete.

DELETE "IMPORT" LINE PATTERNS
When you run the script, all “IMPORT” line patterns are automatically deleted.  These line patterns get into the project by importing CAD drawings, usually burdening the project and making it difficult to work with line styles, manage them and create new line styles.
FIND AND DELETE PARAMETERS WITH EMPTY WITH FOR ALL THE ELEMENTS
The script will find, list, and optionally delete all parameters that do not have any value for all the elements they are assigned to. 
DELETE UNUSED VIEW TEMPLATES
When you run the script, a window opens with a list of unused view templates from which you can choose which view templates to delete.
FIND, LIST AND DELETE SELECTED IMPORTED CAD FILES

After running the script, a window opens with a list of all imported CAD files in the project. In this list, you will be able to select the ones that will be deleted.

COMPLETE MODEL CLEANUP 
The script will optionally delete all unused elements, view templates, and filter, it will delete all IMPORT lines and it will optionally resave and compact the file.
 

PROJECT ORGANIZATION

AUTOMATIC PLACEMENT OF ELEMENTS IN WORKSETS
The script sorts elements into worksets based on user-specified parameters.
PIN REVIT LINKS

After running the script, a window opens with a list of all links from which you can choose links to be pinned.

EXPORT MULTIPLE PROJECTS TO NWC

The script will export selected projects (rvt. files) from file to nwc. format (Navisworks).

UPGRADE MULTIPLE MODELS TO HIGHER REVIT VERSION

The script upgrades selected Revit files to a higher version. 

CHANGE SELECTED PARAMETER TO SHARED PARAMETER

The script replaces the selected parameter with a picked shared parameter for all the elements this parameter is assigned to.

EXPORT xlsx. SCHEDULE OF ALL UNUSED FAMILIES IN THE PROJECT

The script exports xlsx. schedule with a list of all unused families in the project, optionally with some of their parameters.

WARNING MANAGER

After running the script a window with a list of all warnings in the project opens, and from this list, you can choose one and isolate all the elements assigned to this warning in an active 3D view.

EXPORT xlsx. SCHEDULE OF ALL TYPE AND INSTANCE PARAMETERS FOR ALL FAMILIES IN THE PROJECT

The script exports xlsx. schedule with all the type and instance parameters and their properties (group, instance/type, project/shared, type, assigned categories etc...) for all families in the project.

SHARED PARAMETERS MANAGER

Managing, replacing, deleting, merging shared parameters.

CREATE NEW MATERIALS FROM THE xlsx. SCHEDULE

The script creates new materials according to the excel schedule and sets up selected parameters.

FILTER AND MANAGE COMPONENTS-IN-PLACE

The script filters and manages in-place components.

REPLACE PARAMETER VALUES INSIDE MULTIPLE FAMILIES

The changes selected parameter value for multiple family files inside the selected folder.

CREATE NEW PARAMETER INSIDE MULTIPLE FAMILIES

The script creates a new parameter (project or shared) inside selected families. 

CREATION OF CONTROL VIEW WITH ISOLATED ELEMENTS OF SPECIFIED WORKSET
After running the script, it selects for which workset the control view should be created and choose its name. The script automatically creates a 3D view with temporarily isolated elements contained in the selected workset.
PIN CAD LINKS

After running the script, a window opens with a list of all linked CAD files from which you can choose links to be pinned.

DETACH MULTIPLE PROJECT FROM CENTRAL FILE AND CREATE LOCAL

The script detaches all selected files in a folder from the central model and saves them as local files.

CREATE BLIND MODEL 

When you run the script a window will open with a list of all the views, legends, schedules, and sheets in the project. From this project, you can choose which of them should be retained and you can optionally assign a view template to them. All the rest of the views will be deleted. 

FIND AND REPLACE MATERIALS FOR SELECTED ELEMENTS

The script finds all the elements containing the selected material and replace them with another material.

CHANGE FONT FOR ALL ANNOTATIONS IN THE PROJECT

The script changes the font for all annotation families (tags, symbols, text notes, view titles, etc.) to another selected font.

EXPORT xlsx. SCHEDULE OF ALL PROJECT PARAMETERS AND THEIR PROPERTIES

The script exports xlsx. schedule with all the project parameters and their properties (group, instance/type, project/shared, type, assigned categories etc...)

ASSIGN SELECTED ROOM PARAMETER TO THE FAMILIES INSIDE THIS ROOM

The script will assign the selected room parameter value to a parameter for all families located inside the room. You can for example write a room number or room name to all the families located inside.

FIND AND DELETE DUPLICATED FAMILIES LOCATED AT THE SAME PLACE

The script finds all the duplicates of the families located at the same place and deletes them.

UPGRADE SELECTED FAMILIES TO THE HIGHER REVIT VERSION

The script upgrades selected families to a higher Revit version. All the families to be upgraded must be placed in one folder. You will then define the Revit version and path to this folder and Dynamo will upgrade all the families inside this folder. 

DELETE SELECTED PARAMETER INSIDE MULTIPLE FAMILIES

The script deletes the selected parameter for multiple family files inside the selected folder.

PURGE SELECTED FAMILIES

The script purges all selected families located in one folder. 

 

SCHEDULES & PARAMETERS

EXPORT OF xlsx. SCHEDULE OF REVISIONS CONTAINING THE LIST OF SHEETS WHERE IS THE PARTICULAR REVISION VISIBLE
The script exports an Excel file that lists all revisions and sheets for each revision showing the revision cloud visibility.
EXPORT xlsx. SCHEDULE OF VIEWS NOT PLACED ON SHEETS

The script exports an Excel spreadsheet that lists the views that are not used on any sheet in the project. Ideal for organizing and cleaning your project.

EXPORT xlsx. SCHEDULE OF SHEETS AND THEIR VIEWPORTS

After running the script, you select a category of elements and the script then exports an Excel file that lists sheets in the project and viewports placed on these sheets.

CREATE ELEMENT SCHEDULE WITH LEGEND COMPONENT

A script automatically fills a table family placed in the legend view with the family parameters and its count on each level. The element preview is inserted into the table using the legend component.

LAYERS / STRUCTURES OF FLOORS, WALLS, ROOFS & CEILINGS
The script fills the special tag of the wall, roof, floor, and ceiling with all layers of the structure and their partial and total thickness. Delivery includes family tag.
EXPORT xlsx. SCHEDULE OF ALL ELEMENTS OF THE SELECTED CATEGORY WITH ALL THEIR PARAMETERS

After running, you select a category of elements and the script then exports an Excel file that lists all types of elements/families of the category used in the project and their parameters, including their values.

CREATE NEW MATERIALS FROM xlsx. SCHEDULE

The script creates new materials using data from the Excel schedule.

WATCH THE DESIGN AND STANDARDS

STAIRCASE CLEARANCE HEIGHT CHECK
After running the script, you select which stair to check and select one edge of the riser. The script analyzes the clearance heights based on CSN 734130. After the analysis is completed, a dialog box opens with the result.  The analysis is performed in a 3D view, where Dynamo also creates a temporary preview of the geometric calculation. It is necessary to have an open 3D view with displayed elements around the staircase that could disturb the clearance height.
ATTICS ACTUAL ROOM AREA CALCULATION

After running the script, you select the room whose area you want to recalculate. Upon completion of the script, a dialog box with the correct area will open.

ROOM CLEARANCE HEIGHT CHECK

The script analyzes the clear heights in the rooms of the given name and the required minimum height. When the script finishes running, a dialog box opens with room numbers that do not meet this requirement.

CALCULATION OF MINIMUM GREENERY AREA BY GREENERY COEFFICIENT  

As an input parameter you enter the desired greenery coefficient and the script then analyzes the area based on the outline of the plot created by “Property Lines” and opens a dialog box with the required minimum greenery area.

MAXIMUM GFA CALCULATION ACCORDING TO THE PLOT RATIO

As an input parameter, you enter the plot ratio value. The script then calculates the maximum possible gross floor area. A prerequisite for the correct functionality of the script is to create a boundary of land using “Property Lines”.

PLOT RATIO CALCULATION ACCORDING TO GFA

As an input parameter, you enter the gross floor area of ​​the aboveground floors. The script then calculates the plot ratio. A prerequisite for the correct functionality of the script is to create a boundary of land using “Property Lines”.

SILL HEIGHT CHECK

After running the script, you select the window family and the minimum sill height. The script then analyzes all instances of this type and creates a 3D view in which it isolates instances that do not meet this condition.

A MINIMAL ROOM AREA CHECK
When you run the script, you select the room name and the minimum size that the room must reach. The script then analyzes the size of all rooms of that name and opens a dialog box with a list of rooms that did not meet this size condition. For example, the size of bedrooms, living rooms, bathrooms, etc.
HIGHLIGHTING WALLS THAT ARE NOT AT THE RIGHT ANGLE WITH THE GRIDS
After running the script you select the project's grid system (even 1 grid is sufficient), the script then analyzes all walls in active view and highlights those that are not orthogonal or parallel to the selected grid.
STAIRCASE SLOPE CALCULATION

Revit does not offer the option of automatically displaying the stair slope, a parameter that is very important for design. When you run the script, you select the stair instance, and Dynamo then calculates and displays its slope.

CALCULATION OF MAXIMUM SITE COVERAGE 

As an input parameter you enter the required site coverage coefficient and the script then analyzes the area based on the outline of the plot created by “Property Lines” and opens a dialog with the maximum site coverage area.

THE LEVELS AMOUNT CALCULATION BASED ON THE PLOT RATIO

As an input parameter, you enter the required plot ratio and the built-up area of ​​the building. The script calculates the total number of levels. A prerequisite for the correct functionality of the script is to create a boundary of land using “Property Lines”.

CALCULATION OF THE AREA RATIO BETWEEN THE TWO GROUPS OF ROOMS

After running the scrip you enter the name of the selected parameters and their values that divide the rooms into groups.  The script then calculates the ratio between the sum of the areas of the first and second group. Ideal for calculating the ratio, for example, between apartment units and common areas in a house, or for calculating the efficiency of office buildings.

 

AUTOMATION & MODELING

AUTOMATIC FLOOR CREATION

After running the script, you select the room names where the floor is to be created and the floor family type. The floor is created automatically based on the outline of the room. The level of the floor will be the same as that of the room.
PLACE FAMILIES ALONG A SELECTED CURVE

The script will place a select family with a specified distance between the instances along a selected curve or edge.

ENABLE/DISABLE ROOM BOUNDING FOR SELECTED ELEMENTS 

When you run the script, you select the type of wall, floor, ceiling or roof, and if you want to enable or disable room bounding for the selected element

AUTOMATIC WALL AND FLOOR OPENINGS CREATION ACCORDING TO THE MEP SYSTEMS
The script automatically creates openings in walls, ceilings, floors, and roofs for penetrations, shafts.
AUTOMATIC PIPE ADJUSTMENTS IN PLACE OF INTERSECTION
The script creates a new branch and solves the intersection of two pipes. 
FIND INTERSECTION OF TWO TOPOSURFACES
The script finds an intersection between two topos and creates a model line representing this intersection.
CREATE 2D DRAFTING VIEW FROM 3D 
The script converts the 3D view into a drafting view.