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.
dkleinot said:Why is it saying that this function (and others) are not in the stdmdlbltin?
The only documentation we have about declarations of MDL functions for use in VBA is in the MicroStation V8 SDK help MDL Function Reference. The VBA declarations there are not available in the equivalent MicroStation Help for the MicroStationAPI.
For each VBA declaration we have to make the appropriate edits:
Feel free to post an Idea asking for VBA declarations to be included once again in MicroStationAPI help. From what you've told us, it looks like mdlStringList_getMember is implemented in another DLL.
If VBA complains (errors at run time) about a DLL, then you have to find it. Here are some suggestions.
Regards, Jon Summers LA Solutions
So, what I don't understand then, is how is your code working and mine isn't? Do I have a bad version of the dll? Or did something change and both ours broke?
I will look over your suggestions (Idea and DLL) and let you know.
dkleinot said:what I don't understand then, is how is your code working and mine isn't?
The code available as a VBA project from my article was developed for MicroStation V8. As I mentioned, I haven't had time to port it to CONNECT. I don't have a version that works in CONNECT.
Ah, ok thanks.