Current Profile folder

Discussion in 'AutoCAD' started by Reid M. Addis, Dec 15, 2004.

  1. I need a function to find the path of where my profile.aws file is stored.
    If I use the (getvar "acadprefix") function, I get:

    "J:\\CAD\\ADT2005\\Support\\;J:\\CAD\\ADT2005\\Support\\pats;J:\\CAD\\ADT200
    5\\Fonts;C:\\Documents and Settings\\addis.GRANARYASSOC\\Application
    Data\\Autodesk\\ADT 2005\\enu\\Support;C:\\Program Files\\Autodesk
    Architectural Desktop 2005\\Support;C:\\Program Files\\Autodesk
    Architectural Desktop 2005\\Help;C:\\Program Files\\Autodesk Architectural
    Desktop 2005\\Express;C:\\Program Files\\Autodesk Architectural Desktop
    2005\\Support\\Color;J:\\CAD\\ADT2005\\Kcs_Adt5;J:\\CAD\\ADT2005\\Drv;C:\\Pr
    ogram Files\\Autodesk Architectural Desktop
    2005\\drv;C:\\PROGRA~1\\AU8EC4~1\\drv;"

    What I need is the 3rd item in the list:
    C:\\Documents and Settings\\addis.GRANARYASSOC\\Application
    Data\\Autodesk\\ADT 2005\\enu\\Support

    to which I could strcat \\\Profiles\\gaadt-2005\\profile.aws

    Anyone know how to do this?

    --
    Regards,
    ---------------
    Reid M. Addis
    Registered Architect
    Architectural Applications Specialist
    Granary Associates
    411 North 20th Street
    Philadelphia, PA 19130
    Ph. 215-665-7056
    email:
     
    Reid M. Addis, Dec 15, 2004
    #1
  2. Never mind.
    I think I found a better solution:

    (setq user (getenv "UserProfile"))
    (setq ProfilePath (strcat user "\\Application
    Data\\Autodesk\\ADT2005\\enu\\Support\\Profiles\\gaadt-2005\\Profile.aws"))

    --
    Regards,
    ---------------
    Reid M. Addis
    Registered Architect
    Architectural Applications Specialist
    Granary Associates
    411 North 20th Street
    Philadelphia, PA 19130
    Ph. 215-665-7056
    email:
     
    Reid M. Addis, Dec 15, 2004
    #2
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.