Hi,
I am working on GSA project with a graphical source (SQL server spatial).
The data is located in several DGN files, one for each location.
I have included key-ins to automatically connect to the data sources when opening Bentley Map and to automatically lock the features in the current DGN file.
However if I change DGN file directly without closing and opening Bentley Map my connection to the graphical source is lost.
My initial key-ins are implemented as MS_GEOINITCMD and are only executed when opening Bentley Map.
However does anyone know if it is possible to keep the connection to the graphical source when I change DGN file?
I am using Bentley Map SS4 08.11.09.882.
Thanks.
Jens,
Adding the following configuration variable...
GDI_KEEP_CONNECTION_OPEN_ON_FILE_CLOSE=1
...to your workspace should preserve the graphical source connection when changing design files.
Please note that Bentley Map is designed to automatically close the graphical source connection when changing design files. This default behavior ensures that the user connects to the appropriate graphical source for each design file as it is opened. Adding the above configuration variable overrides the default behavior and should be used with care. It is your responsibility to ensure that all opened design files contain data from the same graphical source connection.
Regards,
Jeff Bielefeld [Bentley]
Answer Verified By: Jens Popp Andersen
In addition to Jeff's solution, you can also use runmacro.ma that's delivered with Bentley Map. I've tested it with your version of Bentley Map and it works fine. Since you can use this macro for running any command, it could be useful for performing other tasks when you open a file.
https://communities.bentley.com/communities/other_communities/askinga/w/askinga/1103/run-commands-or-basic-macro-when-opening-files
Thank you both.
Currently there will only be one graphical source so I will go with the configuration variable.
Best Regards,
Jens