Understanding the CancelLockCellViewP SKILL API Function

The cancel lock API allows a user to unlock a single cell view.

See Also
dsrepoCancelLockCellViewP SKILL API Function Options
dsrepoCancelLockCellViewP(
     t_libName
     t_cellName
     t_viewName
     [?force  g_force]
     [?silent g_silent]
)
=> nil / (x_pass x_fail)

If the view is locally modified, then the modifications are retained unless the ?force option is specified. If you specify the ?force option, the modifications are replaced by the last checked in version.

The command returns a list of pass and fail counts; the first integer represents the number of objects successfully unlocked and the second integer represents the number of failures. The dsrepoCancelCellViewP function lets you cancel the checkout for a single cell view only, so the returned list is (1 0) if the cancel is successful and (0 1) if the cancel fails. The function raises an error if argument checking fails. In all other failure cases, the function either raises an error or returns nil.

Note: If you have a view open for edit in a design edit window, and the user uses the API call to cancel the lock for the view, the design edit window automatically changes to read mode. If the view is open and modified, the cancel operation fails and alerts the user that the view has been modified.