TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: MUQTAR on October 11, 2011, 10:17:17 AM

Title: Reminder in autocad
Post by: MUQTAR on October 11, 2011, 10:17:17 AM
HI Everyone,

can any one help me to make a lisp for auto reminder in autocad. In details when im going to start a drawings a want to give a target time and i can make reminders every 15min i should be remind me on set time as alert eq. u r target time going to finish like,
\
please any one knows about it please give me the code

thanking you, :-)
Title: Re: Reminder in autocad
Post by: irneb on October 11, 2011, 10:25:36 AM
I don't think it's a good idea trying this in Lisp. You're either going to run a loop hogging acad entirely or run it through reactors (which would only fire if something's changed in acad). And if you go the reactor route, then popping up an alert box is a way of trying to crash acad.

I'd advise rather doing something like this in an external program. If you really want such inside ACad then possibly use DotNet instead - at least there you'd have something like a wait function and be able to run it as a 2nd process - thus acad can keep going. Not to mention, your pop-up may then also be non-modal.
Title: Re: Reminder in autocad
Post by: MP on October 11, 2011, 10:29:40 AM
Do-able, but not practical -- why not just drink coffee and beat all arbitrary deadlines?
Title: Re: Reminder in autocad
Post by: Jeff H on October 11, 2011, 10:32:02 AM
You could maybe do something with the system variables below and look at TIME command
 
Title: Re: Reminder in autocad
Post by: Lee Mac on October 11, 2011, 12:41:18 PM
Set a reminder in MS Outlook if you have it, or a similar program.
Title: Re: Reminder in autocad
Post by: alanjt on October 11, 2011, 02:49:00 PM
Seems like you'd lose time by continuously having your concentration broken by an incremental popup.
Title: Re: Reminder in autocad
Post by: Krushert on October 11, 2011, 04:19:24 PM
If memory severs me correctly, take a look (aka search) over on the Catalyst site.  I remember somebody doing this or trying to do this note think.  It was suppose to look like sticky notes.   :|
Title: Re: Reminder in autocad
Post by: dgorsman on October 11, 2011, 04:31:30 PM
You now have TEN minutes to complete the current drawing...

You now have FIVE minutes to complete the current drawing...

You now have ONE minutes to complete the current drawing...

You now have TEN SECONDS  to complete the current drawing...
nine
eight
seven
six
Five
Four
THREE
TWO
ONE

DRAWING LOCKED FROM FURTHER CHANGES.  PLEASE REPORT TO SUPERVISORS OFFICE.  NOW!!!

  :police:
Title: Re: Reminder in autocad
Post by: alanjt on October 11, 2011, 04:37:22 PM
You now have TEN minutes to complete the current drawing...

You now have FIVE minutes to complete the current drawing...

You now have ONE minutes to complete the current drawing...

You now have TEN SECONDS  to complete the current drawing...
nine
eight
seven
six
Five
Four
THREE
TWO
ONE

DRAWING LOCKED FROM FURTHER CHANGES.  PLEASE REPORT TO SUPERVISORS OFFICE.  NOW!!!

  :police:
(http://www.theswamp.org/lilly_pond/alanjt/spank.gif)
Title: Re: Reminder in autocad
Post by: MeasureUp on October 12, 2011, 11:07:58 PM
You now have TEN minutes to complete the current drawing...

You now have FIVE minutes to complete the current drawing...

You now have ONE minutes to complete the current drawing...

You now have TEN SECONDS  to complete the current drawing...
nine
eight
seven
six
Five
Four
THREE
TWO
ONE

DRAWING LOCKED FROM FURTHER CHANGES.  PLEASE REPORT TO SUPERVISORS OFFICE.  NOW!!!

  :police:
It would be good to add this line at the bottom:
Last warning! This drawing will be closed in 5 seconds and be dumped with its bak file to the recycle bin!
 :lmao:
Title: Re: Reminder in autocad
Post by: HasanCAD on October 13, 2011, 03:23:50 AM
I think that it is a good start
Title: Re: Reminder in autocad
Post by: MUQTAR on October 13, 2011, 07:44:01 PM
thanks hassan