How get OST (Built-In Name) of element

Very informative thank you!

I realise this is question is from a while ago, however it turns up in searches at or near the top

You can use System.Enum.ToObject(BuiltInCategory, item.Category.Id.IntegerValue) to get the OST name

2 Likes

And what if i need to get name of category of “OST_Cameras”?
Revit write error
“ValueError: The selected category is not valid in this document.”

Can you post an example?