How to close workplace?
Can anyone tell me how to make a script that can close my workplace?
I have tried using the script below, but this only works when running “Windows workplace mode”, not when running “Operator workplace mode”.
Set shell = createObject("Wscript.Shell")
I do not want to use the close workplace tool on the toolbar.
Any help will be much appreciated.
I don't know if a Verb Button is a possible solution for you, ie if you accept a button in the display to close the workplace.
I would then look at Global Verbs aspect i Workplace Structure - Web System Workplace for Close_All_Overlaps to get a hint.
It's not described how to close the entire workplace. If you can't figure it out you should take contact with your local ABB representative for further support.
To use a verb button, you need to add a function to the Global Verbs script located under Web System Workplace in Workplace Structure.
// Close Workplace verb
if (workplace != null)
Now add a Verb button to your screen, and set a verb reference to point to the Close_WPlace function you added. $'vr::Web System Workplace:Close_WPlace'That's it for using a verb button.