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 pathActiveWorkspace.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 pathActiveWorkspace.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
Unknown said:I also wish to use a variable for part of the path name than hardcode it
What isn't working?
_EE_STANDARDS = C:/ ... /Standards/ # OK
MS_DGNLIBLIST > $(_EE_STANDARDS)DGNLIB/PrintStyles/ZS_PrintStyles_PORT_LEGACY_GREY.dgnlib
Should append the DGNLIB to the list. Make sure that file really exists!
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
Regards, Jon Summers LA Solutions
Everything now works except for updating a configuration variable so that Print Organiser can see the new value. Even though I can confirm the MS_DGNLIBLIST has a new path to search, it doesn't seem to include the new Print Style DGNLIBs within that path, unless I close the DGN file and re-open it again?
The following link makes mention that changes to config variables only take effect once you restart MicroStation. That is precisely what I am seeing, but wish to overcome, for the new value I have assigned to MS_DGNLIBLIST?
communities.bentley.com/.../49172.aspx
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.