AutoCAD puts support files (i.e. acad.pgp) in the Users/username/... folder. My program searches for the acad.pgp and other support files to update. How can I easily locate this directory?
There are a couple of means available to retrieve this path. One is to get the value from the Registry. It is stored in the RoamableRootFolder key in this location:
You could use the value of CurVer key in this location
HKEY_CURRENT_USER\Software\Autodesk\AutoCAD\<Release> To first get the CurVer to get the correct location for different AutoCAD based products.
Another approach would be to use the sysvar roamablerootprefix. Which will also return this path.