Message 1 of 7
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi. I'm trying to get a list of categories parameters can be assigned to - basically the built-in list from Revit shown when a project or shared parameter is created/added, yellow highlighted in the snapshot below. The code I'm using now is
Categories Cats = m_commandData.Application.ActiveUIDocument.Document.Settings.Categories;
The issue is, this gives me a much longer list than what Revit's showing (the yellow box). See right side of the snapshot. For example -
- there are no "Electrical Spare/Space Circuits" or "Elevations" in the Revit interface, but they are present in the list provided by the above code.
- Also, in the Revit interface, there's only one sub-category shown under "Floors", which is "Slab Edges". However, in the list provide by code (right side of snapshot), there are many more.
Worst case scenario, I guess I may have to look at the Revit interface and manually get rid of what's not shown in there. But before I go down that road, just wonder if there is any better and cleaner way to filter the list and get what we see in Revit interface.
Thanks for the help,
Qing
Solved! Go to Solution.