A very old 2D drafting package I used 15-20 years had a tool call "delete dupes" and it was liken to the Microstation Delete Duplicates command under utilities. But it had an added bonus if any lines(or arcs)of the same weight, level, type etc. overlapped or touched end to end and were parallel it would merge them into a single entity. This was awesome for cleaning up 2D geometry that was translated from 3D and often have this issue.