Harness proD API Help
EPLAN.Harness.API.DataStructures.LibraryConnections Namespace / ActiveConnection Class / CopyPart<T> Method
Type of the copied and result part.
Part to be copied.
In This Topic
    CopyPart<T> Method
    In This Topic
    Copy library part.
    Syntax
    public T CopyPart<T>( 
       T part
    )
    where T: BaseConstructionItem

    Parameters

    part
    Part to be copied.

    Type Parameters

    T
    Type of the copied and result part.

    Return Value

    Created copy of the given part.
    Exceptions
    ExceptionDescription
    Argument is null.
    You can not perform this action on a document opened as read only.
    The exception that is thrown when the part is not found in the library.
    This operation was denied because of your license.
    The operation was not successful.
    Remarks
    PartNumber of the copied part is suffixed with an index, same as in the GUI.
    See Also