Sally-A Posted May 4, 2021 Posted May 4, 2021 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 Quote
rkmcswain Posted May 4, 2021 Posted May 4, 2021 This can be done with autolisp and dcl. Is that what you are using or want to use? Quote
Sally-A Posted May 4, 2021 Author Posted May 4, 2021 I believe so, unless you have a better suggestion Quote
rkmcswain Posted May 4, 2021 Posted May 4, 2021 I should have an example. Give me a bit, or someone else may chime in with something. Quote
Sally-A Posted May 4, 2021 Author Posted May 4, 2021 Great. Thanks for the help and pointing me in the right direction Quote
BIGAL Posted May 4, 2021 Posted May 4, 2021 (edited) 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 May 4, 2021 by BIGAL Quote
Sally-A Posted May 5, 2021 Author Posted May 5, 2021 Thank you! This is great information. Is it be possible to not use dcl and use button dropdowns from the tool panel? Quote
Jonathan Handojo Posted May 5, 2021 Posted May 5, 2021 Having it in the tool panel goes beyond LISP. I suppose there is a way, but I'm not sure. Quote
BIGAL Posted May 6, 2021 Posted May 6, 2021 The old fashioned mnu file supports calling a image menu so can have a tree style, dont know about palettes. Quote
tombu Posted May 6, 2021 Posted May 6, 2021 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. Quote
Sally-A Posted May 6, 2021 Author Posted May 6, 2021 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? Quote
Recommended Posts
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.