• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Visual LISP, AutoLISP and General Customization

    Reply
    Active Member
    Posts: 6
    Registered: ‎10-22-2006

    getenv setenv no longer working

    236 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

    Please use plain text.
    *Pro
    scot-65
    Posts: 1,927
    Registered: ‎12-11-2003

    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.

     

    ???

    Please use plain text.
    Active Member
    Posts: 6
    Registered: ‎10-22-2006

    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!

    Please use plain text.
    *Pro
    scot-65
    Posts: 1,927
    Registered: ‎12-11-2003

    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.

     

    ???

    Please use plain text.