Message 1 of 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
In old AutoCAD2014 I was using lisps with good and old LeeMac lm:listbox. Issue is in AutoCAD2021 it does not work. I spent with claude few hours and 30+ attempt to find another way of displaying populated pop-up window in AutoCAD2021. All failure, almost always lisp like that turned cursor to busy and all I was able to do is zoom in and out before forcing AutoCAD to close.
Do you know by a chance how to modify bellow or know other way to display populated pop-up window in AutoCAD2021 with Lee Mac's lm:listbox funtionalities?
;; List Box - Lee Mac
(defun LM:listbox (msg lst bit / dch des tmp rtn)
(cond
((not
(and
(setq tmp (vl-filename-mktemp nil nil ".dcl"))
(setq des (open tmp "w"))
(write-line
(strcat "listbox:dialog{label=\"" msg "\";spacer;:list_box{key=\"list\";multiple_select="
(if (= 1 (logand 1 bit)) "true" "false")
";width=55;height=35;}spacer;ok_cancel;}")
des
)
(not (close des))
(< 0 (setq dch (load_dialog tmp)))
(new_dialog "listbox" dch)
)
)
(prompt "\nError Loading List Box Dialog.")
)
(t
(start_list "list")
(foreach itm lst (add_list itm))
(end_list)
(setq rtn (set_tile "list" "0"))
(action_tile "list" "(setq rtn $value)")
(setq rtn
(if (= 1 (start_dialog))
(if (= 2 (logand 2 bit))
(read (strcat "(" rtn ")"))
(mapcar '(lambda (x) (nth x lst)) (read (strcat "(" rtn ")")))
)
)
)
)
)
Solved! Go to Solution.