If a dimension is in use, Revit is unable to purge the dimension using the built-in tool "Purge Unused".

Use this Dynamo script to delete a dimension type by choosing from a list.

  1. Load and run the script once.
  2. Modify the index number in the blue group to select one dimension to be purged.
  3. Switch the Boolean node to "True" to initiate delete.
  4. To continue deleting more dimensions, switch the Boolean node to "False"
  5. Run the script again.
  6. Repeat steps 2 to 5 to purge more dimensions.

Note: Be aware that existing dimensions will be deleted. Pressing Undo can bring back the deleted dimensions if necessary. If you would like to make sure a dimension type is not in use, first create that dimension style. Then right-click and "Select All Instances in Entire Project". If there is more than one dimension found, then you can switch these dimensions to another dimension type. If only one dimension is found, then you found the dimension you just created. You can now safely delete the dimension type.

 


Update on May 7th, 2020:

Fixed version 2.0 of the script to point at dimension types, not dimensions, and added a "True" & "False" switch. Also note that in the latest package for archi-lab (2021.25.4), the Elements.delete node is missing from that package and therefore the script will not work. You will see an error. To work around this, you will need to download a previous package of archi-lab in order for this to work. This package was originally created with package archi-lab 2019.2.2.

*Clicking this link will bring you to the download page.

Saved in Dynamo Version:

1.3.2 & 2.0.1

Dynamo Packages Required:

archi-lab.net 2019.2.2, SteamNodes

References:

None.


1 Comment

Loch Ness

Loch Ness · August 10, 2020 at 9:02 am

Elements.Delete doesn’t work anymore. Replace it by Tool.Eraser.

Leave a Reply

Avatar placeholder