New one for me. Tested the build last night before I came to work and all fine. Try running it at work and I'm getting a VBA error:
VBA rejected the OpenBuildings Designer Application object, probably because it cannot find the proper version of the type library. Trying running 'OpenBuildings Designer /regserver' with administrator privileges.
Anyone come across this before?
All help appreciated.
you might have better response posting this in Programing forum, even though it's located under microstation umbrella. Also, any chance for the actual error message?
Wasn't sure if this was OBD only error, happy for it to be moved otherwise.
As for error, that is the exact error message:
'VBA rejected the OpenBuildings Designer Application object, probably because it cannot find the proper version of the type library. Trying running 'OpenBuildings Designer /regserver' with administrator privileges.'
There could be couple of things:
1 - Your OBD installation folder isn't the standard path (C:\program files\....). Try to do what suggested in the error message, run cmd as admin, open OBD from cmd with /regserver argument.
or 2 - You have some 32bit code in your vba that will need to be ported over to 64bit environment. Open your vba code, do a code compile, usually it will tell you where the code fails.
I have a std install here, but where I was building it at home the install was custom and it worked fine. I'll have to look at admin as it's throwing an error about the user??
then 1 thing I'd check would be testing the vba code in SS6 if you have access to. If it works there, then most likely it would be the issue with 64bit environment. Also, see if you have any missing reference in the vba project.
I get where you're coming from, but my issue is it worked on another machine in OBD CE, but get in the office and it doesn't. I was hoping for something less obvious as all of those, I would have thought, would have been an issue on the other machine?? I'll run a few more tests from home tonight and see if I can break it. Bit lost for ides otherwise.
Have you tried opening it with the right-click > Run As Administrator option just to be sure?
Also, is this Update 5? If so I think we removed most/all of the delivered VBA so it's not clear what would be attempting to load.
I'm loading VB I have in my build Steve, more specifically I'm just trying to run Autorun.mvba. Interesting enough, I can't even open this via the vba editor. Again, all of this works fine on my machine at home with the same installs and build??
Another strange one, if I set the OBD exe to 'run as admin' I start to get an error:
Ended up having to uninstall and reinstall. No idea why, but has fixed the issue.
That error was pointing to an error in the msconfig.cfg file, so that could have certainly affected the way anything and everything loaded. Any VBA would still need to locate ABD to use as the host application. Either way, glad to see it's resolved!