%Folder% variables

Discussion in 'AutoCAD' started by John, Jun 18, 2004.

  1. John

    John Guest

    Hello all,
    What would be the best way to retrieve the values for the various %%
    variables in lisp:
    %LocalRootFolder%
    %RoamableRootFolder%

    Thanks
    John
     
    John, Jun 18, 2004
    #1
  2. John

    Matt W Guest

    I don't know if there is a variable for those, but I *do* know that they
    exist in the system registry.
    You could read the registry and get the values.

    For LDT4 they're located here...
    Check under My
    Computer\HKEY_USERS\.Default\Software\Autodesk\AutoCAD\R16.0\ACAD-208:409\Lo
    calRootFolder
    Check under My
    Computer\HKEY_USERS\.Default\Software\Autodesk\AutoCAD\R16.0\ACAD-208:409\Ro
    amableRootFolder

    --
    Matt W

    The difference between genius and stupidity is that genius has its limits.
    "John burnsmcd dotcom>" <jherrman <at> wrote in message
    | Hello all,
    | What would be the best way to retrieve the values for the various %%
    | variables in lisp:
    | %LocalRootFolder%
    | %RoamableRootFolder%
    |
    | Thanks
    | John
     
    Matt W, Jun 18, 2004
    #2
  3. John

    zeha Guest

    if this is a variable like windir, userprofile

    (getenv "LocalRootFolder")
     
    zeha, Jun 18, 2004
    #3
  4. John

    John Guest

    The regstring would work ok, but I would need to build logic for each
    application we have and adjust as needed. My thought process was
    since the profile in/out and the installer use and resolve these values
    there would be means us as well.

    John
    I don't know if there is a variable for those, but I *do* know that they
    exist in the system registry.
    You could read the registry and get the values.

    For LDT4 they're located here...
    Check under My
    Computer\HKEY_USERS\.Default\Software\Autodesk\AutoCAD\R16.0\ACAD-208:409\Lo

    calRootFolder
    Check under My
    Computer\HKEY_USERS\.Default\Software\Autodesk\AutoCAD\R16.0\ACAD-208:409\Ro

    amableRootFolder

    --
    Matt W

    The difference between genius and stupidity is that genius has its limits.
    "John burnsmcd dotcom>" <jherrman <at> wrote in message
    | Hello all,
    | What would be the best way to retrieve the values for the various %%
    | variables in lisp:
    | %LocalRootFolder%
    | %RoamableRootFolder%
    |
    | Thanks
    | John
     
    John, Jun 18, 2004
    #4
  5. John

    John Guest

    After a bit more digging I found that AutoCAD has its own system variables
    defined for:

    %RoamableRootFolder% = ROAMABLEROOTPREFIX
    %LocalRootFolder% = LOCALROOTPREFIX

    John
    Hello all,
    What would be the best way to retrieve the values for the various %%
    variables in lisp:
    %LocalRootFolder%
    %RoamableRootFolder%

    Thanks
    John
     
    John, Jun 18, 2004
    #5
  6. John

    John Guest

    FYI
    Here is how I was able to reproduce the profile variable paths is vlisp:

    %RoamableRootFolder% (getvar "ROAMABLEROOTPREFIX")
    %LocalRootFolder% (getvar "LOCALROOTPREFIX")
    %InstallFolder% (vl-registry-read (strcat "HKEY_LOCAL_MACHINE\\"
    (vlax-product-key)) "ACADLOCATION")
    %UserProfileFolder% (getenv "userprofile")
    %TempFolder% (getenv "temp")

    John
     
    John, Jun 18, 2004
    #6
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.