Export Revit to CAD from links or Documents

Have been working on a few different scripts for this but each has operational issues that prevent it from completing the process. I’ve used different lacing options but currently I’m stuck. These were developed off different post here but with modifications to grab multiple files and add naming sequences from the files sheets names and numbers. Don’t have links readily available for referencing.

The first one only creates the first set of files.

Some Warnings; even though it never exported anything from that file. It gives this warning a few times.