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.
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.
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.
I often need to open files in one of four environments: Production, Testing, Vanilla or Read Only. I've created a shortcut for each and added them to my "Send To" menu. To open a file in the desired environment, I simply right click on the file and seect the proper shortcut - works like a charm.
Thanks Bill, this is a nice refinement of my previous suggestion of having a dedicated "Read Only" shortcut via the -R switch...will take note of it :D
Chris,
A configuration variable defined using EXPAND SET remains defined only for the remainder of the current session. To specify a configuration variable definition and at the same time save it in the user configuration variable for reference in subsequent sessions, use the EXPAND SETSAVE key-in.
Answer Verified By: Chris Albany