FileDialog in AutoCAD 2010

Started by Fred Tomke, April 29, 2009, 11:16:50 PM

Previous topic - Next topic

Fred Tomke

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).

Code (autolisp) Select

(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
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

BazzaCAD

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....
a.k.a.
Barry Ralphs
barryDOTralphsATgmailDOTcom

Fred Tomke

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
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

BazzaCAD

a.k.a.
Barry Ralphs
barryDOTralphsATgmailDOTcom

owenwengerd

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.
Owen Wengerd (Outside The Box) / ManuSoft

Fred Tomke

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
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

owenwengerd

I would guess that C3D has disabled Vista style file dialogs.
Owen Wengerd (Outside The Box) / ManuSoft

Fred Tomke

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
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]