Civil3D Surface to Dynamo Surface problem

Hello everyone,

I am currently making a script which uses Civil3D Polylines and Civil3D Surfaces to then use the node “PullOntoSurface”. But because i have to use Dynamo to transform my TinSurface to a Dynamo Surface, the script get really heavy and slow.

I know that there is a function to do this through Civil3D (which is really fast), but i was wondering if there is a way to combine this: Through Dynamo using this function with the Civil3D API.

Thanks in advance!