I am working to generate a list of ForgeTypeIds for common geometric Category Types. I had previously created a list using the BuiltInCategory enum, but I am looking to support the new ForgeTypeId.
Following the documentation I see that there is a helper function already: Category.GetBuiltInCategoryTypeId(), however when I loop through the list of BuiltInCategories I have created, I get the following error in Revit:
The BuiltInCategory -2000175 is not valid.
Parameter name: categoryId
I know from peaking at the BuiltInCategory enum definition that this is the Railing category type. If I remove the Railing category, it doesn't complain anymore.
Is there a different method to get ForgeTypeIds for Built-in categories, and is there a better way to see all 'built-in' ForgeTypeIds?
Solved! Go to Solution.
Solved by admaecc211151. Go to Solution.
Railing now is
OST_StairsRailing = -2000126
A simple way to know the BuiltInCategory is install revit lookup for your Revit and check almost every information of elements by it.
And if you want to check by API, element.Category.Id will also return the BuiltInCategory ID.
Can't find what you're looking for? Ask the community or share your knowledge.