I want to create a nested drop down menu for a cui button.
Currently we can only have one level of drop downs.
Button
Drop Down
Items [1]
What I want is
Button
Drop Down [1]
Items [1]
Drop Down [2]
[items [2]
etc..
DCL might be a better approach but I don't want to switch focus away from the drawing area. The user needs some simplicity. If DCL is used I think the user would have to click through the menus, then terminate the DCL with an OK button.
A bit of info on my project.
I call it smart leader.
I cannot share the entire lisp program due to non disclosures.
Several callouts are standard and specific with jurisdictions. We work with many jurisdictions and each prefer to use their own verbiage. We need every person to be consistent on how we call out standard features in our cad drawings. For example. Some cities prefer "Sidewalk" some prefer "S/W" some don't have a preference.
I created a script that draws a leader based on the jurisdiction and object that is being called out. It grabs text from an external txt documents to prefill the leader text.
Example of the external txt document used to prefill leader text.
sample.txt
REMOVE & REPLACE <L>' X <W>' SIDEWALK PANEL
The <L> and <W> are tags for the script to replace it with user input.
smartleader example
(defun c:smleader()
(setq L (getint "\nWhat is the length"))
(setq W (getint "\nWhat is the width"))
;;code to replace <W> &<L>
;;code to retrieive sample.txt
;;code to draw a leader with final string
Any ideas?