Harness proD API Help
EPLAN.Harness.API.DataStructures.LibraryConnections Namespace / ActiveConnection Class / GetLibraryPartByPartNumber<T> Method
Library part type.
Desired part number.
Desired part's version.
Ignore revision part of version number.
Desired part's variant.
In This Topic
    GetLibraryPartByPartNumber<T> Method
    In This Topic
    Get first library part of required type with following partNumber (and optionally variant and version).
    Syntax
    public T GetLibraryPartByPartNumber<T>( 
       string partNumber,
       PartVersion version,
       bool ignoreRevision,
       string variant
    )
    where T: BaseConstructionItem

    Parameters

    partNumber
    Desired part number.
    version
    Desired part's version.
    ignoreRevision
    Ignore revision part of version number.
    variant
    Desired part's variant.

    Type Parameters

    T
    Library part type.

    Return Value

    Part with desired name (and version and variant).
    Exceptions
    ExceptionDescription
    The exception that is thrown when the project has no active library.
    Argument is invalid. The exception is thrown when a wrong argument is passed to the method or the setter of property.
    Argument is null.
    See Also