Eplan Platform API
Eplan.EplApi.HEServices Namespace / DeviceService Class / CreateFunctions Method
The project in which the new function will be created.
The full DT to which the function will be assigned
This parameter defines the numbering patern
This parameter defines the function definition used for the new functions
This parameter defines terminal's device position. It is applicable if the function to be created is terminal or plug
This parameter defines terminal's sorting order. It is applicable if the function to be created is multilevel terminal.
If this parameter is set to true, it means multilevel terminals are formed
This parameter defines how many levels each generated multi-level terminal has.
If this parameter is set to true, the terminals are numbered by level. If set to false, the terminals are numbered by terminal.

In This Topic
    CreateFunctions Method (DeviceService)
    In This Topic
    Creates new functions for a new or existing DT according to a particular numbering pattern. This functionality is only available for particular functions (terminals, pins, coil and relay contacts, device, and PLC connections and busbars). Depending on the selected function definition, the numbering pattern defines either terminal, contact, or connection point designations.
    Syntax

    Parameters

    Parameter NameDescription
    oProjectThe project in which the new function will be created.
    strFullDeviceTagThe full DT to which the function will be assigned
    strNumberingPatternThis parameter defines the numbering patern
    oFuncDefThis parameter defines the function definition used for the new functions
    nNewTerminalDevicePositionThis parameter defines terminal's device position. It is applicable if the function to be created is terminal or plug
    nNewTerminalSortCodeThis parameter defines terminal's sorting order. It is applicable if the function to be created is multilevel terminal.
    bMultilevelTerminalsIf this parameter is set to true, it means multilevel terminals are formed
    nNumberOfLevelsThis parameter defines how many levels each generated multi-level terminal has.
    bNumberByLevelsIf this parameter is set to true, the terminals are numbered by level. If set to false, the terminals are numbered by terminal.
    Exceptions
    ExceptionDescription
    Is thrown in case of invalid arguments.
    Is thrown, if some of the arguments are NULL.
    A necessary internal interface for creating devices could not be created.
    If an error occurred while creating a device.
    See Also