Author Topic: Improvement of Lee Mac "ListBoxFunctionsV1-1.lsp" function  (Read 9637 times)

0 Members and 1 Guest are viewing this topic.

fabcad

  • Newt
  • Posts: 43
Improvement of Lee Mac "ListBoxFunctionsV1-1.lsp" function
« on: November 27, 2017, 02:56:51 PM »
Hello,

I would like to use the "ListBoxFunctionsV1-1.lsp" function, created by genius Lee Mac, I would like to recover at the end of the function two lists :
The first : full list sorted.
The second : list with only the choice of the user.

Thank you in advance,

In the example of the screenshot:
Full list sorted : ("Item 8" "Item 9" "Item 0" "Item 1" "Item 2" "Item 3" "Item 4" "Item 5" "Item 6" "Item 7")
List with only the choice of the user : ("Item 8" "Item 9")

ronjonp

  • Needs a day job
  • Posts: 7524
Re: Improvement of Lee Mac "ListBoxFunctionsV1-1.lsp" function
« Reply #1 on: November 27, 2017, 03:39:58 PM »
If you're using Lee's example program here, just add something like this to the end.
Code - Auto/Visual Lisp: [Select]
  1. (list lst (mapcar '(lambda (x) (nth x lst)) idx))

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC