I have an annoying situation where I am attempting to call MicroStation OpenRoads Connect series with a command line to process files using a keyin file.
I specify the command line in the format.
"C:\.....\OpenRoadsDesigner.exe" "-WKMyWorkspace" "-WWMyWorkSet" -O "-SC:\Temp\keyins.txt" "C:\DGN\MyFile.dgn"
I wish to open the file in the specified workspace and workset but if the file was used in a different workset it pops up the "WorkSet Not found Alert" dialog and stops all processing waiting for user input. It does not run the commands.
Is there a way to force MicroStation to open it in the specified workset and thus avoid the dialog pausing the process?
Thanks.
Hi Stirling,
Stirling Hamersley said:Is there a way to force MicroStation to open it in the specified workset and thus avoid the dialog pausing the process?
I have no hands-on experience with this issue, but you can try to play with configuration variables settings.
I recommend to check MS_WORKSETMISMATCH_ALERT_EXCLUDE_VARS_ALLLEVELS and MS_WORKSETMISMATCH_ALERT_EXCLUDE_VARS_WORKSPACELEVEL, from the description it seems using these variables it's possible to define what files will be not checked for correct Workspace/Workset configuration.
With regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
Hi Jan,
Thanks for the reply. I tried changing the command line to
"C:\.....\OpenRoadsDesigner.exe" "-WKMyWorkspace" "-WWMyWorkSet" "-SWMYDIR=C:\DGN\" "- SWMS_WORKSETMISMATCH_ALERT_EXCLUDE_VARS_ALLLEVELS=MYDIR" -O "-SC:\Temp\keyins.txt" "C:\DGN\MyFile.dgn"
Did not seem to work . Also tried setting configs at my user levels. No luck.