Revit API: Creating a foundation slab in Revit 2023 and later

Revit API: Creating a foundation slab in Revit 2023 and later

mr.engineer.aec
Advocate Advocate
582 Views
2 Replies
Message 1 of 3

Revit API: Creating a foundation slab in Revit 2023 and later

mr.engineer.aec
Advocate
Advocate


In previous versions of the Revit API, the NewFoundationSlab() method was used to create a slab foundation. However, this method has been removed in Revit API 2023. So, how can we create a slab foundation in Revit 2023 and later?

I have checked the What's New in Revit API 2023 documentation, but I can only find the deprecation of the NewFoundationSlab() method, not a replacement API.

Is there a new API for creating slab foundations in Revit 2023 and later? If so, how can I use it?

Any help would be greatly appreciated.

 With Revit API 2022:

                                Floor newFoundationSlab = doc.Create.NewFoundationSlab(curveArray, floorType, level, true,
                                    XYZ.BasisZ);
0 Likes
Accepted solutions (1)
583 Views
2 Replies
Replies (2)
Message 2 of 3

jeremy_tammik
Alumni
Alumni
Accepted solution

That question ought to be easily answered by taking a look at the Revit SDK FoundationSlab sample:

  

This sample demonstrates how to create Foundation Slab.

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
Message 3 of 3

mr.engineer.aec
Advocate
Advocate
Thank Sir !
0 Likes