Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

writing a lisp to open Acad.PGP directliy with one command

6 REPLIES 6
SOLVED
Reply
Message 1 of 7
Anonymous
1852 Views, 6 Replies

writing a lisp to open Acad.PGP directliy with one command

hi ,

 

i want to write a lisp which opens ACAD.PGP file directly,

 

i write this command but didn't run it to open acad.pgp ,

 

i don't know where i am wrong..

 

THANKS in advance..

6 REPLIES 6
Message 2 of 7
hgasty1001
in reply to: Anonymous

Hi,

 

You need quote (double) the file name: (command "ai_editcustfile" "acad.pgp")

 

Gaston Nunez

Message 3 of 7
markruys2
in reply to: Anonymous

ALIASEDIT

Message 4 of 7
greg_battin
in reply to: Anonymous

I think that what you are looking for already exists.

On the Manage Tab > Customization panel and click the PGP button or use the command AI_EDITCUSTFILE as shown in the attached picture.

Edit PGP.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Or use the ALIAS EDIT command as was already posted...

Message 5 of 7
Dj_T_Rex2002
in reply to: Anonymous

I figured I'd put my two cents

 

(DEFUN C:PGP ()
  (startapp "notepad" "C:\\Users\\<username>\\AppData\\Roaming\\Autodesk\\AutoCAD 2014\\R19.1\\enu\\Support\\acad.pgp")

 

Message 6 of 7

A bit late but this will work also.

 

(startapp "notepad" (findfile "acad.pgp"))

 

 

Message 7 of 7
pendean
in reply to: ChitownCADman

Upgrade it to reload after editing...

(defun c:shortcuts(/ pgpfile)
(setq pgpfile (strcat "notepad " (findfile "acad.pgp")))
(setvar "re-init" 16)
(prompt "\nACAD.PGP...reinitialized. ")
(princ)
) ;end

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report