|
Great lisp:
I get this when hitting cancel in dialog box:
Code:Increment ; User warning: assignment to protected symbol: QUIT <- 1
Hmm .. I restarted CAd and now I dont .. I only get the warning when VLIDe open
In VLIDE, go to Tools --> Environment Options ... --> General Options. Then under the General tab, select either Transparent / Print message in the SETQ to protected symbols group. OK, and then Tools --> Save Settings.
It's not going to do anything bad, it's simply because I used a local variable called quit (which I shouldn't as it's already a standard function name). But due to it being declared locally the LISP only "overrides" the quit function inside the Increment command. If you don't want to have this shown at all, open the LISP in VLIDE. Move the cursor to the very beginning (Ctrl+Home), then do a search & replace (Ctrl+H). Type quit in Find what and stop in Replace with, click Replace All, OK. Press Ctrl+S (for save) and Ctrl+Alt+E (load into AutoCAD).
Last edited by irneb; 2009-05-08 at 08:53 PM. Reason: Added explanation of fix
R. Robert Bell
Design Technology Manager
Stantec
Opinions expressed are mine alone and do not reflect the views of Stantec.
OK, sorry guys ... consider myself wrapped over the knuckles . Here's the fixed code which doesn't use the quit as a local variable.
Great lisp, I tried this but it generates "Giant" numbers. I am using 2009 with annotative blocks and text.
regards
Shaun
Wlcome to AUGI & congrats on your 1st post.
Could you please give some more info? Maybe a sample of the block in question? AFAIK you should be able to set the start value. See attached screen capture.
I tried this .... it works pretty well. I just set my "support files" path to point to the DCL file and placed the lsp in my lisp location. Thanks for posting this, big time saver.