Drop down menu for block attribute

Hi Everybody
Is there a way to create a block with a drop-down list of predefined values for an attribute. Just to pick up a default value instead of editing Attributes. If you have any example to share, I would be very grateful. Thanks. BR

Comments

  • ALANH
    edited July 2022
    Yes can do, it is easier to enter the text 1st then insert the block filling in attribute.

    A freebie for you
    (if (not AH:Butts)(load "Multi Radio buttons.lsp"))
    (if (= ahdef nil)(setq ahdef 1))
    (setq ans (atoi (ah:butts ahdef "V" '("Choose a number" "1" "2" "3" "4" "5" "6" "7" "8" "9" "10")))) ; ans holds the button picked as an integer value