"Append" a value to MS_DGNLIBLIST Config Variable path?

I wish to "append" (>) another library path to the MS_DGNLIBLIST variable within my MVBA.

1.
I can use the following but it replaces the value. How can I append a value please?
' Reset value of configuration variable path
ActiveWorkspace.AddConfigurationVariable "MS_DGNLIBLIST", "C:/Documents and Settings/All Users/Application Data/Bentley/Microstation/08.11.07.443/EE_WORKSPACE/WS_Standards/Standards/dgnlib/PrintStyles/ZS_PrintStyles_PORT_LEGACY_GREY.dgnlib"

2.
I also wish to use a variable for part of the path name than hardcode it?
' Append a value to the configuration variable path
ActiveWorkspace.AddConfigurationVariable "MS_DGNLIBLIST" > "$(_EE_STANDARDS)DGNLIB/PrintStyles/ZS_PrintStyles_PORT_LEGACY_GREY.dgnlib"
' Workspace Variables used
' _EE_STANDARDS = C:/Documents and Settings/All Users/Application Data/Bentley/Microstation/08.11.07.443/EE_WORKSPACE/WS_Standards/Standards/

Cheers, Colin

Parents Reply Children
  • Ok; the key-in "mdl load cfgvars printCfgVarResource" creates "cfgvars.txt" and according to this list the variable does not require a restart of MicroStation. However, it does seem to require re-loading of the active project. How might I do this in VBA, without requiring the User to close and reopen the project?

    | Cfg Var Name             | Type           | Short Description              | Restart   | Project    |

    ----------------------------------------------------------------------------------------------------------

    | MS_DGNLIBLIST            | Filelist       | DGN Library List               | NO        | YES        |

    Or am I still missing something here?

  • Unknown said:
    Am I still missing something here?

    No: it's the way MicroStation works.  In general, you can't load a configuration 'mid-stream'.  As you've found, you have to exit MicroStation and re-start to be sure that all configuration files are processed correctly.

     
    Regards, Jon Summers
    LA Solutions