Is there any way to get back removed data shourtcuts of a surface once its removed?
If you mean it's been removed from the Data Shortcut listing in Prospector, it can be added to the list again by:
Opening the Source.dwg for this surface>right click on "Data Shortcuts" on Prospector Tab of Toolspace and select "Create Data Shortcuts".
select the surface name>OK.
It should appear in the Data Shortcuts listing.
I'm not aware of any way to lock the data shortcuts xml files for certain users.
Why not come up with a workflow process where for example 1 user on project team is responsible for creating and maintaining all data shortcuts?
Or better yet, train the problem staff who are removing these shortcuts so it stops happening.
Has anyone tried setting the Data Shorrtcut files to Read Only?
Even better, under the security tab, change the permissions for the different types of office staff. Hopefully your IT department has some good policies to seperate users into logical groups, or it can be done per user.
setting the xml file to read only may not be fool proof i suppose, since once the data shortcuts are created, you can delete this xml file and the data shortcuts will still stay and synchronize like before. i think you will only have trouble creating new data shortcuts with the xml gone, but a user can still remove a data shortcut from the prospector.
How about adding a line to the startup which will set SHORTCUTNODE to zero? this will hide the entire data shortcut area from the prospector for the users selected. in that case, the user will not be able to create data shortcuts when required, without setting SHORTCUTNODE to 1.