<xml> </xml>

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

Visual Basic
C#
C++/CLI

Allows you to access the contents of a file or folder data card.

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 IEdmEnumeratorVariable5

C# |
--- | ---

    public interface IEdmEnumeratorVariable5

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

    public interface class IEdmEnumeratorVariable5

# Example

Change Card Variables Add-in (VB.NET)
Change Card Variables Add-in (C#)
Set Part Number Using Default Serial Numbers (C#)
Set Part Number Using Default Serial Numbers (VB.NET)

# Remarks

This interface:

- inherits from IDispatch. See IDispatch Interface (Automation).
- is extended by IEdmEnumeratorVariable6 which adds the ability to read a variable directly from the database.

The IEdmEnumeratorVariablen interface is a pointer to a file. If this pointer is not released, then other operations on the file can fail with a sharing violation. The recommendation in SOLIDWORKS PDM Professional 2008 and later is to always call IEdmEnumeratorVariable8::CloseFile when you are finished updating a file to make it possible for other applications and API functions to access the file. This replaces the earlier work-around to explicitly clear IEdmEnumeratorVariable pointers (set them to Nothing in Visual Basic and call Marshal.ReleaseComObject in .NET).

IEdmEnumeratorVariablen interfaces on the following do not need calls to IEdmEnumeratorVariable8::CloseFile:

- folders (cast IEdmFolder5 to this interface)
- file data cards (for add-ins, this interface is stored in EdmCmd::mpoExtra of the poCmd argument returned in IEdmAddIn5::OnCmd only when EdmCmd::meCmdType = EdmCmdType.EdmCmd_CardButton or EdmCmdType.EdmCmd_CardInput)

# Accessors

IEdmAddIn5::OnCmd

IEdmFile5::GetEnumeratorVariable

IEdmFolder5

# See Also

####

IEdmEnumeratorVariable5 Members
EPDM.Interop.epdm Namespace