private DirectShape DirectShapeToSpeckle(DB.DirectShape revitAc)
 {
     var cat        = ((BuiltInCategory)revitAc.Category.Id.IntegerValue).ToString();
     var category   = RevitUtils.GetCategory(cat);
     var element    = revitAc.get_Geometry(new Options());
     var geometries = element.ToList().Select <GeometryObject, Base>(obj =>
     {
         return(obj switch
         {
             DB.Mesh mesh => MeshToSpeckle(mesh),
             Solid solid => BrepToSpeckle(solid),
             _ => null
         });
     });
 private DirectShape DirectShapeToSpeckle(DB.DirectShape revitAc)
 {
     var cat        = ((BuiltInCategory)revitAc.Category.Id.IntegerValue).ToString();
     var category   = Categories.GetSchemaBuilderCategoryFromBuiltIn(cat);
     var element    = revitAc.get_Geometry(new Options());
     var geometries = element.ToList().Select <GeometryObject, Base>(obj =>
     {
         return(obj
                switch
         {
             DB.Mesh mesh => MeshToSpeckle(mesh),
             Solid solid => SolidToSpeckleMesh(solid), // Should be replaced with 'BrepToSpeckle' when it works.
             _ => null
         });
     });