In AutoCAD 2012 (I use C3D) whenever any of my autolisp routines include (SETVAR "TEXTSIZE" <value>) it always causes a silent regen when it gets evaluated. The only reason I know it is a regen is because when I ESC out of the uncharacteristically long pause in my routine I get the error message "Regen cancelled" I specifically passed only that snippet of code to the command line... long pause... ESC.. "Regen cancelled" just to confirm that this setvar alone is responsible for the REGEN.
I always force REGENAUTO off on my workstation. I double checked and it is off both before and after this unasked for REGEN.
Does anyone know how to prevent this silent REGEN and still set the system variable "TEXTSIZE" to what I need it to be?
Microsoft Windows XP Pro x64 Service Pack 2
Intel Xeon X5460 Quad Core 3.16GHz
8 GB Ram
Nvidia Quadro FX 4600
and some regens still take far too much time, especially if they are not needed.
Hey you!
Nice to see you here again. I'm having exactly the same problem! Did you ever get any answer? LOLOLOLOL
(I talk to myself all of the time. I had completely forgotten what I knew about this problem. It took some time for me to track it to (SETVAR "TEXTSIZE") again.)
Hi hencoop/coopdetat
Untested
(vla-SetVariable (vla-get-activedocument (vlax-get-acad-object)) "TEXTSIZE" 1.0)
Hope this helps,
Henrique
Henrique,
Thank you very much. I tested it and it still causes a silent regen BUT! it is a bit faster than the (SETVAR ...) call.
I think I will use this form for all of my (SETVAR ...) calls from now on. TYVM!