How do I select multiple files from ProjectWise?

I am trying to get a list of files to process on from the user but I have not been able to figure out how to do this.  I can get one file fine via the mdlDialog_fileOpen inside the stdmdlbltin.dll, but as far as I can tell, there is no way to allow the user to select multiple files.

What I'm looking for is the dialog you get when you try to attach a reference to a file.  It has a single "tab" at the top that says Select.  Inside there, you can select multiple documents by hitting control or shift.  Or alternatively, hitting the Add button, which adds to the bottom panel.

I've tried using the mdlFileList_Edit, but that appears to allow me to open a folder, which is not what I'm looking for.

My backup plan is to use the batch processor, but I'd prefer not to do that.

Any help would be greatly appreciated.


Parents Reply
  • I found a post from you on this

    I told you it wasn't easy!

    When trying to implement the code from the post or your article, I keep getting errors where it states that it can't find the function call

    Here's an updated version of that article about StringLists.  Note each function declaration where I've changed Long to LongPtr to match 64-bit VBA.

    StringList states that it requires "RmgrTools<ApiNumber>.lib i.e. RmgrTools3.lib"  I found the lib, but I don't know how to load a lib.

    You don't have to load a library.  Once you have the correct function declaration in VBA, the VBA run-time finds the library for you.

    I don't understand how stdmdlbltin.dll relates to mdlbltin.lib

    The CONNECT SDK delivers mdlbltin.lib.  The V8 SDK delivers stdmdlbltin.lib.

    I've gotten used to managed code

    The MicroStation CONNECT SDK delivers a first-class .NET API.  The PW SDK is C++, but MostOfDavesClasses.cs provides wrappers around the C functions.

    Regards, Jon Summers
    LA Solutions