PDA

View Full Version : .pgp File Mystery



RevitNinja
2017-01-06, 03:35 PM
Hi all...have a mystery with my acad.pgp file I'm looking to solve.

I have a team of 6 people running AutoCAD 2015. We run a third-party program that interfaces with AutoCAD that has its own Ribbon Tab, keyboard shortcuts, etc. We noticed that the program (when loaded) puts its own "acad.pgp" in place by bumping the folder containing it to the top of AutoCAD's support file search path. The folder containing the personally modified .pgp file gets bumped to second slot, which (predictably) disables the user's shortcuts. I know that AutoCAD will use the first .pgp file it encounters in the support file search path, so all of this makes sense.

I saw this happen on every machine except my own. My user account privileges are no different than anyone else's, but for some reason, my personal .pgp takes precedence over the third-party app's. This is awesome and is exactly what I want to happen, but because I don't know what is causing it, I can't make it happen for the other users.

Anyone know why the .pgp file in the second slot would take precedence over the one in the first? Thanks in advance.

Tom Beauford
2017-01-06, 04:17 PM
In the shortcut for opening AutoCAD 2015 is the Start in: folder the same?
Does
(findfile "acad.pgp") return the same location?

RevitNinja
2017-01-06, 04:52 PM
Running "Findfile" shows that AutoCAD is looking at the personal .pgp in the folder that occupies the second slot.

The shortcut "Start in:" seems to be looking at the C: drive in a location called Autodesk\AutoCAD 2015\UserDataCache

rkmcswain
2017-01-06, 05:04 PM
Running "Findfile" shows that AutoCAD is looking at the personal .pgp in the folder that occupies the second slot.

The shortcut "Start in:" seems to be looking at the C: drive in a location called Autodesk\AutoCAD 2015\UserDataCache

So am I to understand that your Support File Search Path looks something like this:

1. C:\Custom_Program\Support\
2. C:\My_Personal_Stuff\
3. Normal AutoCAD stuff from here down....

....and that there is a file named "acad.pgp" in the #1 folder and the #2 folder....
....and that (findfile "Acad.pgp" returns C:\My_Personal_Stuff\ ?

RevitNinja
2017-01-06, 05:23 PM
That's correct. My personally modified pgp resides in the default AutoCAD 'Support' folder, which stays in slot #1 until the third-party app is loaded. Then it is bumped to #2 and replaced by that application's pgp. If it helps, the third-party app is Archibus.

Tom Beauford
2017-01-06, 06:55 PM
Maybe copy the "User Defined Command Aliases" from your acad.pgp file to the Archibus one and put that folder in slot #1 so you will use it all the time. What other files are in the Archibus folder?

It would probably be hard to change what Archibus is doing unless it's using a bat, scr, or ini file with the paths included.

--AuBe--
2017-01-31, 03:04 AM
I was wondering if you checked the .pgp files to see how the new aliases were added. (In the system file)
Are the aliases in the system .pgp file added to the end under 'user defined' or were they entered manually in line with the built-in aliases?