Organizing multiple DCL dialogs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
My participation in this forum is mostly orientated towards solving autolisp problems by writing code or giving advice. I'm now in a situation to ask for advice or eventually piece of well tested code to solve parts of my problem.
I don't expect solution to this in one function, since this would actually present a small GUI handler.
What I would like to here are "word or two" that summarize your suggestions and point to potential traps.
I'm about to finalize creation of one large DCL script that consist of multiple dialogs. All dialogs are stored inside one DCL file that would open at start of working session, and closed when drawing, or Acad is closed, without consecutive reloading at each function start.
There is one starting dialog from which other child dialogs are called. After selecting child dialog to be opened by pressing a button on base dialog, this dialog should be closed (eventually hidden until the managing function ends), and child dialog open above. Children dialogs should enable user to select one or more elements from a model space, and perform that action once or multiple times if needed. After actions performed at particular child dialog are finished, either base dialog is shown or better function quits and user restarts the process. During each session, and in next session when function start again, elements on child dialog (if that child dialog has been used before), should preferably retain last entered values and its position. A cherry on top of a cake would be option to store this data into some kind of a template, that loads next time when app is started.
I know how to create most of the stuff, but I'm not so versatile with using reactors. As I stated before, I would love to here your suggestions about solving this problem, and how to approach it.
Issues that interest me most:
- how to organize start_dialog and done_dialog to enable hiding dialogs
- potential inclusion of vl-reactors if it really brings overall improvement (or it can be a trap)
- changes in DCL after version 2014 that may be of interest.
Important notice:
I'm not asking you to write down a code, I will do it myself. Only if you have well proved code, (except some short snippets) then attach it as a file to your post, without pasting into a text editor.
Thank you all!
P. S.
I won't answer to each post in next few days (only if necessary) to enable better readability since there are probably other users interested in this subject.
Miljenko Hatlak
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.