Thank you Kennet.
Looks much better, yet to try it though sure that will be the missing link !
Whilst it is probably very obvious that i am a little out of my depth, is it possible for yourself or someone else to tell me what i am doing wrong here.
Code:
(defun c:send (/ dp bd td dn nn)
(setvar "cmdecho" 0)
(setq dp (getvar "dwgprefix"))
(setq bd (menucmd "M=$(edtime,$(getvar,date),YY.MO.D)"))
(setq td (strcat bd "\\"))
(setq dn (getvar "dwgname"))
(setq nn (strcat dp td dn))
(command "-layer" "lock" "*" "")
(setvar "tilemode" 1)
(command "zoom" "extents")
(command "view" "s" "DSA")
(command "purge" "a" "*" "n")
(command "audit" "y")
(command "save" fn "y")
(command "-etransmit" "ch" "DSA Mechanical" "c" nn )
(setvar "cmdecho" 1)
(princ)
)
Whilst i am expecting a few laughs as i am sure there is a much easier way. It all seems to work other than the last, last part of placing the file name. I have set the variable "nn" to the file name and location i would like and tested it, it does work but not sure how to get that info to the command line. I'm sure it something simple that the simpleton can't see.
Regards
Stephen
[ Moderator Action = ON ] What are [ CODE ] tags... [ Moderator Action = OFF ]