Revit Tutorial – Naming PDF and DWG exports to match ISO19650

Many of you working with large Revit projects are probably utilising the BIM naming conventions outlined in ISO19650. Just for your reference, the naming system may look similar to the sheet below.

Revit ISO19650 Sheet

Below is a screen capture of the properties of the sheet, you can clearly see the use of shared parameters to hold the values such as the Originator, Volume,Level and so on.

Revit ISO19650 Properties Palette

The problem starts when you are required to generate PDFs or DWGs from the Revit project to issue or upload to a Common Data Environment (CDE). The naming convention, of course, needs to comply with ISO19650 but Revit will give you something like the output below:

Revit PDF naming and Output

Fortunately, we can employ Dynamo to rename the documents for us to match with the correct ISO19650 naming convention. The basic process is to collect the ISO19650 shared parameters from the sheet and concatenate these together using hyphens to generate the correct document name. The name is then concatenated with the file path and this forms the new name.

We then get the contents of the directory that the PDFs were published to and just get the PDFs that match the drawing number. For example, the drawing number could be 1070 and this can be used to get the original PDF name that contains this number. It is essentially a wildcard match (*- 1070 -*)

A python script is then employed to do the actual renaming in the operating system.

Python - Rename docs

You may want to watch the YouTube Tutorial which shows the dynamo script in operation and steps through the graph and explains whats happening.

Here is a high res image of the Dynamo script if you want to recreate it for your own use.