Harness proD API Help
EPLAN.Harness.API.DataStructures.LibraryConnections Namespace / ActiveLibraryConnection Class / GetAccessoryListByPartNumber Method
Desired part number.
Example
In This Topic
    GetAccessoryListByPartNumber Method (ActiveLibraryConnection)
    In This Topic
    Get library accessory list by part number.
    Syntax
    public AccessoryList GetAccessoryListByPartNumber( 
       string partNumber
    )

    Parameters

    partNumber
    Desired part number.

    Return Value

    Accessory list with the desired name.
    Exceptions
    ExceptionDescription
    The exception that is thrown when the project has no active library.
    Argument is null.
    Example
    This example shows how to get accessory list from a connected library using part name.
    // Open a project beforehand.
    Project project = ...
    
    BaseLibraryPart accessoryList = project.ActiveConnection.GetAccessoryListByPartNumber("part number");
    See Also