Issues when creating new Floor with Python (cannot instansiate new instance of class)

I am trying to create a new floor using the Floor.Create() method in the API.

When doing so, I get the following error:

I don’t understand the error message, since “Floor” is clearly a class in the API.

Some help would be greatly appreciated!

My guess is taht you’re using Revit 2021 or prior.

The Floor.Create method is only available in Revit 2022 and on. For 2021 and prior you’ll need to use something like NewFloor method.