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.| Visual Basic | |
|---|---|
Public Interface IEdmEnumeratorVariable5 | |
| C# | |
|---|---|
public interface IEdmEnumeratorVariable5 | |
| C++/CLI | |
|---|---|
public interface class IEdmEnumeratorVariable5 | |
Change Card Variables Add-in (C#)
Set Part Number Using Default Serial Numbers (C#)
Set Part Number Using Default Serial Numbers (VB.NET)
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)