What am I missing? I've reduced this to the bare minimum but cannot get a File Dialog to display? It just returns nil. In BricsCAD v16?
(defun c:fdtest ( / )
(command "_OPENDCL")
(dcl-Project-Load "FileOpenTest")
(setq sFile (dcl-Form-Show FileOpenTest/frmImport))
)
(defun c:FileOpenTest/frmImport#OnInitialize (/)
(dcl-MessageBox "We got here")
)
Can you attach your .odcl file?
I attached it to the original post. It is a project with nothing but the file dialog. I was struggling in another project and created this as a test.
I'm on Windows 10 as well.
It seems to be working fine on Windows 7, so maybe the problem is specific to Windows 10. I don't have an easy way to test at the moment, so hopefully someone else can test on Windows 10 to see if the behavior is reproducible there.
BTW, I noticed that your OnInitialize event function name doesn't match the name in the .odcl. You can uncheck and recheck the event to update the name in the .odcl file.
I've noticed the same behavior in Windows 7 in both BricsCAD v16 and AutoCAD with 8.0.3.0, however with 8.0.1.0 the file dialog displays correctly. I haven't checked 8.0.4.0