TheSwamp
CAD Forums => CAD General => Topic started by: gisdude on November 16, 2018, 11:40:45 AM
-
Hi all,
The last day I noticed my LIST command is not LISTING. I type LI and "DS> Highlight Selected Layers <Yes>/No:". I will pick a line or block and it TURNS OFF the layer. WTF? I don't get it.
I looked in the .pgp file and LI does point to LIST. Weird.
Many thank for any help,
-
Did you try .list?
-
Well, that works!
So, this begs my question, how to I change that .LIST to just plain old "LI"?
-
Hi all,
The last day I noticed my LIST command is not LISTING. I type LI and "DS> Highlight Selected Layers <Yes>/No:". I will pick a line or block and it TURNS OFF the layer. WTF? I don't get it.
I looked in the .pgp file and LI does point to LIST. Weird.
Many thank for any help,
A more important question is, does something else point to LI later in the pgp file?
-
Well, that works!
So, this begs my question, how to I change that .LIST to just plain old "LI"?
Make sure your PGP has this in it:
LI, *LIST
Also check that there isn't another LI definition later in the file as it will override the previous.
-
I looked for LI in another instance, but no go.
I attached a copy if anyone is interested. Really kind of mystifying...
-
Try !LI and !LIST at the command line. If either has been redefined it takes precedence over any PGP shortcut.
-
So, this is REALLY weird.
I tried "!LIST" AND THIS IS WHAT I GET: "#<SUBR @0000021a92c84d48 LIST>
Seriously?!!
When I do "!LI", it just comes up "nil"
hmmm...
-
What happens when you try the following commmands ??
LIST
LI
LS
If LIST and LS work
and LI does not, I'd suggest that the LI command has been defined elsewhere.
The prompt you get about
Highlight Selected Layers <Yes>/No:
Do you recall seeing this elsewhere ??
note
The ! prefix does not evaluate command aliases from the .PGP file.
That is why the !LI is returning nil.
-
@kdub,
LIST - works fine.
LI - "DS>Highligh Selected Layers <Yes/No:" This does not happen for other commands.
LS - "Unhandled exception has occurred in a component in your application. If you click Continue, the application will ignore this error and attempt to continue. eInvalidLayer."
The LS error has a long and detailed error description. Oy vey.
I am using "aliasedit" to edit the .pgp file. I deleted "LI" and "LS", but LIST command still works. Also, LIST is not shown in the aliasedit.
Thx for any help
-
LIST is a built in AutoCAD command, not an alias command ... in fact, in your posted PGP file both LI and LS were defined to use the built in LIST command.
Now that you've deleted the alias definitions from the PGP what happens when you try the LI and LS at the command line ??
( this will test if the names are defined elsewhere )
-
Yeah, you're right. I type LI or LS and the ""DS>Highligh Selected Layers <Yes/No:" prompt comes up.
So...I guess there is another location for the .pgp file that my autocad install is pointing to?
-
Yeah, you're right. I type LI or LS and the ""DS>Highligh Selected Layers <Yes/No:" prompt comes up.
So...I guess there is another location for the .pgp file that my autocad install is pointing to?
Sounds like you have a lisp routine loaded, do a search of your loaded routines for their commands.
-
What does this return
(findfile "ACAD.PGP")
That will be the one Autocad is loading.
//-----------------
As several of us have suggested : The most obvious cause is that LI and LS are functions defined elsewhere your code ... I'd say it's something you have recently started to use . ( either your own or something borrowed. )
-
^ THIS
This is why I tend to harp on about using verbose command names for customization work.
One of our legacy systems has a command as (defun C:A ( / ) ...). :tickedoff: Try telling the users they cannot use a simple "A" as a PGP alias. :x
-
Dollars to Donuts you have some Toolpac software from Dotsoft running. The clue is the "DS>" in the promopt. Terry's pretty good about tagging his stuff that way.