Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Good afternoon!
For my work I have to edit a lot of .dxf drawings and save them to a different location, as .dwg (2013) file.
However!
My .dxf files are all named 001, 002, 003 etc.
I would like to rename them to:
20190619 001
20190619 002
20190619 003
etc.
I have written the following script:
(COMMAND "_SAVEAS" "2013" (STRCAT "R:/Projects/217/rev A/DWG/" (vl-filename-base (GETVAR 'DWGNAME))))
This will save my files as .dwg (2013) in the correct folder, but with the same file name I started with.
The file name I get:
001
The file name I want:
20190619 001
I have tried google, tried adding getvar 'dwgprefix but I am not sure how and where I have to place this in my script. Nothing seems to work.
I hope someone can help me! Thanks in advance!
Solved! Go to Solution.