TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: danglar on November 16, 2014, 02:41:11 AM
-
How can I do it? I wont to receive something like this after e-transmit command invoked
"dwgname-curent date.zip"
example: building-16.11.14.zip
-
Haven't found a away to drive it without dialog box, so I 3rd grader approach will not work. Hopefully one of the LISP Professors will be along.
-
What about something like this?
http://www.cadtutor.net/forum/showthread.php?50344-Etransmit-lisp
(defun c:ts_Transmit
(/ d yr mo day ts
) ts
(strcat "-" day
"_" mo
"_" yr
) )
"_.-etransmit"
"_c"
".zip"
)
)
)
)
-
What about something like this?
http://www.cadtutor.net/forum/showthread.php?50344-Etransmit-lisp
(defun c:ts_Transmit
(/ d yr mo day ts
) ts
(strcat "-" day
"_" mo
"_" yr
) )
"_.-etransmit"
"_c"
".zip"
)
)
)
)
This could even be shortened to:
(defun c:myetransmit nil
(if (= 1 (getvar 'dwgtitled))
(command "_.qsave" "_.-etransmit" "_c"
(strcat
(getvar 'dwgprefix)
(vl-filename-base (getvar 'dwgname)) "-"
(menucmd "m=$(edtime,0,dd.mo.yyyy)")
".zip"
)
)
(princ "\nDrawing is not saved.")
)
(princ)
)
-
The if test for drawing saved is a nice addition. 8-)