Harness proD API Help
EPLAN.Harness.API.DataStructures.LibraryConnections Namespace / ActiveConnection Class / CreateNewVariant<T> Method
Type of the template and result variant.
Template part.
Name of the new variant.
In This Topic
    CreateNewVariant<T> Method
    In This Topic
    Create new variant from given part.
    Syntax
    public T CreateNewVariant<T>( 
       T part,
       string variant
    )
    where T: BaseLibraryPart

    Parameters

    part
    Template part.
    variant
    Name of the new variant.

    Type Parameters

    T
    Type of the template and result variant.

    Return Value

    Created variant of part.
    Exceptions
    ExceptionDescription
    Argument is null.
    Argument is invalid. The exception is thrown when a wrong argument is passed to the method or the setter of property.
    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.
    See Also