In Draftsight, what's the variable similar to "DWGNAME" in Autocad ?

hello every body

In Draftsight, what is the variable similar to "DWGNAME" in Autocad ?

I would like use the command line bellow :

strcat"Z:/Atelier/DXFLT98/"\\\$(substr,\\\$(getvar,dwgname),1,\\\$(-,\\\$(strlen,\\\$(getvar,"dwgname")),4)),".dxf")

It's a command to save as a dxf, all time the same folder and using the name of the open file.

On DWG-Editor, it's run But on DS, there are some issues. Maybe, it's the variable "dwgname" who is not right.

Do you have any ideas ?

Thanks for your help

bruno