Visual LISP, AutoLISP and General Customization

Visual LISP, AutoLISP and General Customization

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

getenv setenv no longer working

332 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,152
Registered: ‎12-11-2003
Message 2 of 4 (300 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.
Introverts is proof that there is indeed intelligent life on this planet.
Active Member
varcii
Posts: 6
Registered: ‎10-22-2006
Message 3 of 4 (297 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,152
Registered: ‎12-11-2003
Message 4 of 4 (270 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.
Introverts is proof that there is indeed intelligent life on this planet.
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 or visit the Installation and Licensing Forum to get help installing your software.