Floor following topography

I was running this Dynamo routine but when I run it, Revit simply closes. Can someone help me?