Automating the Creation of Topography Subregions

Ultimate Goal:
Export Shapefiles from Civil 3D that define coverage areas of a sites topography. Automate the process of creating topography subregions from this geometry in Revit (Create a subregion of sidewalk with proper material applied, create subregion of lawn area with proper material applied.)

Progress:
I have a python script that takes in a topography element using the Select Model Element node, and a curve created by point geometry in dynamo. The script throws an error that says “A managed exception was thrown by Revit or by one of its external applications.”

Any thoughts?

As a new user I can’t upload. All relevant files can be downloaded here:

https://stewart-eng.sharefile.com/d-sd25912d52cf40438

You are passing dynamo Curves but the method requires a CurveLoop

image

cannot see the link