SOLIDWORKS PDM Professional API Help Send Feedback
IEdmBatchUnlock Interface
See Also  Members   Example
EPDM.Interop.epdm Namespace : IEdmBatchUnlock Interface


Allows you to unlock, check in, or undo check-outs of multiple files all at once.


NOTE: Click the Members link, located near the top of the topic, to see this interface's methods and properties.

Syntax

Visual Basic 
Public Interface IEdmBatchUnlock 
C# 
public interface IEdmBatchUnlock 
C++/CLI 
public interface class IEdmBatchUnlock 

Example

Remarks

This interface:

To unlock, check in, or undo the check-outs of multiple files in one batch:

  1. Access this interface by calling IEdmVault7::CreateUtility, passing in EdmUtility.EdmUtil_BatchUnlock.
  2. Call IEdmBatchUnlock::AddSelection to specify the files to unlock.
  3. Call IEdmBatchUnlock::CreateTree to create the file reference tree.
  4. Optionally call IEdmBatchUnlock::ShowDlg to display the SOLIDWORKS PDM Professional Check In or Undo Check Out dialog box.
  5. Call IEdmBatchUnlock::GetFileList to get the files affected by the unlock operation.
  6. Call IEdmBatchUnlock::UnlockFiles to perform the batch unlock operation.

Using this interface to unlock, check in, or undo check-outs is more efficient than calling IEdmFile5::UnlockFile or IEdmFile5::UndoLockFile for each file.  

You can obtain an IEdmRefItemContainer interface from IEdmBatchUnlock by assignment (QueryInterface in C++).

Accessors

See Also