BFIND LISP not working. ** Error: Automation Error. Description was not provided. **

BFIND LISP not working. ** Error: Automation Error. Description was not provided. **

mcrossley8MJ5B
Participant Participant
1,723 Views
8 Replies
Message 1 of 9

BFIND LISP not working. ** Error: Automation Error. Description was not provided. **

mcrossley8MJ5B
Participant
Participant

Recently I have updated to CAD2024 and been making use of LISPs, however, one of the most useful LISps I used at my last company (which was on full CAD, not LT) was BFIND by Lee Mac, this doesn't work at all for me now though and I get an error "** Error: Automation Error. Description was not provided. **"

 

Has anyone come across this error before? I am unsure how these work but could it be because I am using LT?

0 Likes
Accepted solutions (2)
1,724 Views
8 Replies
Replies (8)
Message 2 of 9

cadffm
Consultant
Consultant
Accepted solution
Hi,
 
 
>>"Recently I have updated to CAD2024"
 
Ther is no Autodesk program "cad2024", you mean LT2024 or AutoCAD LT 2024" ? okay
 
 
>>", this doesn't work at all for me now though and I get an error "** Error: Automation Error. Description was not provided. **"

>>"Has anyone come across this error before?"

Everyone who tries the same.

 

>>"I am unsure how these work but could it be because I am using LT?"

Yes it is.

Lisp is new in LT and it doesn't provide 100% of all Lispfunctions, just 99.9% of them.

Because of this, nobody coded an "LT-Version" and if one or more of

the 0.1% functions are in use, it won't work in LT.

 

For you:

If you have a readable source lsp file (as you have in case of bfind),

check the code of vlax-create-object or vlax-get-create-object,

these both are the most used functions of the 0.1% not supported functions in LT

 

For Users with programming skills:

To use Bfind in LT, you have to edit/replace the popup function - what is simple,

and the part to store the settings&value globally *REX*,

because you need to get rid of the vlax-create-object - what needs more time, or you get

a ready programmed sub function for this task.

 

 
 

 

 

Sebastian

0 Likes
Message 3 of 9

pendean
Community Legend
Community Legend
Accepted solution

@mcrossley8MJ5B wrote:

Recently I have updated to CAD2024 and been making use of LISPs, however, one of the most useful LISps I used at my last company (which was on full CAD, not LT) was BFIND by Lee Mac, this doesn't work at all for me now though and I get an error "** Error: Automation Error. Description was not provided. **"

 

Has anyone come across this error before? I am unsure how these work but could it be because I am using LT?


LT remains handicapped, LISP in LT2024 is limited and not full-on free-for-all

pendean_0-1691585428108.png

 

 

If you need for every LISP out there in the universe to work, you need to subscribe to a CAD package other than AutoCADLT.

0 Likes
Message 4 of 9

mcrossley8MJ5B
Participant
Participant

Ah, then it is LT that is  the problem. Thanks for clearing this up.

It is a shame but not too much of a big deal at my current company. Thanks for the reply.

0 Likes
Message 5 of 9

mcrossley8MJ5B
Participant
Participant

Thanks for the reply, unfortunately I have no coding skill so will have to do without, or maybe try a plugin.

 

Thank you for the information though. 

0 Likes
Message 6 of 9

lschuhWQKEV
Observer
Observer

Hi. I am having the same problem as OP. I found "vlax-get-create-object" but I'm not sure what to replace it with. I am not a (very good) programmer and this is my first introduction to LISP. I am also very new to Autocad.

0 Likes
Message 7 of 9

pendean
Community Legend
Community Legend
@lschuhWQKEV LT2024 cannot run that code, Autodesk decided that limitation. Sorry. You'll need to find a different LISP that has similar abilities, if it could be replaced easily someone would have tackled it by now.
0 Likes
Message 8 of 9

lschuhWQKEV
Observer
Observer

Okay, thank you. I figured it wouldn't hurt to ask. 

Message 9 of 9

cadffm
Consultant
Consultant

Hi,

 

>>" this is my first introduction to LISP"

Your welcome, but this not the perfect task to start with 😄

 

The easy part, the popup, how to change:

cadffm_0-1697843012536.png

 

but the bigger part is to replace the RegExp/RegularExpression part.

You need a similar function, without using vlax-create-object "VBScript.RegExp".

Still trying to edit the lisp on your own?

Search for "search and replace" userdefined lisp functions (without VBscript).

 

 

EDIT: GetInterfaceObject is also used and not supported in LT !

As I said, it is not the perfect task to start with.

 

Search for another tool which works in LT.

Sebastian

0 Likes