API Help
Eplan.EplApi.DataModel.EObjects Namespace / Terminal Class / Create Method / Create(PLC,SymbolVariant) Method
PLC where the Terminal will be located on
Eplan.EplApi.DataModel.MasterData.SymbolVariant representing the graphical symbol of the terminal

In This Topic
    Create(PLC,SymbolVariant) Method
    In This Topic
    Creates a Terminal object related to a PLC given as the parameter and having a Category equal to PLC_TERMINAL. Its graphical symbol is taken from a Eplan.EplApi.DataModel.MasterData.SymbolVariant given as the second parameter.
    Syntax
    public void Create( 
       PLC plc,
       SymbolVariant variant
    )
    public:
    void Create( 
       PLC^ plc,
       SymbolVariant^ variant
    ) 

    Parameters

    plc
    PLC where the Terminal will be located on
    variant
    Eplan.EplApi.DataModel.MasterData.SymbolVariant representing the graphical symbol of the terminal
    Exceptions
    ExceptionDescription
    Thrown when the Terminal cannot be created.
    Thrown when plc parameter is null.
    Thrown when variant parameter is null.
    Thrown when the function has already been created.
    Thrown when the variant does not represent a Terminal that can be related to PLC device.
    See Also