Project 3D solid to 2D with outer boundary only

Hi,
I’m looking for help how to find outer boudary of lines projected to XY plane.
Here is DWG and Dynamo script. At the end I would like to hatch this outer boudary in model space in Civil 3D.
C3D_3D solid project to 2D.dwg (879.3 KB)
D4C3D_3DsolidTo2D_01.dyn (25.3 KB)

This likely isn’t the most effective method - I recall seeing something which indicated an easier way to do this with the AutoCAD api directly, but can’t remember where or how - but it will work in pretty much every case where the entirety of the solid is above the plane’s normal.

You might want to change the Vector.ZAxis to work with the normal of the selected plane to simplify inputs and static values some.