Create a closed polyline from cogo points in Civil 3D

Hi All,
I have 6 cogo points. I need to connect them through a polyline with the following criteria.
Point 1 - Point 2 - Point 3 = Arc

Point 3 - Point 4 = Line

Point 4 - Point 5 - Point 6 = Arc

Point 6 - Point 1 = Line

Can this be achieved in the Dynamo.
If we can create a feature line instead of polyline that would be much useful.

Thanks in advance.