How To Add More Value in Popup List

How To Add More Value in Popup List

tim11_manhhieu
Advocate Advocate
199 Views
8 Replies
Message 1 of 9

How To Add More Value in Popup List

tim11_manhhieu
Advocate
Advocate

I want to add more B, C, D to the list.

 

tim11_manhhieu_0-1757903850670.png

 

0 Likes
Accepted solutions (1)
200 Views
8 Replies
Replies (8)
Message 2 of 9

tim11_manhhieu
Advocate
Advocate

I tried adding this code to .lsp but nothing happened

 

tim11_manhhieu_1-1757908308755.png

 

 

(setq scr "0")
(setq llist '("A" "B" "C"))
(start_list "REVISION")
(mapcar 'add_list llist) 
(end_list)

 

 

 

0 Likes
Message 3 of 9

Moshe-A
Mentor
Mentor

@tim11_manhhieu  hi

 

There is noting wrong with the code you post as far i can see so the problem is else where, post your full code dcl + lsp

 

Moshe

Message 4 of 9

paullimapa
Mentor
Mentor
Accepted solution

your dcl code can include list like this:

    : popup_list {
        label = "REVISION";
        key = "REVISION";
        list = "A\nB\nC\nD";
    }

Then the popup list will look like this:

paullimapa_0-1757920412137.png

 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
Message 5 of 9

tim11_manhhieu
Advocate
Advocate

Appreciated.

0 Likes
Message 6 of 9

paullimapa
Mentor
Mentor

You are welcome…cheers!!!


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 7 of 9

davidhennry263
Observer
Observer

Reading this discussion about extending lists in AutoLISP reminds me how managing structured data is a challenge across platforms. Just like you added “A, B, C, D” into the pop-up list, I recently organized multiple workflows and shortcuts on my iPhone 16 Pro Max to streamline repetitive tasks. The concept is very similar — whether it’s customizing a DCL list in CAD or arranging quick-access menus on a smartphone, the goal is to make navigation more efficient. Great thread, it shows how small adjustments can really enhance productivity.

Message 8 of 9

Sea-Haven
Mentor
Mentor

Just a comment you can write the DCL to a temporary file from within a lisp program, so you don't need an extra dcl file floating around. I use the great program by RLX that converts your dcl code to Lisp code so it can live inside your lisp program. Give it a try.

 

 

Message 9 of 9

tim11_manhhieu
Advocate
Advocate

Thank you for additional information.

If we don't use the newform.dcl file anymore, how can we trigger the lisp code (image 2) that has been converted from dcl?

 

tim11_manhhieu_0-1757984672202.png

 

tim11_manhhieu_2-1757984807635.png

 

 

0 Likes