<xml> </xml>

SOLIDWORKS PDM Professional API Help | Send Feedback
IEdmBatchUpdate2 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 : IEdmBatchUpdate2 Interface

Visual Basic
C#
C++/CLI

Allows you to set the values of several file and folder card variables 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 IEdmBatchUpdate2

C# |
--- | ---

    public interface IEdmBatchUpdate2

C++/CLI |
--- | ---

    public interface class IEdmBatchUpdate2

# Example

Batch Update Card Variables (VB.NET)
Batch Update Card Variables (C#)

# Remarks

This interface:

- inherits from IDispatch. See IDispatch Interface (Automation).
- supersedes IEdmBatchUpdate, which can only update file variables.

To set the values of file and folder card variables:

1. Access this interface by calling IEdmVault7::CreateUtility, passing in EdmUtility.EdmUtil_BatchUpdate.
2. Call IEdmBatchUpdate2::SetVar once for each file card variable you want to update. You must first check out the files whose card varibles you want to update.
3. Call IEdmBatchUpdate2::SetFolderVar once for each folder card variable you want to update.
4. Call IEdmBatchUpdate2::CommitUpdate to commit all of the file and folder card variable changes.

Prior to SOLIDWORKS PDM Professional 6.2, the only way to set file card variables was to use IEdmEnumeratorVariable, which can handle only one file or folder card variable at a time. As of SOLIDWORKS PDM Professional 6.2, you should use IEdmBatchUpdate2, which can handle several file and folder card variables at a time.

# Accessors

IEdmVault7::CreateUtility

# See Also

####

IEdmBatchUpdate2 Members
EPDM.Interop.epdm Namespace