Author Topic: Select Multiple Files  (Read 7560 times)

0 Members and 1 Guest are viewing this topic.

Guest

  • Guest
Select Multiple Files
« on: July 18, 2007, 09:52:55 AM »
Is there a VLisp command for selecting mutliple files, similar to vl-directory-files?

jbuzbee

  • Swamp Rat
  • Posts: 851
Re: Select Multiple Files
« Reply #1 on: July 18, 2007, 09:55:41 AM »
Can you use it in a sentence?  :-P

Sorry, I mean how would you use it?
James Buzbee
Windows 8

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: Select Multiple Files
« Reply #2 on: July 18, 2007, 09:58:23 AM »
Not sure I know what you mean, but perhaps dcl_MultiFileDialog.

{ shrugs }
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

CADaver

  • Guest
Re: Select Multiple Files
« Reply #3 on: July 18, 2007, 10:06:08 AM »
I use a function from Robert McNeel's DOSLIB functions HERE

Looks sorta like this:
Code: [Select]
(dos_getfilem "Select File" (getvar "DWGPREFIX") "Drawing Files (*.DWG)|*.DWG")
I'm sure someone here can code up a lispy replacement, I think I saw one somewhere.

Guest

  • Guest
Re: Select Multiple Files
« Reply #4 on: July 18, 2007, 10:31:13 AM »
I use a function from Robert McNeel's DOSLIB functions HERE

Looks sorta like this:
Code: [Select]
(dos_getfilem "Select File" (getvar "DWGPREFIX") "Drawing Files (*.DWG)|*.DWG")
I'm sure someone here can code up a lispy replacement, I think I saw one somewhere.

That's what I was looking for.
Thanks!

*I was just thumbing throw the DosLib help.  Wonder how I missed that one.  :?*

Mark

  • Custom Title
  • Seagull
  • Posts: 28762
Re: Select Multiple Files
« Reply #5 on: July 18, 2007, 10:39:14 AM »
Not sure I know what you mean, but perhaps dcl_MultiFileDialog.

Is that equivalent to the doslib function dos_getfilem?
TheSwamp.org  (serving the CAD community since 2003)

CADaver

  • Guest
Re: Select Multiple Files
« Reply #6 on: July 18, 2007, 10:56:33 AM »
I use a function from Robert McNeel's DOSLIB functions HERE

Looks sorta like this:
Code: [Select]
(dos_getfilem "Select File" (getvar "DWGPREFIX") "Drawing Files (*.DWG)|*.DWG")
I'm sure someone here can code up a lispy replacement, I think I saw one somewhere.

That's what I was looking for.
Thanks!

*I was just thumbing throw the DosLib help.  Wonder how I missed that one.  :?*
I use it to XREF a couple dozen files all at once, it's one of my fav's.

Guest

  • Guest
Re: Select Multiple Files
« Reply #7 on: July 18, 2007, 10:58:52 AM »
I use it to XREF a couple dozen files all at once, it's one of my fav's.

What version of ACAD are you running?  You can xref multiple files at once in '07 and '08.  I think you could even do it back in '05, but I'm not 100% sure about that.

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: Select Multiple Files
« Reply #8 on: July 18, 2007, 10:59:01 AM »
Not sure I know what you mean, but perhaps dcl_MultiFileDialog.

Is that equivalent to the doslib function dos_getfilem?

Yep. I wouldn't have suggested it but I was under the impression you were already using OpenDCL, so it's already at your disposal.

Examples:

Code: [Select]
(dcl_MultiFileDialog
    (list
        "Drawings (*.dwg)|*.dwg"
        "Templates (*.dwt)|*.dwt"
    )
    "Select the drawings(s):"
    "c:\\"
)

Or ...

Code: [Select]
(dcl_MultiFileDialog
    (list "Drawings (*.dwg,*.dwt)|*.dwg;*.dwt")
    "Select the drawings(s):"
    "c:\\"
)

:)
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

Guest

  • Guest
Re: Select Multiple Files
« Reply #9 on: July 18, 2007, 11:00:15 AM »
Not sure I know what you mean, but perhaps dcl_MultiFileDialog.

Is that equivalent to the doslib function dos_getfilem?

Yep. I wouldn't have suggested it but I was under the impression you were already using OpenDCL, so it's already at your disposal.

Examples:

Code: [Select]
(dcl_MultiFileDialog
    (list
        "Drawings (*.dwg)|*.dwg"
        "Templates (*.dwt)|*.dwt"
    )
    "Select the drawings(s):"
    "c:\\"
)

Or ...

Code: [Select]
(dcl_MultiFileDialog
    (list "Drawings (*.dwg,*.dwt)|*.dwg;*.dwt")
    "Select the drawings(s):"
    "c:\\"
)

:)

Do you have to add the FILE DIALOG BOX to the project?

CADaver

  • Guest
Re: Select Multiple Files
« Reply #10 on: July 18, 2007, 11:08:03 AM »
I use it to XREF a couple dozen files all at once, it's one of my fav's.

What version of ACAD are you running?  You can xref multiple files at once in '07 and '08.  I think you could even do it back in '05, but I'm not 100% sure about that.
About half our staff is still running R2002 <edit> and dcl_MultiFileDialog is not available.
« Last Edit: July 18, 2007, 11:10:09 AM by CADaver »

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: Select Multiple Files
« Reply #11 on: July 18, 2007, 11:13:55 AM »
Do you have to add the FILE DIALOG BOX to the project?

No -- dcl_MultiFileDialog is a self reliant bonus function included in the OpenDCL arx run time.

PS: If you're using an older version of Object/OpenDCL the function would be named odcl_MultiFileDialog.

:)
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

CADaver

  • Guest
Re: Select Multiple Files
« Reply #12 on: July 18, 2007, 01:30:54 PM »
Do you have to add the FILE DIALOG BOX to the project?

No -- dcl_MultiFileDialog is a self reliant bonus function included in the OpenDCL arx run time.

PS: If you're using an older version of Object/OpenDCL the function would be named odcl_MultiFileDialog.

:)
Ahh cool, thanks, I'll look.

LE

  • Guest
Re: Select Multiple Files
« Reply #13 on: July 18, 2007, 01:54:25 PM »
And as a last resource, or if one of these days.... here is the C# alternative

Code: [Select]
[CommandMethod("GETMFILES")]
public void getmfiles()
{
    OpenFileDialog dlg = new OpenFileDialog("Title: Open Drawings", "", "dwg", "Your Dialog Name", OpenFileDialog.OpenFileDialogFlags.AllowMultiple);
    if (dlg.ShowDialog() != System.Windows.Forms.DialogResult.OK) return;
    string[] files = dlg.GetFilenames();
    foreach (string f in files)
    {
        //do your stuff here
    }
}

Mark

  • Custom Title
  • Seagull
  • Posts: 28762
Re: Select Multiple Files
« Reply #14 on: July 18, 2007, 02:47:06 PM »
Not sure I know what you mean, but perhaps dcl_MultiFileDialog.

Is that equivalent to the doslib function dos_getfilem?

Yep. I wouldn't have suggested it but I was under the impression you were already using OpenDCL, so it's already at your disposal.
Nice! Screen shot please. :-)
TheSwamp.org  (serving the CAD community since 2003)

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: Select Multiple Files
« Reply #15 on: July 18, 2007, 03:13:17 PM »
Nice! Screen shot please. :-)



AutoCAD 2008 / OpenDCL 4.0 RC3 / Vista Ultra / Medium icon mode.

{  reduced colors to 256 after screen grab, it looks richer than this actually }
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: Select Multiple Files
« Reply #16 on: July 18, 2007, 03:36:04 PM »
Another piccy, same specs as before except detail view with multiple files selected ...

Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

LE

  • Guest
Re: Select Multiple Files
« Reply #17 on: July 18, 2007, 06:41:38 PM »
About half our staff is still running R2002

I have not read anywhere if it is going to be available for pre - 2004 AutoCAD versions.... maybe it will - the arx binaries I have seen are for 2004-2008

CADaver

  • Guest
Re: Select Multiple Files
« Reply #18 on: July 18, 2007, 06:59:27 PM »
About half our staff is still running R2002

I have not read anywhere if it is going to be available for pre - 2004 AutoCAD versions.... maybe it will - the arx binaries I have seen are for 2004-2008
By the end of the year we hope to be fully embedded with R2008

LE

  • Guest
Re: Select Multiple Files
« Reply #19 on: July 18, 2007, 07:07:37 PM »
By the end of the year we hope to be fully embedded with R2008

That it is going to be good! - I just started with a2007 jumping from a2005, have my copy of a2008 and do not know when I am going to start with that....  :-(

Note to the people from OpenDCL... Where is the information about what AutoCAD and verticals products OpenDCL will be supporting? - Thank you - in the mean time I'll go and check their new site.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Select Multiple Files
« Reply #20 on: July 18, 2007, 07:11:58 PM »
Note to the people from OpenDCL... Where is the information about what AutoCAD and verticals products OpenDCL will be supporting? - Thank you - in the mean time I'll go and check their new site.

http://www.opendcl.com/HelpFiles/main.html
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

LE

  • Guest
Re: Select Multiple Files
« Reply #21 on: July 18, 2007, 07:13:16 PM »
Note to the people from OpenDCL... Where is the information about what AutoCAD and verticals products OpenDCL will be supporting? - Thank you - in the mean time I'll go and check their new site.

http://www.opendcl.com/HelpFiles/main.html

Perfect! thanks.