Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 7260

[CONNECT C++] Predefined variables not loaded before rest of workspace

$
0
0

I just noticed that in Update 6, all of the workspace configuration files get loaded before the MicroStation Manager is displayed.

This seems to be different to all previous versions of MicroStation back to v5 at least, and makes it much harder for me to configure anything.

My program uses a configuration file to set up its own paths, and it no longer works because some of the predefined variables have not loaded until after the MicroStation Manager is displayed.

For example, my script uses a simple shared config file to differentiate the different platforms in order to supply the correct binaries for each platform/version.

%if defined (_VERSION_10_0)

# Do this for Connect Edition
...

%elif defined (_VERSION_8_11)

# Do this for MicroStation V8i
...

%elif defined (_VERSION89)

# Do this for MicroStation XM
...

%elif defined (_VERSION80)

# Do this for MicroStation V8.5
...

%endif


This does not work in Connect because it seems the predefined variable has not yet been defined before the MM is shown. It also seems that all config files are read at this point, whereas in previous MicroStation versions, config files were loaded after the MM and all predefined variables were already defined.

Is there any way I can get my config to be loaded after all variables are predefined in Connect? Obviously I could manually load a config file in code, but I need to set my paths before any code is called.

Cheers.


Viewing all articles
Browse latest Browse all 7260

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>