Revit Sloping Floor

There are some particular challenges to doing this programmatically.

https://jeremytammik.github.io/tbc/a/1121_create_sloped_floor.htm

This is the closest thing at the moment.