 |
|
Exchange Forum >
AutoCAD General
Adding commands to acad.pgp |
|
|
|
|
|
| Adding commands to acad.pgp |
#1 |
|
|
Overdrive |
 |
|
Join Date: |
|
09-20-2007 | |
I did a search in Windows to locate my acad.pgp file. It was located in the C:\Program Files\Autodesk\Acadm 2005\Acadm\ folder. I edited the file with Notepad and added a few of my own aliases just like the examples in the file, and nothing seems to be working right. For instance I wanted ST to be the STRETCH command, and it’s still the STYLE command. I made a backup copy just in case I messed it up too bad, but I don’t think I messed it up. It’s just not working. 
| |
|
| Adding commands to acad.pgp |
#2 |
|
|
CadBrowser |
 |
|
Join Date: |
|
09-25-2007 | |
Did you exit AutoCAD and then re-initialize it?
As far as I know if you change the PGP file, you have to close out of AutoCAD and re-open it in order for it to load the updated pgp file.
If I remember right the PGP file is loaded into RAM and until you close out of it, it continues to "remember" the first load.
Let us know if this works.
| |
|
| Adding commands to acad.pgp |
#3 |
|
|
Chandler |
 |
|
Join Date: |
|
09-04-2007 | |
A few things come to mind with your dilemma. Try typing (findfile “acad.pgp”) on the command line to see if it returns the same file location that you have been editing. Also the order of aliases in the acad.pgp file is very important. The last occurrence of a command alias in the acad.pgp file over-rides any previous occurrence in the file. If your are still having commands turn out to be something different than what you wanted it to, check to see if an AutoLISP function is re-defining the command alias somewhere else.
Happy computing! 
| |
|
| Adding commands to acad.pgp |
#4 |
|
|
Nugent |
 |
|
Join Date: |
|
10-05-2007 | |
Another method, besides exiting AutoCAD, is by using the REINIT command to reinitialize the acad.pgp. Your changes will not be available until you do one or the other.
| |
|
| Adding commands to acad.pgp |
#5 |
|
|
Bennett |
 |
|
Join Date: |
|
07-26-2007 | |
If your using a version later than AutoCAD 2004, the AutoCAD menu has an option of editing the acad.pgp file from the menu. This way you'll know you're editing the correct acad.pgp file. From the top menu select:
Tools, Customize, Edit Custom Files, Program Parameters (acad.pgp)
| |
|
| Adding commands to acad.pgp |
#6 |
|
|
Overdrive |
 |
|
Join Date: |
|
09-20-2007 | |
Thanks for all your help. The findfile function returned a folder deep inside C:\Documents and Settings. I appreciate the tip on the menu option also. Sometimes I get so use to doing things the same way I forget to look into newer more efficient ways.
Thanks again.
| |
|
| Adding commands to acad.pgp |
#7 |
|
|
Feel Would |
 |
|
Join Date: |
|
11-30-2007 | |
You can also type... `Aliasedit' at the command line to open your acad.pgp file....
| |
|
|
|
|
|