<xml> </xml>

SOLIDWORKS PDM Professional API Help | Send Feedback
IEdmBatchUnlock Interface
See Also Members Example

Collapse All Expand All Language Filter: All Language Filter: Multiple Language Filter: Visual Basic Language Filter: C# Language Filter: C++/CLI

EPDM.Interop.epdm Namespace : IEdmBatchUnlock Interface

Visual Basic
C#
C++/CLI

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

Batch Check In Files (C#)
Batch Check In Files (VB.NET)
Access Check-in Flags in Check out Dialog (C#)
Access Check-in Flags in Check out Dialog (VB.NET)
Prevent Admin from Checking In File (C#)
Prevent Admin from Checking In File (VB.NET)

# Remarks

This interface:

- inherits from IDispatch. See IDispatch Interface (Automation).
- is extended by IEdmBatchUnlock2.

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

IEdmVault7::CreateUtility

# See Also

####

IEdmBatchUnlock Members
EPDM.Interop.epdm Namespace