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

command alias' transfer?

4 REPLIES 4
Reply
Message 1 of 5
randyspear6624
379 Views, 4 Replies

command alias' transfer?

Could somebody outline the most efficient way to transfer my custom pgp commands?

I'm constantly moving between different computers and autodesk versions.

I used to just be able to overwrite the acad.pgp file in the support directory but this doesn't seem to work in the newer versions and I'm hesitant to continue like that in case their are new commands introduced in newer versions that I don't know about then they'd be overwriten.

 

Is there anyway to include my command overrides (eg. c=copy) in my back up cui file?

4 REPLIES 4
Message 2 of 5
hmsilva
in reply to: randyspear6624

randy

 

for me the simplest way to always have my command is,
 create a file,mylisp.lsp, for example:

 

(DEFUN C:C   () (COMMAND "COPY" "au")
(PRINC)
)

 

(DEFUN C:BP  () (COMMAND "BPOLY")
(PRINC)
)

 

and so on...

 

 

You just have to load it, your alias will overwrite pgp alias...

 

Cheers

Henrique



EESignature

Message 3 of 5
dgorsman
in reply to: randyspear6624

Rather than overwriting the entire PGP file, just copy-paste the contents after the "Do not modify above this section" remark in the file.  Last one in file wins so you don't have to worry about the content above what you add.  If you do this frequently just keep a text file that only contains the lines you need to append.  Thats likely much easier than carting around CUIx files between potentially different versions/flavors which has its own problems.

----------------------------------
If you are going to fly by the seat of your pants, expect friction burns.
"I don't know" is the beginning of knowledge, not the end.


Message 4 of 5
randyspear6624
in reply to: dgorsman

Thanks guys, I think I prefer Henrique's method because I'll only have to do it once and add it to my startup apps. Opposed to modifying the pgp file for every version.

 

Take care,

Message 5 of 5
hmsilva
in reply to: randyspear6624

You're welcome, randy

EESignature

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

Post to forums  

Autodesk Design & Make Report

”Boost