How to rotate the Box Manhole in Civil 3D to be Parallel with the Road alignment by using Dynamo

Hi
If anyone can help me to create Dynamo code to rotate the Box Manhole in Civil 3D to be Parallel with the Road alignment (Attached file for reference)

Test-Drawing1.dwg (1.0 MB)

What have you tried so far? I would probably compare the vectors of each object and get the angle difference between then rotate the manhole by this rotation.

FYI, this sample that is provided with Dynamo Player in Civil 3D might already do what you’re looking for.