SteveJJH
Mechanical
- Feb 5, 2009
- 109
Sorry if this is in the wrong forum for this question
I am writing a macro to save a SolidWorks drawing as a PDF and add some information to the filename at the same time.
I also would like it to save the file in a specific folder on the system dependant on the start of the filename.
I have the file name as a string, but I want to be able to write something along the lines of:
If the filename starts with “V”, put it in this folder, else if it starts with “MD”, put it in this folder, and so on, ignoring any subsequent characters in the filename.
I hope I’ve given enough information to be clear, any ideas anyone?
I am writing a macro to save a SolidWorks drawing as a PDF and add some information to the filename at the same time.
I also would like it to save the file in a specific folder on the system dependant on the start of the filename.
I have the file name as a string, but I want to be able to write something along the lines of:
If the filename starts with “V”, put it in this folder, else if it starts with “MD”, put it in this folder, and so on, ignoring any subsequent characters in the filename.
I hope I’ve given enough information to be clear, any ideas anyone?