dcl_SelectFiles problem need help!

Started by khann, March 10, 2010, 09:46:52 PM

Previous topic - Next topic

khann

Hi, there.
I'm trying to dig with "dcl_SelectFiles"

I wish someone show me the right sample code of "dcl_SelectFiles" as the Funtions SelectFiles Help Web page says.

(dcl_SelectFiles {FileTypes [as List of Strings]} {Title [as String]} {DefaultDirectory [as String]})

with Title and DefaultDirectory .

I'm using Stable Version of OpenDCL.Studio.ENU.5.1.2.3
Thanks.

Fred Tomke

Hi, nice question, but I have the feeling you've already ask something similar :)

I'm wondering the following dows not work in 6.0.0.23:
Code (autolisp) Select
(setq strPath (getvar "DWGPREFIX"))
(dcl_SelectFiles (list "dwg" "dxf") "Open Files" strPath)

I've really no idea why the form does not appear...

The following code works - but the form starts in the wrong initial folder:
Code (autolisp) Select
(setq strPath (getvar "DWGPREFIX"))
(dcl_SelectFiles (list "dwg" "dxf") "Open Files" (vl-string-trim strPath "\\"))


As far as I remember you can also add a description for each filetype:
Code (autolisp) Select
(dcl_SelectFiles (list "Symbol files|*.dwg" "XChange files|*.dxf") "Select Files")

I believe there is still a bug in 6.0.0.23. I will post it.

Hope that helps.
Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

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

khann

Hi, Fred, glad to meet you again  :).
That's right.
I remember I've posted about this problem once last year.
Now, I've changed Stable version and tested again then it's still going something wrong.
I wondered this happens just to me with my Acad Drawing.
So I want to hear others stories.
In fact I think that's not so critical and most of my ODCL runs well.

There's very few bugs uncatched but I feel ODCL is really cool.
I always thank those updating new version of ODCL and great testers on this webpage.

Thanks again.

Fred Tomke

Hi, Owen fixed a OS-related limitation for the next Alpha, look here.
I must honestly say that I still use getfiled instead of dcl_selectfiles. I cannot see any advantage to use dcl_selectfiles but maybe others can tell me.

QuoteThere's very few bugs uncatched
Please let us know everything - even it is not a bug. Some bugs only occur in special conditions and some things work as designed and sometimes there are some special ways to solve problems.

Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

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

khann

Hi,
In my case I think there some bugs not reported here.
But I did not list them up.
From now I'll try to report.
Thanks .

Juerg W. Menzi

Hi

I think there is still a little problem with dcl_SelectFiles...
(OS WinXP Pro SP3)
Code (autolisp) Select
(dcl_getversionex)
"6.0.0.25"
(dcl_SelectFiles (list "Drawing (*.dwg)|*.dwg") "Select Files" "C:\\Temp")

shows the file dialog below. As you can see, a part of the path argument is shown
in Filename and the path argument has no other effect.
As a workaround I've found that the path argument:
"C:\\Temp\\*" or "C:\\Temp\\*.dwg"
will work correct. The last part of the path argument is shown in the Filename field,
eg. '*' or '*.dwg'

Cheers
Jürg

Fred Tomke

Hi, Jürg, I can reproduce it, too. Maybe it's a bug. Then I ask you to add a bug report here: http://sourceforge.net/tracker/?group_id=187950&atid=923363.
Thanks.
Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

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

Juerg W. Menzi

Hi Fred

In principle I would prefere the functionality as it is. Otherwise you can't add a default filename.
The only thing that should be fixed is the possibility to use a path argument with following backslash
to set a path without a default filename or asterisk... and the help/documentation should be fixed.
As you propose, I will add a bug report.

Cheers
Jürg