Creating a CFG file in Acad2005 Folder

Discussion in 'AutoCAD' started by Jim Dee, Sep 27, 2004.

  1. Jim Dee

    Jim Dee Guest

    All,

    I have a VBA program that creates a CFG file in the "AcadApplication.Path"
    folder to store my settings. With earlier releases of AutoCAD this worked
    great, however in AutoCAD 2005 the file is not created for some reason.
    It's like the folder is write protected.

    This is a good place for me to create my CFG file, because I can always
    count on the folder being there.

    Anyone know why or have a similar problem?

    Thank you,

    Jim Dee
     
    Jim Dee, Sep 27, 2004
    #1
  2. AutoCAD has paths all over the place these days. You might consider one
    of the paths inside the user's Application Data folder.
     
    Frank Oquendo, Sep 27, 2004
    #2
  3. Jim Dee

    Jim Dee Guest

    Frank,

    Thank you for the suggestion! Do you know how to retrieve this path in VBA?
    I guess this would be the "Data Source Location"?

    Thank again,

    Jim Dee
     
    Jim Dee, Sep 27, 2004
    #3
  4. Jim Dee

    Tim Riley Guest

    "C:\Documents and Settings\%USERNAME%\Application Data\Autodesk\AutoCAD
    2005\R16.1\enu\Config.cfg"

    Windows should resolve the username.

    ~Tim Riley

     
    Tim Riley, Sep 27, 2004
    #4
  5. Jim Dee

    Dan Elkins Guest

    I'd recommend %USERPROFILE%\App....

    The users profile directory varies and is not always the users name. For
    example, for some users you will see username.DOMAIN. It will also cover
    you just incase someone has decided to modify the path of Documents and
    Settings.

    -Dan
     
    Dan Elkins, Oct 1, 2004
    #5
  6. Starting with 2005, the user no longer requires poweruser rights so it
    sounds like your users have rights below this, which makes writing to
    folders outside of their app paths impossible. An alternative to those
    answers already given is to pop it on the network somewhere

    -- Mike
    ___________________________
    Mike Tuersley
    CADalyst's CAD Clinic
    Rand IMAGINiT Technologies
    ___________________________
    the trick is to realize that there is no spoon...
     
    Mike Tuersley, Oct 1, 2004
    #6
  7. Jim Dee

    Jim Dee Guest

    Thank you all for your help.

    Jim Dee
     
    Jim Dee, Oct 1, 2004
    #7
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.