/***************************************************/ public static HashSet <BuiltInCategory> BuiltInCategories(this IBHoMObject bHoMObject, Document document, bool caseSensitive = true) { BuiltInCategory category = document.BuiltInCategory(bHoMObject.CategoryName(), caseSensitive); if (category != Autodesk.Revit.DB.BuiltInCategory.INVALID) { return new HashSet <BuiltInCategory> { category } } ; return(bHoMObject.GetType().BuiltInCategories()); }