I am trying to use the windows Environment Variable %USERNAME% in my configuration file(s) but it does not seem to work. Is there a trick to this? I something blocking it from working? When I use the %USERNAME% in the configuration that is what show in the configuration dialog not resultant system username that would allow me to point to C:\Users\mlongstreet\...
By default, the MicroStation configuration variable _USTN_USERNAME has the same value as USERNAME, which is the Windows Environment Variable.
You can test it in the key-in window using the key-in: expand echo $(environment variable name)
e.g. expand echo $(username)
_USTN_USERNAME is in my case defined by the System and is "Personal" when using MicroStation.
_USTN_USERNAME is OpenRoadsDesigner_ when using OpenRaods so that is not really going to work well.
When I key in "expand echo $(username)" it returns $(username) not the system username. Still going to add it to the config like that and see if it works.
Mike LongstreetVermont Agency of TransportationCivil Engineering Technical SupportVTCAD Help
Mike Longstreet said:When I key in "expand echo $(username)" it returns $(username) not the system username.
Look in the Message Centre (not the status bar) and see what it returns.
The key-in expand echo $(username) seems to not work for me. But using $(username) in the config did work great.
Check the Message Details in the Message Center
Nothing happening in the Message Details either.