Author Topic: Uptime  (Read 10196 times)

0 Members and 1 Guest are viewing this topic.

El Bachaco

  • Newt
  • Posts: 26
Uptime
« on: November 12, 2014, 10:44:58 AM »
Greetings friends .... I can include you as a lisp routine that run only a certain time ..... thanks for the help and your time .......!

ChrisCarlson

  • Guest
Re: Uptime
« Reply #1 on: November 12, 2014, 11:47:04 AM »
You want to know how to run a lisp routine at a certain time of the day?

El Bachaco

  • Newt
  • Posts: 26
Re: Uptime
« Reply #2 on: November 12, 2014, 01:47:19 PM »
hi chris ..... I want the routine is executed only eg for a month.......

ChrisCarlson

  • Guest
Re: Uptime
« Reply #3 on: November 12, 2014, 01:51:19 PM »
So it runs for a month and stops?

El Bachaco

  • Newt
  • Posts: 26
Re: Uptime
« Reply #4 on: November 12, 2014, 02:38:23 PM »
yes.....Chris.....

ChrisCarlson

  • Guest
Re: Uptime
« Reply #5 on: November 12, 2014, 03:09:39 PM »
Would probably just be easier to make an Outlook reminder to unload the routine.

Code - Auto/Visual Lisp: [Select]
  1. (defun c:WantsTheD (/ currentD FutureD)
  2.         (setq   currentD (rtos (getvar "CDATE")2 8)
  3.                         FutureD (rtos 20141212.00000000 2 8)
  4.         )
  5.         (if
  6.                 (< currentD futureD)
  7.                         (alert"\nGood to Go")
  8.                         (alert "\nToo Late")
  9.         )
  10. )

But here is my stab
« Last Edit: November 12, 2014, 03:15:22 PM by ChrisCarlson »

El Bachaco

  • Newt
  • Posts: 26
Re: Uptime
« Reply #6 on: November 12, 2014, 03:18:11 PM »
hey Chris thank you very much ....... I write to try ....

ChrisCarlson

  • Guest
Re: Uptime
« Reply #7 on: November 12, 2014, 03:26:01 PM »
What is the purpose? Sounds like a trial period or register for a full version?

El Bachaco

  • Newt
  • Posts: 26
Re: Uptime
« Reply #8 on: November 12, 2014, 03:32:19 PM »
yes .... is a routine test metal structure .... thanks for your interest Chris

ChrisCarlson

  • Guest
Re: Uptime
« Reply #9 on: November 12, 2014, 03:36:16 PM »
This isn't really a valid way to do that. You'd have to manually edit the LISP routine before you sent it out. You could look into registry edits and creating keys on first run. I'd suggest submitting it through the AutoDesk exchange, from what I understand they incorporate purchases / trials. I could be wrong though.

El Bachaco

  • Newt
  • Posts: 26
Re: Uptime
« Reply #10 on: November 12, 2014, 03:44:09 PM »
Chris ....... I am from Venezuela, Latin America, and the routine is to work at the company where I work and putting on parole for that company policy .....!

hermanm

  • Guest
Re: Uptime
« Reply #11 on: November 12, 2014, 07:34:46 PM »
to start, look up the DATE system variable in  AutoCAD help.

Code - Auto/Visual Lisp: [Select]
  1. Command: (getvar "date")
  2. 2.45697e+006
  3.  

next, investigate these functions:

Code - Auto/Visual Lisp: [Select]
  1. vl-registry-read
  2.  

Have fun. :)


El Bachaco

  • Newt
  • Posts: 26
Re: Uptime
« Reply #12 on: November 13, 2014, 11:45:22 AM »
many thanks hermanm.....

mailmaverick

  • Bull Frog
  • Posts: 494
Re: Uptime
« Reply #13 on: November 14, 2014, 12:28:15 PM »
The DATE solution suggested may not work if the user changes system date.

Is there any other fool proof method ?



VovKa

  • Water Moccasin
  • Posts: 1626
  • Ukraine
Re: Uptime
« Reply #14 on: November 14, 2014, 12:59:07 PM »
The DATE solution suggested may not work if the user changes system date.

Is there any other fool proof method ?
one can query internet time