DesignSync Switchlocker for Module Members

In DesignSync, the 'switchlocker' command can be used to change the lock owner of a branch for a specified object (i.e. change the lock on a file from one user to another user). Running this command on a module member in a DesignSync workspace, requires a specific syntax to properly specify the object on which you may want to run 'switchlocker':


stcl> switchlocker -modulecontext

: Name of the parent module for the module member

: Username to use for switching the lock

: The "natural path" for the module member in the parent module


For example:

stcl> switchlocker -modulecontext sync://:/Modules/TOPMOD  user1  /masterLib/nand1/schematic.sync.cds


Getting the parent module URL and module member natural path is possible via running 'vhistory' on the module member.

Because use of switchlocker for module members may not be the most intuitive operation, please consider using a simple utility script which defines a 'switchlockermember' command to simplify this operation. (See attached switchlockermember.tcl file for this script)

This client-side TCL script can be loaded into DesignSync directly (for quick testing) , via a DesignSync startup script or an auto-loaded TCL procedure. See the following SyncDocs topics for more information on this:

  • Home > Programming Guides > STCL Programmer's Guide > The stcl Environment for Client Scripts > Setting Up stcl Client Scripts > Startup Scripts
  • Home > Programming Guides > STCL Programmer's Guide > The stcl Environment for Client Scripts > Setting Up stcl Client Scripts > Autoloaded Site and Project stcl Procedures


When installed, the command syntax to use is:

stcl> switchlockermember

: Username to use for switching the lock

: The module member in the workspace


For example:

stcl> switchlockermember  user1  schematic.sync.cds


Only the and the workspace object need to be specified, the script will determine the parent module and module member natural path for you, and execute the appropriate 'switchlocker' operation.


Hopefully, you find this utility useful. Please let me know if you have any questions on its installation and use.


switchlockermember.tcl



Tips and Tricks ​​​​​​​