Jump to content

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


Sally-A

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

OPTION1

OPTION2

OPTION3

 

I have a 2nd dropdown command list 2

DoThis1

DoThis2

 

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 comment
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.

 

image.png.ba48073f9cec3237ef0bd536060eb716.png

Edited by BIGAL
Link to comment
Share on other sites

Thank you!  This is great information.

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

image.png.acee1d1c11c853281eab2db437d2485f.png

Link to comment
Share on other sites

Having it in the tool panel goes beyond LISP. I suppose there is a way, but I'm not sure.

Link to comment
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?

image.png.acee1d1c11c853281eab2db437d2485f.png

Limited control referencing system variables.

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

Link to comment
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)

image.png.d4a64b01a5b5eadae9a0116eb97d92dd.png

 

 

if you select the connector button and then select Annotation

image.png.fed1a6842633c4341a3af4c2a32fd85f.png

 

 

Then click the subtype button  (Single or Multi)

image.png.1211af55a5a028414c55d2db06f343be.png

 

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

 

Is there a way to do this?  

 

 

 

 

 

 

Link to comment
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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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...