Is it possible to call the saveas command with the dialog showing with the filename already set by a variable?
Have already tried (initdia)(command "saveas" "" "MyDrawing") and (initdia)(vl-cmdf "saveas" "" "MyDrawing").
If running from a new file the filename in the dialog is always populated as "Drawing1"
Solved! Go to Solution.
Only just got round to fully testing this. It accepts the variables but can't be used to save, only to open an existing file.
(setvar 'expert 5)
(setq fn (getfiled "Save drawing as" (strcat (getvar 'dwgprefix) var) "dwg" 1))
(command "_save" fn)