API Help
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

    pProject
    Project for which functions of device will be renamed.
    pOldName
    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.
    pNewName
    List of name properties that will be set to functions of device, can be empty.
    bRenameCDPsAlso
    If true then connection of this device (example: wires of cable) also will be renamed.
    bKeepDescribingProps
    IF 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.
    Null was passed to a parameter.
    See Also