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