Hello,
before adding a bug report I want to be sure that I'm doing nothing wrong.
I have a FileDialog that works correctly in AutoCAD 2009 (see attached file).
(dcl_project_load "lvman")
(setq strExt ".d81")
(dcl_form_show lvman_sc_gaeb_import (getvar "DWGPREFIX") (strcat "*" strExt) strExt)
In AutoCAD 2010 I get an exception, in AutoCAD 2009 it works fine.
Fred
Worked OK for me, but I didn't include any of the optional arguments with the (dcl_Form_Show).
Maybe start removing those & see if it works....
Thanks, Barry, am I right that you were testing on XP?
I had the chance to test on three other computers, but they're all using AutoCAD 2010 on XP. On all these XP workstations FileDialog worked fine. Now it is the question if it is a matter of Vista or a matter of this notebook...
Quotebut I didn't include any of the optional arguments with the (dcl_Form_Show).
The optional arguments are necessary in this case for initial folder and initial extension.
Fred
Yes I'm on XP.
It seems that MFC creates a new Vista style file dialog by default in Vista, and the Vista style dialog does not allow the use of a custom template. I've now changed the code to create an old style file dialog in Vista; this should resolve the problem.
Hello Owen, I just had a test with the same FileDialog on Vista and Civil 3D 2009. In this case it works very fine. In AutoCAD 2010 on the same machine it crashes. Maybe it is no Vista-depended problem?
Fred
I would guess that C3D has disabled Vista style file dialogs.
Hi Owen, I have a notebook with Vista 32 Bit, where Vista-Styles are used. I have installed Map 2008, Map 2009, Civil 2009, AutoCAD 2010, Civil 2010. Using 5.1.0.4 FileDialog works now in all AutoCAD releases. Thanks Owen.
Fred