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 API

Purge API

Provide an API for the purging of elements. The current purging tool is limited and/or requires more work than it is needed in many occasions. A solid API for the selection of different purge-able element categories, or particular elements within, would be great.  CF-1201 [Purge unused objects]

 

References:

http://forums.autodesk.com/t5/revit-api-forum/purge-unused-via-the-api/m-p/6431564#M17279

5 Comments
Anonymous
Not applicable

It would be great to get API access to the purge utility.

 

For example, a way to build a set of Purge settings and then a method to invoke the Purge command with said settings (equivalent to selections & settings in the UI version).

 

PurgeAPI.PNG

 

As seen in the many threads on the subject, it's a recurring issue that keeps re-surfacing. Several user-made versions are published on the internet, including great contributions by HarryM and JeremyT, but most are not as complete and feature-rich as the UI version provided in Revit.

 

Example precedents :

http://forums.autodesk.com/t5/revit-api-forum/purge-unused-via-the-api/m-p/6431564#M17279

http://thebuildingcoder.typepad.com/blog/2013/03/determining-purgeable-elements.html

Tags (1)
nick.beaven
Contributor

Great idea

Anonymous
Not applicable

Duplicate with previously posted idea : http://forums.autodesk.com/t5/revit-ideas/api-access-to-purge-utility/idi-p/6637433

Mods, is it possible to combine the 2 and add up the votes ?

Anonymous
Not applicable

update : references wishlist item CF-1201 [Purge unused objects]

matthew_taylor
Advisor

I have found an existing simple solution for purging (almost) all unused (for Revit 2017+). See my code repository:

https://gitlab.com/MattTaylor/RevitPurgeUnused

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

Submit Idea