Announcements
Welcome to the Revit Ideas Board! Before posting, please read the helpful tips here. Thank you for your Ideas!
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

PURGE UNUSED - REVIT API

PURGE UNUSED - REVIT API

Please add purge unused revit families to revit api!

And if you wont I will see you in the argument clinic or the revit one, no time limit.

7 Comments
matthew_taylor
Advisor

I have found an existing simple solution for this (for Revit 2017+). See my code repository:

https://gitlab.com/MattTaylor/RevitPurgeUnused

Status changed to: Accepted

Congrats! We think this is a great idea, so we've decided to add it to our roadmap. Thanks for the suggestion!

The Factory

matthew_taylor
Advisor

@matthew_taylor ,

 

Thank you for the reference. As this is specifically API related and already accepted, I am going to keep this Idea separate.

 

-Kimberly

tom_flaherty
Participant

@matthew_taylor does your code work with specific categories? For example I want to just purge unused doors.

matthew_taylor
Advisor

@tom_flaherty No. You would need to post-process the element IDs to check their category.
Note that in Revit 2024 there are two new functions for getting unused elements:

  • GetUnusedElements
  • GetAllUnusedElements
Status changed to: Implemented

We are pleased to say that this has been implemented in Revit 2024! Thank you for your contribution to improving Revit!

 -The Factory

Can't find what you're looking for? Ask the community or share your knowledge.

Submit Idea  

Autodesk Design & Make Report