Hi Fabricio,
try this...
(defun c:MySaveas (/ fld ndwg)
(vl-load-com)
(setq fld (getvar "filedia"))
(setvar "filedia" 0)
(setq ndwg (getstring
(strcat "\nEnter new drawing name : ")
)
)
(setq ndwg (strcat "c:/test/" ndwg ".dwg")) ;Modify the path...
(command "_saveas" "" ndwg "")
(setvar "filedia" fd)
(princ)
)
Cheers
Henrique
P.S. Boa sorte...