Lock Shortcut ?

 From:  Michael Gibson
2837.3 In reply to 2837.2 
Hi Burr, yup that will work since back some time ago I added "gd" as a global available to scripts that is the same as moi.geometryDatabase

So it can just be:
script:gd.lock();

I generally try not to make scripts that use that though, because they are not compatible with version 1 that does not have "gd" set up as a predefined global variable.

However in this case it's not compatible with v1 anyway since lock is only available in v2.

The "regular" full way would be this:
script:moi.geometryDatabase.lock();

- Michael