Incompatible with Autocad 2020

Incompatible with Autocad 2020

neam
Collaborator Collaborator
430 Views
4 Replies
Message 1 of 5

Incompatible with Autocad 2020

neam
Collaborator
Collaborator

Hi everyone

I have a lisp that reads three text files and writes its contents to the Alignment.
But this Lisp does not work in AutoCAD 2020.
Thank you for helping me find the cause.

Enter initial length : 0

Block to use < >: 000

Enter Height Text : 0.5

0 Likes
431 Views
4 Replies
Replies (4)
Message 2 of 5

ВeekeeCZ
Consultant
Consultant

Seems perfectly fine in 2022. 

 

BeekeeCZ_0-1655114501414.png

 

BTW how about to CLOSE all the files? If you open files, you need to close them too! (open pat3 "r")

 

Message 3 of 5

calderg1000
Mentor
Mentor

Regards @neam 

I tried the routine in the 2020 version and it works fine. If you're working on a new file, you should just copy the block for it to recognize.

calderg1000_1-1655123850290.png

 

 

 


Carlos Calderon G
EESignature
>Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

Message 4 of 5

Sea-Haven
Mentor
Mentor

(setq blk (getstring (strcat "\nBlock to use < >: ")))

 

Use (tblsearch "BLOCK" blk) this will return T if exists if nil then use Insert directory+blk 0,0 1 1 0 then explode and erase, then it exists in your dwg. You can also use Lee-mac steal to get block from say a template dwg. 

Message 5 of 5

neam
Collaborator
Collaborator

Thanks everybody.
So the problem is not Lisp.
There seems to be a problem with my system.

0 Likes