I don’t think you can get the used Categories without checking elements, but you can certainly get all project Categories. Take a look at this thread and see if it gets you started.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Get All Elements of Category at Documents list with Python | 6 | 2607 | March 22, 2022 | |
| Get all BuiltInCategory - ERROR | 5 | 196 | February 21, 2024 | |
| List of categories of revit | 12 | 404 | November 14, 2024 | |
| Collect all categories in a project | 54 | 35849 | February 3, 2022 | |
| List of used Categories | 6 | 180 | October 3, 2024 |