
CAD discussion forum - ask any CAD-related questions here, share your CAD knowledge on AutoCAD, Inventor, Revit and other Autodesk software with your peers from all over the world. To start a new topic, choose an appropriate forum.
Please abide by the
rules of this forum.
This is a peer-to-peer forum. The forum doesn't replace the official direct technical support provided by ARKANCE for its customers.
How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
| Author |
Topic Search Topic Options
|
John Connor
Senior Member
Joined: 01.Feb.2011
Location: United States
Using: AutoCAD 2018
Status: Offline
Points: 7175
|
Topic: Weird LISP error - after loading, I get this error Posted: 02.Feb.2011 at 22:38 |
|
The layer command was undefined after all? Who would have guessed? LOL
|
|
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."
<<AutoCAD 2015>>
|
 |
kameron1967
Groupie
Joined: 30.Jan.2011
Location: United States
Using: autocad 2018
Status: Offline
Points: 29
|
Posted: 02.Feb.2011 at 21:15 |
Thanks. That fixed it. I'm not sure why it's acting up now though because it's worked in the past before. Perhaps there is a system variable change that causes me to use this layer command format...?
|
 |
Vladimir Michl
Senior Member
Joined: 26.Jul.2007
Location: Czech Republic
Using: Autodesk software
Status: Offline
Points: 2196
|
Posted: 02.Feb.2011 at 19:53 |
Looks like the LAYER command is undefined or redefined. Try:
(command "_-layer" "_f" "*keyplan|*patt-*" "") |
or
(command ".layer" "_f" "*keyplan|*patt-*" "") |
|
|
|
 |
HAWDesigner
Senior Member
Joined: 04.Aug.2008
Location: United States
Using: AutoCAD R14, AutoCAD 2009, AutoCAD 2010
Status: Offline
Points: 310
|
Posted: 02.Feb.2011 at 19:21 |
kameron1967 wrote:
This is what I got...
Command: (command "layer" "f" "*keyplan|*patt-*" "") Unknown command "F". Press F1 for help. Unknown command "*KEYPLAN|*PATT-*". Press F1 for help. nil |
Odd. It's like it's passing right over "layer" and assuming "f" is the command. What version/flavor of AutoCAD are you using?
Edited by HAWDesigner - 02.Feb.2011 at 19:57
|
|
--
R. Williams
AutoCAD 2010 Certified Professional
<!-- If all else fails hit F1 -->
<<AutoCAD 2009
|
 |
kameron1967
Groupie
Joined: 30.Jan.2011
Location: United States
Using: autocad 2018
Status: Offline
Points: 29
|
Posted: 02.Feb.2011 at 19:19 |
HAWDesigner wrote:
Also, have you tried entering each line directly into the command line to see if you get the same error?
For instance:
Command: (command "layer" "f" "*keyplan|*patt-*" "") |
|
This is what I got...
Command: (command "layer" "f" "*keyplan|*patt-*" "") Unknown command "F". Press F1 for help. Unknown command "*KEYPLAN|*PATT-*". Press F1 for help. nil
Do you suppose the autocad utility is not being loaded..?? Like acaddoc.lsp, etc..??
Edited by kameron1967 - 02.Feb.2011 at 19:20
|
 |
kameron1967
Groupie
Joined: 30.Jan.2011
Location: United States
Using: autocad 2018
Status: Offline
Points: 29
|
Posted: 02.Feb.2011 at 19:16 |
Thanks - that was from my old days. I guess I never really noticed it.
|
 |
HAWDesigner
Senior Member
Joined: 04.Aug.2008
Location: United States
Using: AutoCAD R14, AutoCAD 2009, AutoCAD 2010
Status: Offline
Points: 310
|
Posted: 02.Feb.2011 at 19:16 |
Also, have you tried entering each line directly into the command line to see if you get the same error? For instance:
Command: (command "layer" "f" "*keyplan|*patt-*" "") |
|
|
--
R. Williams
AutoCAD 2010 Certified Professional
<!-- If all else fails hit F1 -->
<<AutoCAD 2009
|
 |
HAWDesigner
Senior Member
Joined: 04.Aug.2008
Location: United States
Using: AutoCAD R14, AutoCAD 2009, AutoCAD 2010
Status: Offline
Points: 310
|
Posted: 02.Feb.2011 at 19:08 |
|
just out of curiosity, have you tried using "-LAYER"?
|
|
--
R. Williams
AutoCAD 2010 Certified Professional
<!-- If all else fails hit F1 -->
<<AutoCAD 2009
|
 |
kameron1967
Groupie
Joined: 30.Jan.2011
Location: United States
Using: autocad 2018
Status: Offline
Points: 29
|
Posted: 02.Feb.2011 at 18:51 |
When I type in "layer" it pulls up the layer dialogue box.
It's killing me that my lisp routine is not working!!! Sorry, just a little frustrated. Hopefully someone had the same problem and could help me. 
|
 |
John Connor
Senior Member
Joined: 01.Feb.2011
Location: United States
Using: AutoCAD 2018
Status: Offline
Points: 7175
|
Posted: 02.Feb.2011 at 18:37 |
|
You didn't redefine the layer command did you?
|
|
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."
<<AutoCAD 2015>>
|
 |