Subcategories in families refuse to delete via the API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have some families that have a long history of upgrades. Some of the subcategories are now redundant or need to be renamed.
The issue I have is that some subcategories (no not system ones) cannot be deleted via the API (they can be deleted via the UI). I suspect this is due to the Revit release that they were first created in.
Note: I use something like doc.delete(catID) to delete the categories. This works for some user defined subcategories and not for others.
If I create new subcategories (named the same after I use the UI to delete the API undeletable subcategory) the subcategories can be deleted / renamed. This is a MASSIVE issue for my clients who have many such old families.
I experience this issue in Revit 2014, 15, 16, 17, & 18.
Any help would be much appreciated. I am reasonably certain an adjustment to the Revit code is required.
Note: These subcategories can be deleted via the User Interface.
I have attached a family that shows the issue. QF_Clearances, QF_Cutout Details, and some other subcategories cannot delete via the api.