Message 1 of 19
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi Lisp wizards,
I am developing a tool to accept the input from the user, the user's input is a block's attributes, so i've to save the input as variable in a list (to facilitate the process).
Unfortunately, I was not able to do it. The problem is that AutoLisp treats these variables as strings, meaning that it does not read the user's input.
Thanks in advance to you all.
Attached part of the code:
(setq i 0 CatLst '())
(repeat (atoi aeb16) (setq CatLst( append CatLst (list (strcat "CAT" (itoa (setq i (1+ i))))))))
(foreach item CatLst (action_tile item "(set (read $key) $value)"))
----------------------
(setq count 0 point '(45 248))
(while (< count (atof aeb16))
(setq Mcat (nth count CatLst))
(command "-insert" "autocad_new\\Libs\\VCB1" point "1" "1" "0" Mcat)
(setq count (1+ count))
(setq TheXValue (car point))
(setq point (list (+ '35 TheXValue) (cadr point) ))
)
Solved! Go to Solution.