Click or drag to resize

IImportSetManagerGetNewBuilder Method

Retrieves a new ImportSetBuilder which can be used to describe the sources that need to be imported.

Namespace:  EdaIntegrationContract.Import
Assembly:  EdaIntegration.Contract (in EdaIntegration.Contract.dll) Version: 1.0
Syntax
C#
IImportSetBuilder GetNewBuilder()

Return Value

Type: IImportSetBuilder
IImportSetBuilder
Examples
The following example demonstrates how to retrieve an ImportSetBuilder and use it to import data.
C#
using EdaIntegrationContract;
using EdaIntegrationContract.Case;
using EdaIntegrationContract.Import;

class Sample
{
    public static void Main()
    {
        var edaIntegration = new EdaIntegration().ConnectToExplore();
        ICase edaCase = edaIntegration.Cases.OpenCaseByName("Case 1");
        var inputFiles = new List<string> ()
        {
              @"C:\Temp\SomeFolder\Data1",
              @"C:\Temp\SomeFolder\Data2",
              @"C:\Temp\AnotherFolder\Data",
        };

        IImportSetBuilder builder = edaCase.Imports.ImportSets.GetNewBuilder();
        builder.AddSources(inputFiles, true);
        edaCase.Imports.ImportSets.StartImport(builder);
    }
}
See Also