Floor from dwg polyline

I managed to get this simple code to model floors in Revit from a dwg.
The elevation is also produced as an offset from level 0.
The polylines in the dwg must be closed and have no overlapping vertices.
In my case I added a string to pick up all polylines on layer “pl”.
The dwg is picked using pick model elements node.
The package BimorphNodes must be installed for the node ‘CAD.CurvesFromCADLayers’.

Welcome! Do you have a question or are you just sharing for others?