Delete a lisp

Delete a lisp

asherjoh
Advocate Advocate
8,552 Views
26 Replies
Message 1 of 27

Delete a lisp

asherjoh
Advocate
Advocate

I tried a recommended lisp this morning and all my duct that I drew (from Fabrication CadMep, a Autodesk add on) disappeared and it won't come back, even with a restart. And the lisp is automatically starting when I restart. Does anyone know how to delete the lisp. Initially, II created the lisp through the command line. 

0 Likes
8,553 Views
26 Replies
Replies (26)
Message 21 of 27

2001jonathon
Enthusiast
Enthusiast

I don't know about everyone here but the first thing I would do is pull up the backups of the file to recover my data, then find out what this lisp is doing to make it function the way it did.

Message 22 of 27

asherjoh
Advocate
Advocate

Command: Test

Test Select Objects in Current Drawing or Xref:

 

Command: !c:test

nil

 

Command: (setq c:test nil)

nil

 

Command: !c:test

nil

 

Command: Test

Test select Objects in Current Drawing or Xref:

 

0 Likes
Message 23 of 27

roland.r71
Collaborator
Collaborator
Aha!

The plot thickens...

 

You got yourself another "Test" function which isn't defined as c:test

The above results displays the text

 

Test select Objects in Current Drawing or Xref:

 

 

Whereas the posted 'test' lisp displays

 

Select object on reference layer: 

 

Message 24 of 27

Kent1Cooper
Consultant
Consultant

@asherjoh wrote:

Command: Test

Test Select Objects in Current Drawing or Xref:

 

....

Since that is not the prompt in the code in Post 3, it appears there's more than one definition of a TEST command involved here.

 

Could it be succeeding in calling up a TEST command even after you've wiped it out because it's an auto-loaded command?  I'm skeptical, because I would expect to see an "initializing..." message, but maybe there's a setting I don't know about that suppresses that.  Check for any (autoload) function(s) in your acaddoc.lsp file, for example, that might be allowing it to be loaded again when you call its name, rather than giving you an unknown-command message.

Kent Cooper, AIA
Message 25 of 27

roland.r71
Collaborator
Collaborator

@2001jonathon wrote:

I don't know about everyone here but the first thing I would do is pull up the backups of the file to recover my data, then find out what this lisp is doing to make it function the way it did.


Well, personally i run test's on test drawings (Copies you can, ehm "mess" up). Not the actual stuff. But, that's me ...

& yes, i do keep a backup for my 'testing environment' Smiley Wink

 

edit:

Bummer.

Just did an 'exact phrase' search, but i couldn't find anything beyond this thread, as a possible source for a lisp containing:

select Objects in Current Drawing or Xref:
0 Likes
Message 26 of 27

roland.r71
Collaborator
Collaborator

@Kent1Cooper wrote:

@asherjoh wrote:

Command: Test

Test Select Objects in Current Drawing or Xref:

 

....

Since that is not the prompt in the code in Post 3, it appears there's more than one definition of a TEST command involved here.

 

Could it be succeeding in calling up a TEST command even after you've wiped it out because it's an auto-loaded command?  I'm skeptical, because I would expect to see an "initializing..." message, but maybe there's a setting I don't know about that suppresses that.  Check for any (autoload) function(s) in your acaddoc.lsp file, for example, that might be allowing it to be loaded again when you call its name, rather than giving you an unknown-command message.


This has nothing to do with autoload.

 

The first !c:test should have reported it. It didn't.

So ... there's another Test & it ain't c:test

Message 27 of 27

asherjoh
Advocate
Advocate

That would make sense. Thanks

0 Likes