DWG 2D to Revit 3D walls

The trick with this workflow is to isolate all curves longer than a wall end, group them by parallelism and try to pair them/reject one, then make walls by finish exterior/interior. It’s a fairly complex workflow and depends highly on how clean the CAD file is (e.g. are there heaps of overlapping lines, are doors interrupting walls).

The best place to look into potential solutions is this megathread, but I’ve never seen anyone solve this in a way that isn’t limited by how the CAD is set up, or works on any project perfectly: