Hi.
I apologize if this is not the right place to rise our problem.
Description: We are facing a problem related to VBA access in Bentley Map. Our setup is made over the network drive: we substitute the local C:\Program Files\Bentley\Bentley (Select Series v8i)\Microstation\config\msconfig.cfg with an extended one, that basically instructs Bentley Map to read many cfg files from network drive. The network drive is outside our local network (in a different city).
Problem: Occasionally, one of the VBA macro loaded into the setup fails to run. If we edit the macro, it says "Read only", and ask us to save it in a different location; even if this saving location is a local drive, the saved file is always 0 size. In the same Bentley Map session, if we create a new vba project, there are no problems editing/saving it. The part with "read only" can be understood if there are multiple users accessing the macro. But why it's not possible to save it elsewhere? From inside VBA, if we export the modules/forms/classes from this VBA on the local disk, they are saved.
We don't care giving write access for our operators, but we require them to execute it... I said occasionally, because at some point, after a while, the VBA starts to behave normally, on the same PC, with the same configuration, with the same references, etc. Therefore we know that the macro is fine. When we try to execute any function inside, it complains about "Could not load reference... reference not found", and the other thing is the one described above. We had checked all of the references, and they are ALL accessible from the local machine.
At this point, we are clueless about why this is happening. We are not even able to reproduce the problem... it just happens (frequently), and then dissapears. We would appreciate very much if anybody could point us to the right track to solve this issue.
Thanks a lot for paying attention to this problem.
This post is followed on the page "communities.bentley.com/.../61285.aspx"
A friendly pointer for future reference... to prevent parallel discussions on the same topic, please post inquiries in only one community forum.
I think the first thing you should do is verify that if you copy everything locally, it works 100% of the time. That would eliminate possible problems in the script, timing issues etc.
Networks are not 100% reliable. It's possible that sometimes some of the cfg files don't load properly from the network. Maybe this could explain that in one session some macros fail whereas they work fine in the next session...