I’ve had an annoying issue with #SolidWorks DXF exports at work for a long time. For multi-sheet drawings, each sheet gets its own file (which is desired), and the file name is of the format:
[two-digit number that is sheet number -1]_DrawingFileName.dxf
For example: Sheet 2 of a drawing called Bracket would be:
01_Bracket.dxf
What I really want is: Bracket_Sheet_2.dxf
From a programming standpoint, I understand why the default naming exists. Our fabrication vendors, not so much… I usually manually rename each file accordingly, but that is time-consuming and error prone when you have large numbers of files to deal with on a given project.
I’ve been meaning to write a #Python script to automatically rename all of the DXF files in a given folder based on my desired naming scheme, and I knew it wouldn’t be difficult. I just didn’t expect it to be under 10 lines of code…
I’m sure all the professional programmers are rolling their eyes at how trivial this is, but the point of #programming, and #engineering in general, is to solve whatever problem is in front of you.