TheSwamp
Code Red => Visual DCL Programming => AutoLISP (Vanilla / Visual) => OpenDCL => Topic started by: jonathann3891 on July 27, 2022, 01:58:59 PM
-
I am looking to make some improvements to my dimension note utility but I'm a little stuck.
I would like my dialog box to hide while selecting dimensions then reappear. I'd also like for the selection OR the inputted note to show when it reappears.
How can I accomplish that?
I've only been able to find a few examples online but nothing that was abundantly clear to me.
Aside from that if anyone has any input to improve the code (this is still a work in progress) please feel free. I love constructive criticism.
Thanks!
-
i don't think you can 'hide' a modal dialog
you can close and then reopen it
-
You are correct. Trying to hide it hangs up AutoCAD, which I learned earlier today.
I tried showing showing the dialog box at the end of but it flashes and disappears. So that's what I'm trying to learn how to do.
-
here's how it's done with dcl https://www.afralisp.net/dialog-control-language/tutorials/hiding-dialog-boxes.php
you'll have to use the same approach
-
I use something similar to:
(setq show T)
(setq var "34")
(while show
(setq show nil)
(on iniciate dialog put value var into dialog)
(show dialog) -> into the dialog a put function to close dialog or if necesary (close dialog, select elements point whatever... and put show to T)
if var change when dialog appears the new value of var is correct.
)
-
You are correct. Trying to hide it hangs up AutoCAD, which I learned earlier today.
I tried showing showing the dialog box at the end of but it flashes and disappears. So that's what I'm trying to learn how to do.
This may help.