Author Topic: getfiled with two file types?  (Read 2705 times)

0 Members and 1 Guest are viewing this topic.

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
getfiled with two file types?
« on: December 08, 2004, 03:47:03 PM »
Does anyone know how to get getfiled to display two file types at once?
I am using
    (setq path (getfiled "Select a File in the Folder you want to use" path "sld" 0))
But would like to display both SLD and SLB files.
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

Jeff_M

  • King Gator
  • Posts: 4096
  • C3D user & customizer
getfiled with two file types?
« Reply #1 on: December 08, 2004, 03:58:51 PM »
Not exactly what you want, but seperate the sld & slb with a semi-colon and you will be allowed to select either one:
 (setq path (getfiled "Select a File in the Folder you want to use" path "sld;slb" 0))

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
getfiled with two file types?
« Reply #2 on: December 08, 2004, 04:04:00 PM »
Jeff
Only the sld files show up!
Thanks anyway...
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

ronjonp

  • Needs a day job
  • Posts: 7529
getfiled with two file types?
« Reply #3 on: December 08, 2004, 04:10:04 PM »
CAB,

If you use the pulldown on file types you can choose what type to get. (with Jeff's code)

Ron

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
getfiled with two file types?
« Reply #4 on: December 08, 2004, 04:21:01 PM »
Well this works ok....
"sl*" and picks up both file types.
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

Keith™

  • Villiage Idiot
  • Seagull
  • Posts: 16899
  • Superior Stupidity at its best
getfiled with two file types?
« Reply #5 on: December 08, 2004, 07:36:58 PM »
Code: [Select]

(getfiled "" "" "sl*;sld;slb" 8)


Best of all worlds ...
Proud provider of opinion and arrogance since November 22, 2003 at 09:35:31 am
CadJockey Militia Field Marshal

Find me on https://parler.com @kblackie