Visual LISP, AutoLISP and General Customization

Reply
Active Member
varcii
Posts: 6
Registered: ‎10-22-2006
Message 1 of 4 (326 Views)

getenv setenv no longer working

326 Views, 3 Replies
04-30-2012 10:24 PM

Can somebody confirm this.

 

Should SETENV/GETENV be writing/reading to and from the System Registry?

 

After installing ACAD 2013 as a trail this now seems to be the behaviour, only found it when GETENV calls started to fail. This has also affected previous versions installed on the same workstations.

 

Any help would be appreciated.

 

Tim English

*Expert Elite*
scot-65
Posts: 2,124
Registered: ‎12-11-2003
Message 2 of 4 (294 Views)

Re: getenv setenv no longer working

05-01-2012 03:48 PM in reply to: varcii

Windows 7?

This is a blanket security set by the OS.

You will need to unlock this, even if you have administrator permissions.

 

START -> Run -> REGEDIT

should bring up a security dialog box where you can make the adjustment.

If not, you are going in the right direction...

 

I have limited access to 7 and encountered this problem using

VL-REGISTRY-WRITE, but have not actually resolved this, yet.

 

???

Scot-65
Dyslexia is a permanent physical disability that cannot be seen.
Active Member
varcii
Posts: 6
Registered: ‎10-22-2006
Message 3 of 4 (291 Views)

Re: getenv setenv no longer working

05-01-2012 04:54 PM in reply to: varcii

Sorry I got my commands mixed up. I was trying to access ACAD variables using getenv instead of getvar.

I guess that happens when I spend too much time looking at these lovely lines of code.

 

More sleep required here!

*Expert Elite*
scot-65
Posts: 2,124
Registered: ‎12-11-2003
Message 4 of 4 (264 Views)

Re: getenv setenv no longer working

05-02-2012 03:29 PM in reply to: varcii

GETENV will only return a select number of values from the registry

(mostly in the <<user profile>> area).

If a registry key/subkey contains a space or a dot ".", you have to fetch

the value using VL-REGISTRY-READ.

 

???

Scot-65
Dyslexia is a permanent physical disability that cannot be seen.

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community