PuzzzleClub 发表于 2022-7-5 23:20:39

; error: bad argument type: (o

Hello, Ive been trying to write an autolisp program that gives the user an area of an object with multiple spaces subtracted from that objects area. Im pretty sure that this error message refers to the "strcat" command that is in use but I seem to be stumped as to how to make this program functional. If anyone has any insights to this dilemma I would greatly appreciate input. thanks in advance!
 
 
-PuzzzleClub
here is the code;
almostThereLISP.LSP

hmsilva 发表于 2022-7-5 23:51:02

Add

(setq areaString (rtos(getvar "area")2 4))(setq insertUnits (getvar 'INSUNITS));;

PuzzzleClub 发表于 2022-7-6 00:06:51

thanks hmsilva, I really appreciate the assistance and speedy response. makes total sense now.
 
 
-PuzzzleClub

hmsilva 发表于 2022-7-6 00:27:19

You're welcome.
Glad I could help
Henrique
页: [1]
查看完整版本: ; error: bad argument type: (o