Creating a floor by 2d rectangle and level using Python Script

Dear All,

I’m new in Python inside dynamo and I have un error, any help to understand

Here are the inputs, in the order of input, for creating a floor in python using the Revit API.

image

Try exploding the rectangle first.

As @staylor noted, you need to have a curve loop, which is a Revit API object not a Dynamo one. To complicate things, Revit doesn’t have a Rectangle classs. As an initial step, explode the Dynamo geometry and then try to convert each of the component curves to a Revit geometry type.