This ran successfully for me
You best believe it did. How can I ever repay you? This has bugged me for years.
I've got it to work by putting this in my custom.lsp file which loads after the accadoc.lsp file.
I've wcmatch'd the filename for
DYN so I'll get that popup which will, in turn, let me know to correct the filename to include
DYN. (handy).
I've also added a line to hit enter also. This will be super useful on day to day editing of my dynamic blocks.
(defun run_dynamic_dialog_script
() (princ "\nYou HAVE opened a dynamic block.\n\nWozzers...\n-------------------------------------------------------\n") ;; Comment this out if you don't want a new fancy custom dialog.
(alert "You HAVE opened a dynamic block.\n\nWozzers...\n-------------------------------------------------------\n") )
(princ "\nYou HAVE NOT opened a dynamic block.\n\nWozzers...\n-------------------------------------------------------\n") (alert "You HAVE NOT opened a dynamic block.\n\nWozzers...\n-------------------------------------------------------\n") )
)
;; http://www.theswamp.org/index.php?topic=54322.msg589125#msg589125
(defun c:dynamic_dialog_close
(/ ws
) ;; RJP - 07.23.2018 - ronjonp
;; This would be useful on a mass editing of dynamic blocks or even on day-to-day use
; (vlax-invoke ws 'sendkeys "{ENTER}")
;; else, use this to just open the file.
)
)
)
Then created an scr with (
empty line at enf of course):
(c:dynamic_dialog_close)
All of the above files are in the support path.
Now I have my own custom popup when I want.
Thanks once again.. !