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.

Thanks,

Parents Reply
  • When I call the mdlDialog_fileOpen, it is like the user opening a file and getting the PW interface

    When PW Explorer is installed, it adds an app mcm to MicroStation's app folder (..\MicroStation\mdlapps).  That app is automatically loaded when you start MicroStation.  Amongst other things, it hijacks MicroStation's user interface.

    mdlDialog_fileOpen is intended for the user to open a single DGN file.

    mdlFileList_edit uses a structure called StringListP.  I cannot find a way to use this structure

    A StringList dates from the earliest days of MDL, when VBA wasn't even  a glint in Microsoft's eye.  It uses dynamic memory allocation both for the list it manages and the strings contained in that list.  VBA is bad at dynamic memory and doesn't understand C++ pointers.  It would not be easy to attempt to use a StringList from VBA.

    You get a MicroStation crash because you must deallocate memory used by the StringList.  VBA has no way to deallocate memory.

    PW lacks a VBA API.

    You can write PW Explorer code using C++ or C#.  Visit the PW Programming Forum I mentioned above.

     
    Regards, Jon Summers
    LA Solutions

Children