CREATING EXTRACTION FILE NEED TO RENAME THE TXT AUTOMATICALLY

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Using AutoCAD 2017
Caution!! inexperienced user
I'm trying to write a script using FILEDIA 0 and -ATTEXT to bypass all the prompts. The template file location doesn't seem to be that much of a issue. By leaving the extraction file prompt line in the command empty it places the extraction file in the same location as the .dwg (that's ok too). But when I go to the next drawing to run the same process it keeps the original file name from the first time I ran the script overwriting the last drawings extraction file.
If possible, can I insert into the script to change the .dwg name from drawing.dwg to drawing-holes.dwg, so it will name the extraction file how I need it, then of course change the drawing name back to the original prior to saving? My apologies if this is vague, I've been everywhere I can via the internet, but most of it seems to be a different language for a novice user like myself. attached is what I've got so far. Please help.