How to correct/over-ride Renegade alias?

How to correct/over-ride Renegade alias?

Timothy.Fichtner
Participant Participant
2,623 Views
22 Replies
Message 1 of 23

How to correct/over-ride Renegade alias?

Timothy.Fichtner
Participant
Participant

In my acad.pgp file, 'F" invokes Fillet. Yet, when I enter 'F' on the command line, I get "Select object on layer to freeze". 

I have searched unsuccessfully to find where in the code, this other shortcut for 'F' resides. I suspect it is in one of the applications/extensions for AutoCAD Mechanical that loads on start-up. It is annoying to alter my habits for this anomaly. Any advice will be extremely well-received. Thx!

 

0 Likes
Accepted solutions (2)
2,624 Views
22 Replies
Replies (22)
Message 2 of 23

SeeMSixty7
Advisor
Advisor

There are  several locations a rogue alias could slip in.

 

Use !F at the command line and see what it returns. If it returns something like #<SUBR @000000002b706138 C:F>

 

Then yes something is overriding your shortcut defined in your acad.pgp file.

 

Use the appload command to see what is loaded. Then look through those files and find where it is getting redefined.

 

Start with ACAD.LSP, and ACADDOC.LSP and see what other files are being loaded.

 

Good luck

0 Likes
Message 3 of 23

Timothy.Fichtner
Participant
Participant
I am already sorting through the 81 Lisps that autoload..... (yes: 81..!!)
No success, yet, but you validate me by suggesting this task. Thx!

Tim Fichtner
Facilities Specialist II - CAD/Design
Tel: 717-986-5228
Mobl: 717-629-6445
Fax: 717-592-6401
MailStop: #106-019
2801 Fulling Mill Road
Middletown, PA 17057
timothy.fichtner@te.com

[TE Logob_2016]

www.te.com
0 Likes
Message 4 of 23

SeeMSixty7
Advisor
Advisor

Find yourself a good text editor. I like JEdit.

 

You can then just tell it to go find it. You could load all 81 files into the editor or just point the editor at the folder and say look in here for defun c:f

 

Good luck. Happy hunting.

0 Likes
Message 5 of 23

Timothy.Fichtner
Participant
Participant
Excellent advice. THANKS.

[cid:image001.png@01D21A6C.DD18DCF0]

Tim Fichtner
Facilities Specialist II - CAD/Design
Tel: 717-986-5228
Mobl: 717-629-6445
Fax: 717-592-6401
MailStop: #106-019
2801 Fulling Mill Road
Middletown, PA 17057
timothy.fichtner@te.com

[TE Logob_2016]

www.te.com
0 Likes
Message 6 of 23

john.uhden
Mentor
Mentor
Accepted solution

Your "F" command might be coming from something where you won't find it, like an ARX or VLX or VBA or FAS.  To combat this you might try adding this to your acaddoc.lsp file, which I think loads last...

 

(defun c:F ()
  (setvar "cmdecho" 1)
  (vl-cmdf "_.fillet")
  (while (> (getvar "cmdactive") 0)(vl-cmdf pause))
  (princ)
)

John F. Uhden

Message 7 of 23

dgorsman
Consultant
Consultant

Bad idea to blindly redefine commands, IMO.  You can get into some serious trouble that way e.g. you run into the same problem later, now you have to track down where you added the override.  Or was it an override of an override?

 

I'll make a different suggestion: this could just be the auto-complete second guessing you.  Type the alias at the command line, but do NOT add the spacebar/enter to complete.  What does AutoCAD default to as a suggestion?  Does the same problem happen if you turn off the auto-complete?

----------------------------------
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.


0 Likes
Message 8 of 23

Timothy.Fichtner
Participant
Participant
Thanks for the valiant effort.
I addended the text at the end of each of several acaddoc.lsp files....to no avail.

Entering "F" still asks me to "select object on layer to freeze"..... in spite of my acad.pgp file.

I am tempted to Undefine LAYFRZ.

Grateful for your interest,
Tim Fichtner
Facilities Specialist II - CAD/Design
Tel: 717-986-5228
Mobl: 717-629-6445
Fax: 717-592-6401
MailStop: #106-019
2801 Fulling Mill Road
Middletown, PA 17057
timothy.fichtner@te.com

[TE Logob_2016]

www.te.com
0 Likes
Message 9 of 23

Timothy.Fichtner
Participant
Participant
Dear Dgorsman,

Excellent thought, but no, while AutoComplete offers 40+ commands beginning with F, it does not presume to make my choice.
Even with AutoComplete "OFF", F still returns a LAYFRZ response.

And yes, I agree whole-heartedly with you about the hazards of Undefining commands.
It is a slippery slope for one like me, who forgets tomorrow what customizations he did yesterday.

Regards,
Tim Fichtner
Facilities Specialist II - CAD/Design
Tel: 717-986-5228
Mobl: 717-629-6445
Fax: 717-592-6401
MailStop: #106-019
2801 Fulling Mill Road
Middletown, PA 17057
timothy.fichtner@te.com

[TE Logob_2016]

www.te.com
0 Likes
Message 10 of 23

Timothy.Fichtner
Participant
Participant

Dear John,

 

Adding these lines to existing AcadDoc.lsps (I have 4 on my C:drive) did not restore the F=Fillet command,

BUT, (and I thank you, very much!)……

I saved this as a unique .lsp file, loaded and ran it after AutoCAD finished booting up and F has been restored.

 

I owe you a dark chocolate covered cordial cherry.

 

Gratefully,

Tim Fichtner

0 Likes
Message 11 of 23

Timothy.Fichtner
Participant
Participant

Dear John, Adding these lines to existing AcadDoc.lsps (I have 4 on my C:drive) did not restore the F=Fillet command, BUT, (and I thank you, very much!)…

I saved this as a unique .lsp file, loaded and ran it after AutoCAD finished booting up and 'F=Fillet' has been restored. I owe you a dark chocolate covered cordial cherry. Gratefully, Tim Fichtner

 

0 Likes
Message 12 of 23

john.uhden
Mentor
Mentor
I guess that acaddoc.lsp is NOT loaded last.
Might there be another acad.pgp file somewhere?
At the command prompt enter
(findfile "acad,pgp")
and see if it returns the same path as you expect.
My last suggestion is to get used to typing "FILLET" each time, or maybe change your alias to "FI" and get used to that, but don't do anything "blindly." Keep your eyes open.

John F. Uhden

0 Likes
Message 13 of 23

john.uhden
Mentor
Mentor
You can skip the chocolate and cherry, but if I'm ever in Middletown, PA you can treat me to the cordial. Or if you're ever near Sea Girt, NJ you can take me to The Parker House.

John F. Uhden

0 Likes
Message 14 of 23

Timothy.Fichtner
Participant
Participant

Yes, sometime ago I had added FT as an alias for Fillet,

but it just torques me when something simple and elegant like an alias in the PGP file is over-ridden.

John's lsp file does the trick for me, quite well....

I can still wonder where the roque redefinition is, but it no longer affects my efficiency.

Thanks all, for your collective interest.

Regards, Tim

0 Likes
Message 15 of 23

SeeMSixty7
Advisor
Advisor
A couple of other thoughts to consider.
AutoCAD has unique ACADDOCXXXX.LSP files that it loads for each version of AutoCAD (I.e ACADDOC2016.LSP for AutoCAD 2016. We are not supposed to change those, as Autodesk uses that for version specific stuff, but someone may have done so.

Another thing to consider is MNL files that load with your customized menus. It would be easy enough to hide it in there too.

0 Likes
Message 16 of 23

Timothy.Fichtner
Participant
Participant
Yes, I have checked all of my various flavors of AcadDoc.####.lsp files....nada.
However, I have not yet delved into the customized menu files.......Next week, fer sure.
Thx,
Tim Fichtner
0 Likes
Message 17 of 23

Shneuph
Collaborator
Collaborator
I had an odd problem with unexpected alias behavior recently and discovered 'synonyms'. Can't hurt to check yours for something causing your F issue. Ribbon>manage>customization>edit alias' pulldown>edit synonym list
---sig---------------------------------------
'(83 104 110 101 117 112 104 64 71 109 97 105 108 46 99 111 109)
0 Likes
Message 18 of 23

Timothy.Fichtner
Participant
Participant
Dear Shneuph,

Yes, thanks. My acad.pgp file of synonyms correctly defines "F" to invoke "Fillet".
My problem is with a subsequent application, add-on or lisp routine
that over-rides "F" to invoke "LayerFreeze", instead.
IMHO, it is not an AutoComplete issue, because it occurs even when AutoComplete is disabled.
I have 2 options:
A. use another alias for Fillet (FF or FT) - or -
B. run another, final lisp which restores F to invoke Fillet.

Not a Happy Camper............Yet,
Tim Fichtner
Facilities Specialist II - CAD/Design
Tel: 717-986-5228
Mobl: 717-629-6445
Fax: 717-592-6401
MailStop: #106-019
2801 Fulling Mill Road
Middletown, PA 17057
timothy.fichtner@te.com

[TE Logob_2016]

www.te.com
0 Likes
Message 19 of 23

Shneuph
Collaborator
Collaborator

The one I'm referring to is a separate file from acad.pgp.

 

Synonyms.png

---sig---------------------------------------
'(83 104 110 101 117 112 104 64 71 109 97 105 108 46 99 111 109)
0 Likes
Message 20 of 23

Timothy.Fichtner
Participant
Participant
Dear Shneuph,

Thanks again for the second reference to Synonyms.
I understood that the Synonym function was added in 2014.
I am using AutoCAD Mechanical 2013, where to my knowledge,
the acad.pgp file is the only repository for aliases/synonym commands, shy of
editing the CUI Keyboard Shortcuts, for LAYFRZ or Fillet.


[cid:image002.png@01D21E2D.087A2570]

Tim Fichtner
Facilities Specialist II - CAD/Design
Tel: 717-986-5228
Mobl: 717-629-6445
Fax: 717-592-6401
MailStop: #106-019
2801 Fulling Mill Road
Middletown, PA 17057
timothy.fichtner@te.com

[TE Logob_2016]

www.te.com
0 Likes