Hello,
Firstly, why do I want read - only? I am often checking design files and do not want to change anything. Other times I may want to edit the design file. I am attempting a simple tool to run a key-in the switch into and out of read-only mode (close design and re-open design).
I am having some difficulties with this effectively changing MicroStation to read-only.
Using the keyin expand set MS_READONLY = 1 will change the active design file to read-only in memory only (does not save the ucf file). This can be checked using the keyin expand echo $(MS_READONLY) and viewing the message center details.
Closing the design file will show the open as read only option as greyed out, but not selected. See attached screen shot.
Opening the design file again does not open in read only mode.
Am I missing something or doing something wrong here? Any help please.
Thanks,
Chris.
Hello Chris,
I believe you will have to exit MicroStation for this change to be set, a simple reopen of the file (or rd= keyin) following the keyin will not work.
I used to do something similar by dragging the files I wanted to open in read-only over a copy of MicroStation's shortcut with the "-R" command line switch set. Also if you disable "Automatically Save Design Changes" in the Preferences, you would minimize the risk of inadvertently changing your files as you will have to manually click "Yes" at the save changes prompt when closing a file.
Hello Carl,
Unfortunately exiting and re-opening MicroStation does not keep the read only setting. It appears that this has been set in memory only, for the open session, and will not retain it once an exit has occurred.
I have not posted a service ticket for this issue as I am unsure if MicroStation is behaving as intended with this setting. Perhaps someone from Bentley might reply?
Thanks again Carl for your response.
Thanks Marco.
I would prefer to change as little settings as possible. I was simply trying to save on a couple of steps to switch between read-only and edit. It is not tedious currently, I am just of the opinion that if I am repeating a few steps several times a day, then there just might be an easier and quicker way of doing that.
Hi Chris,
disabling the "Automatically Save Design Changes" preference will simply open the file in write mode but will force you to commit all changes made by clicking on "Yes" at the "save changes prompt" when closing a file that hasn't been manually saved. This way any unwanted changes will be discarded if you click "No" at the aforementioned prompt.