Basics Revit API

Hello Community,

I did a good 6 months C# and python course for Rhino with the rhinoCommon.
I read about Migration Dynamo - Revit in the github (
and now i plan to start with the RevitAPIdocs mit Python:
I tried the following example:

and if we check the revitAPI:

When I try to obtain Volume and Faces it work out

When I try SurfaceArea and ComputeCentroid doesnt work.
Could someone please explain me why Volume and Faces works, but SurfaceArea and ComputeCentroid not?

thanks in advance

I think you need to do:
linkedSolids = IN[0].ToRevitType()

Check out the Geometry part on the migration site.

1 Like