Ejemplo n.º 1
0
        /***************************************************/

        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());
        }