<xml> </xml>

SOLIDWORKS PDM Professional API Help | Send Feedback
GenerateItems Method (IEdmBatchItemGeneration)
See Also 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 > IEdmBatchItemGeneration Interface : GenerateItems Method (IEdmBatchItemGeneration)

Visual Basic
C#
C++/CLI

lParentWnd
  Parent window handle

ppoRetItems
  Array of EdmGenItemInfo structures, one structure for each new item

pbOpen

  True, if the following occurred:

  - EdmItemGenerationFlags.Eigcf_OpenItemsCheckbox was set in IEdmBatchItemGeneration::CreateTree.
  - The user selected the checkbox to open items after creation in the dialog box displayed by IEdmBatchItemGeneration::ShowDlg.

  False, if not

poCallback
  Null; reserved for future use

Creates the items added to the batch by IEdmBatchItemGeneration::AddSelection.

# Syntax

Visual Basic |
--- | ---

    Sub GenerateItems( _
       ByVal lParentWnd As System.Integer, _
       ByRef ppoRetItems() As EdmGenItemInfo, _
       ByRef pbOpen As System.Boolean, _
       Optional ByVal poCallback As System.Object _
    )

C# |
--- | ---

    void GenerateItems(
       System.int lParentWnd,
       out EdmGenItemInfo[] ppoRetItems,
       out System.bool pbOpen,
       System.object poCallback
    )

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

    void GenerateItems(
    &   System.int lParentWnd,
    &   [Out] array<EdmGenItemInfo>^ ppoRetItems,
    &   [Out] System.bool pbOpen,
    &   System.Object^ poCallback
    )

#### Parameters

lParentWnd
  Parent window handle
ppoRetItems
  Array of EdmGenItemInfo structures, one structure for each new item
pbOpen

  True, if the following occurred:

  - EdmItemGenerationFlags.Eigcf_OpenItemsCheckbox was set in IEdmBatchItemGeneration::CreateTree.
  - The user selected the checkbox to open items after creation in the dialog box displayed by IEdmBatchItemGeneration::ShowDlg.

  False, if not

poCallback
  Null; reserved for future use

# Example

Add Items (C#)
Add Items (VB.NET)

# Remarks

Return codes:

- S_OK: The method successfully executed.
- S_FALSE: One of the arguments is invalid.

# See Also

####

IEdmBatchItemGeneration Interface
IEdmBatchItemGeneration Members

# Availability

SOLIDWORKS PDM Professional 2010