Creating a RhinoScript to add text to the saved filename

Hello all,

I want to open .dxf files, edit them and then (by using a command) save them as .dxf again without selecting the file type over and over again.

The standard save filetype is alsways .3dm and i cant seem to change that.

I tried to write a RhinoScript dat saves files as .dxf, but i couldnt get that wordking. I also tried to make a script that changes the filename to: ‘Filename.dxf’ But that didnt work either.

Can someone help met?

Are you wanting to save the .dxf as the same name as the original (i.e. overwrite), or as a new file name?