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


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

Remarks

This interface:

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

See Also