TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: kraz on August 02, 2009, 09:24:19 PM

Title: [Question]Select Multi Files
Post by: kraz on August 02, 2009, 09:24:19 PM
I want to know how can i Select Files without dcl or dos_filem..

as it possible, I Want to use WMI method like " (setq ShlObj (vla-getInterfaceObject (vlax-get-acad-object) "Shell.Application")  Folder(vlax-invoke-method ShlObj 'BrowseForFolder 0 msg 0)) "

thanks all...
Title: Re: [Question]Select Multi Files
Post by: CAB on August 02, 2009, 11:47:07 PM
Did you do a SEARCH?
This Search for BrowseForFolder (http://www.theswamp.org/index.php?action=search2;params=YWR2YW5jZWR8J3wxfCJ8YnJkfCd8MnwifHNob3dfY29tcGxldGV8J3x8InxzdWJqZWN0X29ubHl8J3x8Inxzb3J0X2RpcnwnfGRlc2N8Inxzb3J0fCd8cmVsZXZhbmNlfCJ8c2VhcmNofCd8QnJvd3NlRm9yRm9sZGVy)
Title: Re: [Question]Select Multi Files
Post by: kraz on August 02, 2009, 11:51:52 PM
Did you do a SEARCH?
This Search for BrowseForFolder (http://www.theswamp.org/index.php?action=search2;params=YWR2YW5jZWR8J3wxfCJ8YnJkfCd8MnwifHNob3dfY29tcGxldGV8J3x8InxzdWJqZWN0X29ubHl8J3x8Inxzb3J0X2RpcnwnfGRlc2N8Inxzb3J0fCd8cmVsZXZhbmNlfCJ8c2VhcmNofCd8QnJvd3NlRm9yRm9sZGVy)

hmm...I don't want BrowseforFolder...this is for Select Folder. but I want multi select files...
Title: Re: [Question]Select Multi Files
Post by: CAB on August 03, 2009, 12:03:04 AM
Have you tried?
Code: [Select]
(setq file+path (getfiled "Select a File you want" "" "" 4))
Title: Re: [Question]Select Multi Files
Post by: CAB on August 03, 2009, 12:12:08 AM
Ok, try this:
http://www.theswamp.org/index.php?topic=14715.msg177776#msg177776
Title: Re: [Question]Select Multi Files
Post by: CAB on August 03, 2009, 12:19:16 AM
I've been down this road & never found one that worked with Windows 2000.

Here is a DCL option.
http://www.theswamp.org/index.php?topic=14536.msg177095#msg177095
Title: Re: [Question]Select Multi Files
Post by: kraz on August 03, 2009, 02:07:52 AM
thanks CAB..
most of all , I had Searched with many keyword like files, multi select files, wmi bla bla bla~...., but i Couldn't Found....anyway sorry.

filebox func, you found, is nice to me.. but i can't understand, wmi has browseforfolder method but have not files method....I want to know there is another method ...or any other good functions...

god bless you~~ :angel:
Title: Re: [Question]Select Multi Files
Post by: gile on August 03, 2009, 02:35:21 AM
Hi,

AFAIK, there're no way working fine without an external arx or dll.
"acet-ui-getfile" function from the express tools works the same as "userAccounts.CommonDialog" (IOW: as bad as).

I made a little .NET DLL to which implements 4  LISP functions to open Windows standard dialog boxes, you can found it here (http://www.theswamp.org/index.php?topic=29537.msg350784#msg350784)