Save dialogue with filename prefixed with folder name and remove file ext

Save dialogue with filename prefixed with folder name and remove file ext

CraigP_
Enthusiast Enthusiast
364 Views
1 Reply
Message 1 of 2

Save dialogue with filename prefixed with folder name and remove file ext

CraigP_
Enthusiast
Enthusiast

Hi

 

When I type "save" in the command line I get a dialogue box (expected).
In the "File name:" textbox I get the current file name ie: "STD-393-1844.dwg" (expected).

 

Can I, using lisp get the following in the "File Name:" textbox "Old Revs\STD-393-1844"
That is prefix the filename with "Old Revs\" and replace the file extension with "_" (underscore).

 

I also wish to keep the dialogue open to allow us to add to the filename

Hope this makes sense.

 

What we see: save_original.JPG

 

What we want to see:save_wanted.JPG

 

Thanks

 

Craig
0 Likes
365 Views
1 Reply
Reply (1)
Message 2 of 2

scot-65
Advisor
Advisor
You might need to get a DOSlib for this request(?). I do not have one.
If anything, I will guess it will behave similar to GETFILED.

Look into VL-FILE-COPY function.
Assist this with your very own dialog interface (DCL).

File names cannot have a backslash.
If you are trying to direct into a subfolder, you will have to build the entire path.
No file extension can also be a bad thing.

???

Scot-65
A gift of extraordinary Common Sense does not require an Acronym Suffix to be added to my given name.

0 Likes