<xml> </xml>

SOLIDWORKS PDM Professional API Help | Send Feedback
GetNext2 Method (IEdmSelectionList6)
See Also

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 > IEdmSelectionList6 Interface : GetNext2 Method (IEdmSelectionList6)

Visual Basic
C#
C++/CLI

poPos
  IEdmPos5; position of the item to get (see Remarks)

poSel
  EdmSelectionObject structure

Gets the next item in this list.

# Syntax

Visual Basic |
--- | ---

    Sub GetNext2( _
       ByVal poPos As IEdmPos5, _
       ByRef poSel As EdmSelectionObject _
    )

C# |
--- | ---

    void GetNext2(
       IEdmPos5 poPos,
       out EdmSelectionObject poSel
    )

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

    void GetNext2(
    &   IEdmPos5^ poPos,
    &   [Out] EdmSelectionObject poSel
    )

#### Parameters

poPos
  IEdmPos5; position of the item to get (see Remarks)
poSel
  EdmSelectionObject structure

# Example

See the IEdmSelectionList5 examples.

# Remarks

Before calling this method the first time, you must populate poPos with the interface to the position of the first item, IEdmPos5. Call IEdmSelectionList5::GetHeadPosition to obtain IEdmPos5.

After calling this method the first time, poPos is automatically incremented every time it is called. Call this method repeatedly to obtain the rest of the items.

Be sure to call IEdmPos5::IsNull before you call this method to ensure you have not reached the end of the enumeration.

C++ programmers must free the object returned in poSel.

Note: Objects added with the now obsolete IEdmSelectionList5::AddTail are not completely defined. If you added an object using IEdmSelectionList5::AddTail, the EdmSelectionObject structure returned by this method contains the following:

- The meType member is always EdmObjectType.EdmObject_File.
- The mbsPath member contains only the file name provided as argument to IEdmSelectionList5::AddTail, not the entire path.
- The members mlGetVersion, mlLocalVersion, and mlLatestVersion are all -1.

To add completely defined objects to this list, call IEdmSelectionList6.AddTail2.

Return codes:

- S_OK: The method successfully executed.
- E_EDM_END_OF_LIST: You have gone past the end of the list.

# See Also

####

IEdmSelectionList6 Interface
IEdmSelectionList6 Members

# Availability

SOLIDWORKS PDM Professional 2010