Jump to content

Disabling items in a dropdown list box based on options selected in another dropdown list.

Recommended Posts

Hello Everyone,

I am very new to Autocad and this is my first attempt at creating a LISP file.


I have a dropdown command list 1





I have a 2nd dropdown command list 2




if the user selects option1 or option2 they can select DoThis1 or Dothis2.  If they select Option3 they can only do DoThis1.  DoThis2 is not available for Option3.  I have Googled and searched the topic, but I don't quite now where to start and if this is even possible.


How can I do this with a LISP file?  


Thank you


Link to post
Share on other sites

The other alternative is you can have child dcl ie a new dcl pops up over the top of the existing one. If you want to go that way can post some details on how to do, I know which code buts its full of multiple stuff will cut the relevant bits out.



Edited by BIGAL
Link to post
Share on other sites
On 5/5/2021 at 8:03 AM, Sally-A said:

Thank you!  This is great information.

Is it be possible to not use dcl and use button dropdowns from the tool panel?


Limited control referencing system variables.

Without letting us know exactly what you're trying to do it's hard to suggest anything. 

Link to post
Share on other sites

Sure.  I am given this task

Sorry I am so vague.


I have a ribbon panel with two buttons  (connector and single)




if you select the connector button and then select Annotation




Then click the subtype button  (Single or Multi)



I need "multiple" to be grayed out and not selectable in this case.


Is there a way to do this?  







Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...