Slope pattern for cut and fill sections via C3D 2024

Hi everyone,
I am working on a Dynamo graph to create Corridor Slope Patterns between two feature lines. While the script works in standard cut sections on the main baseline, I am encountering two major issues:

  • Bridging at Structures: When I reach a structure where a second baseline is used (the same alignment I have used as secondary baseline), the slope pattern “jumps” or connects across the earthworks incorrectly. I suspect this is because the node creates the pattern as a Block Reference or isn’t isolating the Baseline Regions correctly.

  • Fill Sections: The script fails to generate the slope patterns for the majority of the fill regions. In the few locations where it does generate them, the slope pattern orientation is incorrect.

  • I have tried swapping Baseline start/end stations for Feature Line start/end stations, but it hasn’t resolved the issue. I have attached my script, the graph, and screenshots of the Civil 3D model showing the “bridging” error.

    Any help would be greatly appreciated!

DaylightSlopePattern.dyn (122.5 KB)