Eplan Platform API
Eplan.EplApi.DataModel.MasterData Namespace / WindowMacro Class / ChangeCurrentVariant Method
Input parameter - Representation Type
Input parameter - Variant id

In This Topic
    ChangeCurrentVariant Method
    In This Topic
    Change current representation type and variant of macro This function is more efficient as changing the Properties RepresentationType and Variant separately besides, this function throws an exception, if the variant does not exist
    Syntax
    public void ChangeCurrentVariant( 
       WindowMacro.Enums.RepresentationType nRepType,
       int nVariant
    )
    public:
    void ChangeCurrentVariant( 
       WindowMacro.Enums.RepresentationType nRepType,
       int nVariant
    ) 

    Parameters

    nRepType
    Input parameter - Representation Type
    nVariant
    Input parameter - Variant id
    Exceptions
    ExceptionDescription
    Thrown when parameters are not valid. p.e. a wrong Representation type or variant.
    See Also