Eplan Platform API
Eplan.EplApi.HEServices Namespace / NameService Class / RenameDevice Method / RenameDevice(Project,FunctionBasePropertyList,FunctionBasePropertyList,Boolean,Boolean) Method
Project for which functions of device will be renamed.
List of name properties of device that functions will be renamed. Device without DT cannot be renamed so this list cannot be empty. Device must exist otherwise method throws exception.
List of name properties that will be set to functions of device, can be empty.
If true then connection of this device (example: wires of cable) also will be renamed.
IF true then describing properties of functions will not be changed.

In This Topic
    RenameDevice(Project,FunctionBasePropertyList,FunctionBasePropertyList,Boolean,Boolean) Method
    In This Topic
    Rename all functions of device.
    Syntax

    Parameters

    Parameter NameDescription
    pProjectProject for which functions of device will be renamed.
    pOldNameList of name properties of device that functions will be renamed. Device without DT cannot be renamed so this list cannot be empty. Device must exist otherwise method throws exception.
    pNewNameList of name properties that will be set to functions of device, can be empty.
    bRenameCDPsAlsoIf true then connection of this device (example: wires of cable) also will be renamed.
    bKeepDescribingPropsIF true then describing properties of functions will not be changed.
    Exceptions
    ExceptionDescription
    Thrown when cannot find device from pOldName or trying to rename device without DT.
    Thrown if NULL was passed as a required parameter.
    See Also