• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

management undermenu autolisp

  • Thread starter Thread starter Gio_S
  • Start date Start date

Gio_S

Guest
Good morning to all,
I use the lisp ragguppando various routines distributed on various file lisp according to a principle of affinity.
Each file lisp is called by a custom entry in the main menu, which opens its submenu, to make me choose the routine I need.
in this way (example file lisp that groups together various features):
Code:
(defun powpoly(key)
 (if(null key)
  (progn
   (initget  "hprint mprint upline rapidograph ...... etc etc)
   (prompt "[Command] autolisp")
(setq key (getkword "\n<hprint/mprint/upline/rapidograph/... etc.: "))
)
)
(cond
((= key "hprint")
((= key "mprint")
((= key "rapidograph")(china))
etc etc.
Now, I was wondering, is there a way to show up in the submenu, alongside the name of the routine, something more explanatory about its function?
For example, instead of reading in the submenu simply hprint find me something like this:
"hprint"
Where can I put the explanation? I have so many functionalities that sometimes, if it is not often used, I forget the peculiarities...
I would not like to rewrite all my menus in dcl ... that I only use for important functions. . .

Thank you!
g.
 
a dialog with the various buttons and their help is the solution.
you could make a slide to display before the command getkword, deprecable but feasible.
 
a dialog with the various buttons and their help is the solution.
you could make a slide to display before the command getkword, deprecable but feasible.
a stuff you mean, with multiple commands... yes, but I wanted to do it by adding text in the menus:)
 

Attachments

  • Clipboard01.webp
    Clipboard01.webp
    42.3 KB · Views: 11
even a little simpler, type button hprint and label with description, next line button mprint etc...
the phase of dialogue with the user is the one that requires greater detail, if you want to avoid problems.
 
even a little simpler, type button hprint and label with description, next line button mprint etc...
the phase of dialogue with the user is the one that requires greater detail, if you want to avoid problems.
I think I will, so I take the opportunity to review the code at the same time.
Meanwhile, on the incriminated ones that forced me to regret hard, I basically extended the name (without spaces or capital) in this way up to
((= key "hprint_crea_rullo")(hprint))
Among other things, this history of capital, in the most varied and full-bodied file, is a problem... because I almost finished the letters, and every time I add something I have to scrape the bottom of the alphabet barrel!
 
Try to look at: It is a dcl to which just pass parameters: see also example image.
 

Attachments

  • HP_Buttons.webp
    HP_Buttons.webp
    19.3 KB · Views: 8
Many thanks x11, but I really wanted to do a quick thing. of dcl I have already done some (I posted it a bit backward) but for the basic functions towards the stl and to the files to render .... then I also did some help in the head of the menus (e.g. here) just to remind me how I implemented certain entities to use povray using my parser ... help for myself ahahah. even for generic lisp for other purposes I should make a starter in dcl.. but unfortunately the weather is always little... Let's say that for now the extended name of the function filled me with the memory blanks.. .
cmq I thank you very much for the kindness, a code already ready is undoubtedly useful to speed up. . .
 

Attachments

  • Clipboard01.webp
    Clipboard01.webp
    25 KB · Views: 6
... you don't understand: The dcl is already done! you just have to pass the parameters... That is what he has to do.
I'm not a "friend" of the dcl (in the sense that I can't create them!) ... but here it's just a matter of calling it back with the commands you need!
you can launch a lisp, or open a link or open a notepad... It's amazing!
 
Yes, in fact I thank you, is what I saw, the language of the dcl scripts I know, I have already used it for various purposes, as from posted images, for that I said, that suits me, I have to adapt it with the calls to my lisp functions, adapt the dcl file creation because I vl do not add the support, then take the generated dcl, see if they are on a column, that I don't believe, and stack it
As she creates it with buttons, I feel good, as a base, then I have to put my hands on it.
I'm fine, it definitely contains "scappatoie" I don't know.
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top