Model maintenance: Second pack of free Dynamo scripts

Posted on May 15, 2019 by Jean-Marc Couffin
Category: Technical

Model maintenance: Second pack of free Dynamo scripts

Today we share four free Dynamo  scripts to make your life easier when you are trying to maintain the quality of your Revit models. These are time-consuming tasks that our BIM Experts practice every day, most probably like you!

In case you missed the previous episode, you can check it out here.

Pack #2 - Revit Model Maintenance

Model maintenance

We will describe a few problems that this pack aims to resolve. Not interested in the why? Go directly to the description of the 4 scripts. This time we included one more script!

With this second pack of scripts, we will solve these recurring issues linked to model maintenance:

  • Pinned Revit links - It is very easy for Revit users of all levels to catch a Revit link by accident and move it a bit. This can spell catastrophe on a project with more than 10 links. A good practice is to pin them in place once located in order to avoid misfortune which this Dynamo script will help with.
  • A list of view filters as long as your arm and not being able to tell which ones are in use. Dynamo to the rescue to test if they are used or not.
  • Countless view templates, up to a point where it is hard to tell what is what. Dynamo to the rescue.
  • Manage what is included or excluded in several view templates. Once you create a project parameter, it is automatically included in every single view template. Do not panic: we have the Dynamo-based solution to exclude this newcomer.

Script anatomy

Hierarchy of information

All of BIM One’s Dynamo scripts are structured in a systematic way to make it easier for users to understand:

The different groups correspond to the standard progression of a script: input data, constraints, an interface that interrogates inputs and constraints, actions on data or geometry and monitoring.
Figure 1.0  The different groups correspond to the standard progression of a script: input data, constraints, an interface that interrogates inputs and constraints, actions on data or geometry and monitoring.

Dependencies

We worked hard to develop our scripts with as few dependencies as possible to make deployment and maintenance straightforward. By dependencies, we mean custom nodes that need to be downloaded for the script to be functional.

Languages

Our scripts are bilingual: English / French. BIM One is headquartered in Quebec, where both languages coexist. The first section of each script starts with a Python script that queries the language of the Revit interface and conditions the text of the interface.

Pack #2 - Revit Model Maintenance

BIM1_PinAllLinks

With this script you will be able to:

Pin every instance of Revit links in your model.

The different groups correspond to the standard progression of a script: input data, constraints, an interface that interrogates inputs and constraints, actions on data or geometry and monitoring.
Figure 2.0 The full script Pin All Links
2 step process
  1. Launch the script.
  2. A window dialog will report the pinned links.



BIM1_DeleteUnusedFilters

With this script you will be able to:

Remove unused view filters from your model.

The different groups correspond to the standard progression of a script: input data, constraints, an interface that interrogates inputs and constraints, actions on data or geometry and monitoring.
Figure 3.0 The full script Delete Unused Filters

2-step process

  1. Launch the script.
  2. A window dialog will report the elements processed.

BIM1_ExcludeIncludeFromViewTemplate

With this script you will be able to:

Include or exclude a parameter or a series of parameters from view templates.

The different groups correspond to the standard progression of a script: input data, constraints, an interface that interrogates inputs and constraints, actions on data or geometry and monitoring.
Figure 5.0 The full script Exclude Include From ViewTemplate

4-step process

  1. Select the view templates you wish to process
  2. Select the parameters
  3. Choose to include or exclude those parameters from selected view templates
  4. A window dialog will report the elements processed.

Warning

Revit API, through Dynamo, does not allow the script to process 3D view template.

BIM1_DeleteUnusedViewTemplates

With this script you will be able to:

Remove unused view templates. You will be able to select the ones you want to remove.

The different groups correspond to the standard progression of a script: input data, constraints, an interface that interrogates inputs and constraints, actions on data or geometry and monitoring.
Figure 4.0 The full script Delete Unused View Templates

2 step process

  1. Select the view templates you want to remove.
  2. A window dialog will report the elements processed.

Warning

Revit’s API, through Dynamo, does not allow the script to process 3D view templates.

Upcoming scripts

We can’t wait to release our next Dynamo Script Pack. The third pack should consist of tools to help you replace data or elements in batch.

If you have any questions about these scripts, please do not hesitate to contact us on dynamo@bimone.com.

Warnings

  • These scripts are distributed free of charge by BIM One Inc. They have all been tested and used by our specialists before being released. However, Dynamo, like computing, is not an exact science. Some scripts may not work as expected on your computer or in your projects. We cannot be held responsible for your use of it. Obviously, we will try to correct any problems or answer your questions as best we can and according to our availability. Our goal is to follow up once a week.
  • Like any Dynamo script, it's essential to understand that manipulations on a file can cause an unwanted result: Always save your file or a copy before proceeding.
  • In order to have a correct result, it is necessary to close and reopen Dynamo every time you use the same script on the same file.


Jean-Marc Couffin
BIM Specialist

By clicking Sign Up, I agree that I have read and accepted the Privacy Policy.