Manuel_Kunde Posted March 3, 2022 Share Posted March 3, 2022 Hi all, i have added a diesel printout that gives me the processing time from the drawing statistics. Can someone help me to include this diesel command in a lisp file? I don't get it at all. I want to show the time to the user via an alert window or something else. $(edtime,$(getvar,tdindwg),$(+,$(*,24,$(fix,$(getvar,tdindwg))),$(edtime,$(getvar,tdindwg),HH)):MM:SS) Quote Link to comment Share on other sites More sharing options...
mhupp Posted March 3, 2022 Share Posted March 3, 2022 I'm sure their is a better way to do this. (defun C:ETIME (/ time D H M S) (setq time (getvar 'tdindwg) D (fix time) H (fix (setq time (* (- time D) 24))) M (fix (setq time (* (- time H) 60))) S (rtos (* (- time M) 60) 2 3) ) (alert (strcat "Edit Time: " (itoa D) " Days " (itoa H) " Hours " (itoa M) " Minutes " S " Seconds")) ) Also the Time command displays Total edited time. 1 Quote Link to comment Share on other sites More sharing options...
Roy_043 Posted March 4, 2022 Share Posted March 4, 2022 (edited) Example: (alert (menucmd "M=$(edtime,$(getvar,date),MO/DD/YY)")) Edited March 4, 2022 by Roy_043 2 Quote Link to comment Share on other sites More sharing options...
Manuel_Kunde Posted March 4, 2022 Author Share Posted March 4, 2022 40 minutes ago, Roy_043 said: Example: (alert (menucmd "M=$(edtime,$(getvar,date),MO/DD/YY)")) Yes, thats quick and clean. Thanks. (alert (menucmd "M=$(edtime,$(getvar,tdindwg),HH:MM:SS)")) 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.