Need help working from home with your Bentley software? We're here to help - click here

BASIC Macros-Unable to load whose dialog is 1

I am attempting to import Wincore data through Utilities>Macro>Microstation BASIC.  After running the wincore.bas file and then selecting to open the .clg file, I receive an error message "Unable to load whose dialog is 1". Any advise on this?

Thank you!

  • What version of Microstation are you running?
    Have you used this routine before?
    Have you updated software since then?

    MicroStation BASIC has been obsolete and unsupported for years. I wouldn't be surprised if it can't even run on the Connect version of MicroStation.

    What is this routine supposed to do? What is a CLG file?

    MaryB

    Microstation 08.11.09.829
    Power GeoPak 08.11.09.878
    Power InRoads 08.11.07.615

  • Turns out its now a .ba rather than .bas file. 

  • I wouldn't be surprised if it can't even run on the Connect version of MicroStation

    Don't be surprised: MicroStation CONNECT does not support BASIC.  It does, however, support VBA v7.1, which is a 64-bit version of Microsoft VBA.

     
    Regards, Jon Summers
    LA Solutions

  • After running the wincore.bas file and then selecting to open the .clg file, I receive an error message "Unable to load whose dialog is 1"

    A MicroStation BASIC macro always has a .bas source code file.  When you first run a macro, it is automatically compiled to a run-time .ba file.

    If a BASIC macro has a user interface (i.e. a dialog box) then it is stored directly in the .ba file.  In that case, you must run the .ba file to see the dialog, otherwise you see the error message you quoted.  If you have a BASIC macro that pops a user interface, then the .bas file is insufficient.  It's one of the snags of BASIC that you must keep track of both types of file.

     
    Regards, Jon Summers
    LA Solutions