-insert command doesn't work in 2020 and newer for a lisp

-insert command doesn't work in 2020 and newer for a lisp

lnroberts
Explorer Explorer
280 Views
2 Replies
Message 1 of 3

-insert command doesn't work in 2020 and newer for a lisp

lnroberts
Explorer
Explorer

I am trying to create a lisp that inserts a border into a drawing. We used to use -insert for this action, but now that we are using 2020 this command fails since the insert command now opens a dialog box. I have set up my autocad to open the old version by using classicinsert, but I can't find an alternative to get it to send the prompts to the command line for the lisp to work. I've tried changing filedia and cmddia to 0, but the dialog box still pops up. Also to note, the block isn't in the drawing currently, I need to give it a file path and then a file name.

Does anyone know of a work around for this so my lisp routine will work?

 

Thanks!

0 Likes
Accepted solutions (1)
281 Views
2 Replies
Replies (2)
Message 2 of 3

ВeekeeCZ
Consultant
Consultant

Well, -INSERT still behaves as expected, even in 2022. Still no dialog.

 

I can't think of any reason that could cause your behavior. Do you have plain ACAD? No add-ons? 

 

Possibly try _.-INSERT

0 Likes
Message 3 of 3

lnroberts
Explorer
Explorer
Accepted solution

Thank you for the response! Turns out the coworker I am helping was missing some backslashes and quotes. 

 

0 Likes