Harness proD API Help
EPLAN.Harness.API.Projects.Documents Namespace / Project Class / CreateVariant Method
Variant name
In This Topic
    CreateVariant Method
    In This Topic
    Create a new variant in this project.
    Syntax
    public Variant CreateVariant( 
       string name
    )

    Parameters

    name
    Variant name

    Return Value

    New variant.
    Exceptions
    ExceptionDescription
    The object is in invalid state. Obtain a new one.

    Internal error of HpD or HpD API.

    IMPORTANT: Throwing this exception changes HpD Api's state to Failed.

    Argument is invalid. The exception is thrown when a wrong argument is passed to the method or the setter of property.
    The operation was not successful.
    This name is already taken. Pick a different one.
    See Also