Sorting out used Revit categories only

I’m trying to reduce the list of categories to only the ones used. So instead of having all build-in categories in the Revit file to the ‘Model Categories Picker’ (see attached), i would only have the ones where geometry in revit has been made. I would still like to be able to pick and choose from a list (a picker of some sort).
Is there a way to do so, or maybe a work-around?


The ‘Category’ parameter should show you only categories used by instances or by types you currently have on the model.