Remove unused reference planes

Hi fellas!

I wonder if anyone have an idea about deleting unused reference planes, could that be possible using Dynamo? (reference planes that aren’t used as hosts for elements).

1 Like

@Konrad_K_Sobon did something similar for reference planes that were not named. I don’t believe I have seen anyone do what you are saying though. One problem I have seen with reference planes is, that a categorical collection will report reference planes of edited wall profiles. :roll_eyes: That definitely makes this more difficult!


I noticed the reference planes generated by edited wall profiles return a Dimension element when using the method GetDependentElements, so they can be filtered out by that – oddly that method returns nothing on the reference planes auto-generated by railings though (not sure what other elements generate them as well). But in either case Revit returns an error when trying to delete those kinds of reference planes so they can be skipped.

Unfortunately that method doesn’t seem to return elements that are hosted on reference planes though (I was hopeful because it is a newer method), and those don’t cause an error when being deleted either. So I don’t really see a way to filter out reference planes that are hosting :frowning:

Deleting unnamed reference planes seems best practice to me - I usually name them if they’re going to host something anyway so they can be chosen from the Workplane list. The frozen node pictured from Archi-lab does just that


Yes, naming sure is a good practice to use. Unfortunately this soup has been made by many chefs, and some of them didn’t bother to do this :slight_smile:

Have a look at 's thread here - it may be of use!