Save command History to file

Save command History to file

Automohan
Advocate Advocate
2,977 Views
3 Replies
Message 1 of 4

Save command History to file

Automohan
Advocate
Advocate

Is there a way of writing command line history to a text file (Notepad) via a lisp routine?

"Save Energy"
Did you find this reply helpful? If so please use the Accept as Solution
0 Likes
2,978 Views
3 Replies
Replies (3)
Message 2 of 4

ronjonp
Mentor
Mentor

Try THIS.

0 Likes
Message 3 of 4

Automohan
Advocate
Advocate

I will to run a script to many drawings with loading a lisp

A lisp will......
1.) (getvar "DWGNAME") (Full dwg path with the drawing name)
2.) (command "_.-SCALELISTEDIT" "?" "e")
3.) copy the (textpage) to a single Notepad for all drawings

 

Save Text window.jpg

"Save Energy"
Did you find this reply helpful? If so please use the Accept as Solution
0 Likes
Message 4 of 4

john.uhden
Mentor
Mentor

Just turn on LOGFILEMODE (1), and in Options set the path to where you want the log files written.  It creates a separate .log file for each dwg opened each time.  The file date is when it is closed, so I use my acaddoc.lsp file to report the current date and time when the dwg is opened, otherwise you wouldn't know.

(write-line (strcat "\n[ Drawing opened: " (eval (list 'menucmd "M=$(edtime,$(getvar,date),DDD MO-DD-YY HH:MM:SS)")) " ]"))

John F. Uhden

0 Likes