• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    AutoCAD 2010/2011/2012 DWG Format

    Reply
    Mentor
    BrentBurgess1980
    Posts: 157
    Registered: ‎06-16-2008

    Default Support File Search Paths

    200 Views, 8 Replies
    02-10-2013 11:23 PM

    Hi All,

     

    This may seem like a silly question, but when you start autocad for the first time, it creates a profile with the default support file search paths. Where does AutoCAD get this from?

     

    I want to use this for a tool I am creating.

     

    Thanks

    Please use plain text.
    Distinguished Mentor
    Moshe-A
    Posts: 679
    Registered: ‎09-14-2003

    Re: Default Support File Search Paths

    02-11-2013 08:05 AM in reply to: BrentBurgess1980

    Brent,

     

    Command: setvar acadprefix

     

    will give you the support file search path (it was written to registry when you install AutoCAD)

    clearify what do you mean by tool?

     

    Moshe

     

    Please use plain text.
    Mentor
    BrentBurgess1980
    Posts: 157
    Registered: ‎06-16-2008

    Re: Default Support File Search Paths

    02-11-2013 02:12 PM in reply to: BrentBurgess1980
    The tool has our support paths stored in an XML file that can be used across multiple versions. I thought it would be something very basic like that. I'll give it a crack when I get to work.

    Thanks!
    Please use plain text.
    Mentor
    BrentBurgess1980
    Posts: 157
    Registered: ‎06-16-2008

    Re: Default Support File Search Paths

    02-11-2013 04:34 PM in reply to: BrentBurgess1980

    Thats the one I am looking for. Do you know how to access the initial value of that?

    Please use plain text.
    Distinguished Mentor
    Moshe-A
    Posts: 679
    Registered: ‎09-14-2003

    Re: Default Support File Search Paths

    02-11-2013 10:01 PM in reply to: BrentBurgess1980

    ACADPREFIX contains the initial value plus the paths the user add since the install

     

    Please use plain text.
    Mentor
    BrentBurgess1980
    Posts: 157
    Registered: ‎06-16-2008

    Re: Default Support File Search Paths

    02-11-2013 10:17 PM in reply to: Moshe-A

    Is the initial value stored anywhere (ie in the registry)?

    Please use plain text.
    Mentor
    BrentBurgess1980
    Posts: 157
    Registered: ‎06-16-2008

    Re: Default Support File Search Paths

    02-11-2013 10:18 PM in reply to: Moshe-A

    The only reason I ask is that I need to be able to access it programatically

    Please use plain text.
    *Expert Elite*
    dgorsman
    Posts: 3,292
    Registered: ‎10-12-2006

    Re: Default Support File Search Paths

    02-12-2013 07:45 AM in reply to: BrentBurgess1980

    I believe the initial paths are partially hard-coded, using some of the installation information as the starting point for the drive and first few folders.  You might be able to pull some of this information out of the registry, but it would be just as easy to hard-code it yourself in the registry or a data file rather than re-calculate it every time.

    ----------------------------------
    If you are going to fly by the seat of your pants, expect friction burns.
    Adopt. Adapt. Overcome. Or be overcome.


    Please use plain text.
    Distinguished Mentor
    Moshe-A
    Posts: 679
    Registered: ‎09-14-2003

    Re: Default Support File Search Paths

    02-12-2013 09:36 AM in reply to: BrentBurgess1980

    here it is:-

     

    HKCU\Software\Autodesk\AutoCAD\R1XX.X\ACAD-XXXX:XXX\Profiles\Your Default Profile\General\ACAD

     

    where XXXX it is version dependet

    in key "Profiles" you should read the (Default) key and have Your Default Profile

    and key ACAD contains what you are after.

     

     

    Moshe

     

     

     

    Please use plain text.