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

Acad.pgp alias not working

16 REPLIES 16
SOLVED
Reply
Message 1 of 17
Lineabove
1157 Views, 16 Replies

Acad.pgp alias not working

In my acad.pgp I have the line:

X,         *EXPLODE

 

However, when I type X to start the EXPLODE command nothing happens.

Command: X

Command:
Command:

 

 

I have NO idea why.

Is anybody able to suggest why ?

 

16 REPLIES 16
Message 2 of 17
pbejse
in reply to: Lineabove

did you try REINIT?

Message 3 of 17
Lineabove
in reply to: pbejse

Yes I did,

 

Also

1. Changed the pgp file directly.

2. Used Express Tools Alias Editor

3. Edit pgp under the Manage Tab.

 

Using AutoCAD 2012.

 

 

Message 4 of 17
pbejse
in reply to: Lineabove

Only for explode and everything else works fine?

 

Message 5 of 17
Lineabove
in reply to: pbejse

I would say the X does not work.

 

Explode works OK from the command line.

 

If I use XP as the alias for Explode it will work.

If I use X as the alias it will not work.

 

There has to be something about the X which I do not know and I wish to understand why.

 

 

Message 6 of 17
pbejse
in reply to: Lineabove

I see, dont have autocad with me right now. perhaps a pre-loaded lisp program. lisp supersedes PGP alias command

 

or have you tied reloading the menus? Oh well. only thing i could do right now is guess  Smiley Very Happy

 

sorry i cant be of more help Lineabove

 

 

 

 

 

Message 7 of 17
Lineabove
in reply to: pbejse

Well, I thank you for you suggestions.

 

If I can figure it out I will post.

 

It is one of those "nagging: things that keeps you up at night.

 

Ther must be something about the X.

I just do not know what.

 

Is there a way where I can determine what alias (ie: X) is being used by what lisp

Or even if it is a shortcut key used by windows?

 

Message 8 of 17
pbejse
in reply to: Lineabove

 

(defun LC (cmd)
(foreach i (atoms-family 1)
  (if (EQ (strcase cmd) I)
    	(print (strcat "Lisp Command found: " i)))
  )
)

 Run this  on your command prompt

 

(LC "C:X")

 

if its a lisp command  it will show the message

"Lisp Command Found: C:X"

 

 

Message 9 of 17
Lineabove
in reply to: pbejse

pbejse, I tried your suggestion which returned this result.

"Lisp Command found: C:X" nil

So I can rule out a lisp function.

 

I will start looking at Windows shortcuts and contine my quest.

 

 

Your lisp file was very helpful.

Thank you.

Message 10 of 17
j.aaij
in reply to: Lineabove

Can you attach the Acad.pgp

The one you find with:

(command "_.AI_EDITCUSTFILE" "acad.pgp")

 

Jan.

Message 11 of 17
pbejse
in reply to: Lineabove

i made a code error my friend

 

add (princ) before the last ")"

 

It is indeed a lisp file, the message wont appear if its not.

 

 

Message 12 of 17
Lineabove
in reply to: j.aaij

Please rename the attached acad.txt to acad.pgp

 

Required to do this as "pgp" was not a permitted attachment type.

 

 

 

 

Message 13 of 17
Lineabove
in reply to: j.aaij

Please rename the attached acad.txt to acac.pgp

 

The file extension of pgp is not a permitted extension for an attachment.

 

Message 14 of 17
Lineabove
in reply to: pbejse

This is interesting.

 

I added the (princ)

This is what I now see when I run.

"Lisp Command found: C:X"

 

This tells me that there is a Lisp with the name X - correct?

(Or is this referring to the alias command?)

 

Is it possible to actually list the lisp file on screen?

 

Message 15 of 17
j.aaij
in reply to: Lineabove

When I put your Acad.pgp in my support and REINIT the PGP file, then X starts EXPLODE.Smiley Surprised

 

On my computer (LC "C:X")

gives:

 

On my computer (LC "X")
gives:

 

But, when I load piston.lsp with the command PISTON I get:

(LC "C:PISTON") -> "Lisp Command found: C:PISTON"

(LC "PISTON")    ->

 

You can use FunctionList from Lee Mac for investigation!

http://forums.autodesk.com/t5/forums/forumtopicprintpage/board-id/130/message-id/298708/print-single...

 

Jan.

Message 16 of 17
Lineabove
in reply to: j.aaij

Thankyou j.aaij

I can confirm (twice now) that I do have a function C;X by using FunctionList from Lee Mac.

 

All I need to do is go through my lisp which load when I start and figure out where C:X is coming from (and what it is supposed to do and then rename it)

Message 17 of 17
Lineabove
in reply to: Lineabove

Eureka !!!

 

Thank you both j. aaij and pbejse for your assistance.

I found the issue.

 

I had a lisp loading at Startup which contained a global function C:X

 

I found it by downloading "UltraFileSearch" and scanning my Lisp folder for the text C:X

After finding, I renamed and BINGO... I now have the alias X = Explode.

 

 

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

Post to forums  

Autodesk Design & Make Report

”Boost