Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

(SETVAR "TEXTSIZE" <value>) causes a silent regen

4 REPLIES 4
Reply
Message 1 of 5
coopdetat
655 Views, 4 Replies

(SETVAR "TEXTSIZE" <value>) causes a silent regen

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.

---------------------------------------------Signature--------------------------------------------
Civil Design Professional Since 1983 (Intergraph), AutoCAD since 1989

Windows 10 Pro 64-bit Intel﴾R﴿ Core﴾TM﴿ i9-12900KF CPU 3.19GHz; 32 GB DDR4 4266 Dual Channel RAM
nVidia Quadro RTX 4000; AutoCAD Civil 3D 2023.2.1 Update
4 REPLIES 4
Message 2 of 5
hencoop
in reply to: coopdetat

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.)

AutoCAD User since 1989. Civil Engineering Professional since 1983
Product Ver.: 13.6.1781.0 Civil 3D 2024.3 Update
Built On:        U.152.0.0 AutoCAD 2024.1.2
                        27.0.37.14 Autodesk AutoCAD Map 3D 2024.0.1
                        8.6.52.0 AutoCAD Architecture 2024
Message 3 of 5
hmsilva
in reply to: hencoop

Hi hencoop/coopdetat

 

Untested

 

(vla-SetVariable (vla-get-activedocument (vlax-get-acad-object)) "TEXTSIZE" 1.0)

Hope this helps,
Henrique

 

EESignature

Message 4 of 5
hencoop
in reply to: hmsilva

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!

AutoCAD User since 1989. Civil Engineering Professional since 1983
Product Ver.: 13.6.1781.0 Civil 3D 2024.3 Update
Built On:        U.152.0.0 AutoCAD 2024.1.2
                        27.0.37.14 Autodesk AutoCAD Map 3D 2024.0.1
                        8.6.52.0 AutoCAD Architecture 2024
Message 5 of 5
hmsilva
in reply to: hencoop

You're welcome, hencoop!
Glad I could help

Henrique

EESignature

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost