Extracting cut / fill daylight lines

I’ve created a Dynamo script to extract the cut and fill daylight features as 3d ploylines, It sort of works but bring in multi 3d polylines of the same cut /fill feature line can someone tell me what I’m doing wrong?

Try to set right click lacing to longest.

I set the lacing to longest on the TkcCorridorFeatureLine.ExportAsPolylines and I still get multi 3dpolylines for each cut/ fill line. I know the problem is at this node. any other ideas?

Perhaps some list level tinkering? And welcome to the forum :wave:t3: