This video shows an example of using TotalPurge for converting simple entities (kubes and arcs) forming a closed contour into a polyline.
In the beginning, we create a closed contour, which consists of a few lines and arcs. Next, we launch TotalPurge and activate smart conversion of entities into polylines in the settings.
When TotalPurge has done its work, you can see that in place of the eight objects of the drawing we now have a single closed polyline, which you can further edit using, for example, the PEDIT command.