View Full Version : How to make pop-up message at .dwg startup??
oVeRdOsE
31st Mar 2010, 08:19 pm
Hi,
(I did search for all words in my title, did find a thing)
So, I want a pop-up message as '' Make sure to sign the paper after printing'' at the startup.
With a '' OK'' option.
What I have so far
(SETQ reply (ACET-UI-MESSAGE "Make sure to sign the paper after printing"
"Warning"
(+ Acet:OK Acet:ICONWarning)
)
)
But how to make it appear with a specific .dwg??
Thanks alot
nukecad
31st Mar 2010, 08:47 pm
Wouldnt it be better stuck onto the 'print' command with an acknowledgement before printing rather than at drawing startup?
ReMark
31st Mar 2010, 10:58 pm
Put it in your template on a non-printing layer right down by the title block.
Cad64
31st Mar 2010, 11:20 pm
Put it in your template on a non-printing layer right down by the title block.
I agree. People will ignore pop-ups and just click OK without reading them. Or they will read it but then forget what it said 5 seconds after they click OK.
ReMark
31st Mar 2010, 11:22 pm
And one more thing...lock the layer just to be annoying.
MSasu
1st Apr 2010, 09:14 am
If still consider the pop-up solution, may try the following.
Create a file named "acaddoc.lsp" into Support folder for current user and add the below lines into it (or append at end of file if already exist):
(alert "Make sure to sign the paper after printing!")
(princ)
Regards,
AJSmith
1st Apr 2010, 09:35 am
ok didnt know you could do this so how do you add pop up messages to drawings?
MSasu
1st Apr 2010, 09:39 am
how do you add pop up messages to drawings?
By using an automation solution - in the above example is about AutoLISP - "acaddoc.lsp" file is the way to have it executed automatically. There are also VBA, VSTA and ARX solutions.
Try to paste first line of my code on command prompt to see the effect.
Regards,
AJSmith
1st Apr 2010, 09:58 am
ok lisp and such go straight over me head thanks anyway
MSasu
1st Apr 2010, 10:04 am
@oVeRdOsE - Have preferred ALERT instead of ACET-UI-MESSAGE since this isn’t a native AutoLISP function, but part of Express tools pack; by using it may raise an error on a workstation that doesn’t have Express installed (is optional).
Regards,
oVeRdOsE
1st Apr 2010, 02:01 pm
Wow, what a great forum! A lot of answers in less than 20 hours !
So, I did what ReMark said, I put the template on a non-printing layer. I didnt lock it, its not that important... :)
Thanks, for the Alert tips, I'll consider it for my future work.
Thanks again, this forums is thabomb, even on my car forums I cant get fast answers :shock:
MSasu
1st Apr 2010, 02:05 pm
Thanks, for the Alert tips, I'll consider it for my future work.
Thanks again, this forums is thabomb, even on my car forums I cant get fast answers :shock:
You're welcome!
You know, AutoCAD is faster than any car! It goes from 0 to 100(%) in only 3 seconds!
Regards,
Powered by vBulletin™ Version 4.1.2 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.