1.) Download the following zip file, extract it, and put api_key.txt and BoxLock.js in C:\ProgramData\Bluebeam Software\Bluebeam Revu\21\Revu\JavaScript
2.) Update api_key.txt with your BoxLock API key
3.) In Bluebeam, go to Tools-->Form-->Javascript and create a new script called “BoxLock”
4.) Paste the following 2 lines into the script and save it (replacing SHEET_NAME etc with name of sheet):
boxlockStartTimer(
this,
"SHEET_NAME,
30000
);5.) Close and re-open the file. Note: you will have to do step 4 for every file in which you want the BoxLock integration enabled for
6.) Add a form button to the document (https://support.bluebeam.com/user-manual/menus/tools/form-menu.html). Button name and Button label must say “Pause” (with capital P)
7.) Add a javascript trigger to the form button with the following code:
boxlockToggleTimer();
var btn = this.getField("Pause");
if (btn) {
var caption = btn.buttonGetCaption();
if (caption == "Pause") {
btn.buttonSetCaption("Resume");
} else {
btn.buttonSetCaption("Pause");
}
}