Eplan Platform API
Eplan.EplApi.HEServices Namespace / CableService Class / DoReassignWires Method / DoReassignWires(Function,Connection[],Boolean,AnyPropertyId[]) Method
Function on which this procedure will be executed.
List of templates which will be assign to wires.
If true existing wire properties can be changed.
List of properties ids. Value of those properties will not be changed. Can be NULL.

In This Topic
    DoReassignWires(Function,Connection[],Boolean,AnyPropertyId[]) Method
    In This Topic
    All wires in cable are assigned to a matching template of the cable or shielding. User specifies templates to which wires will be assigned. Works only for Eplan.EplApi.DataModel.EObjects.Cable or Eplan.EplApi.DataModel.Function with category Eplan.EplApi.DataModel.Function.Enums.Category.Shielding.
    Syntax

    Parameters

    oFunction
    Function on which this procedure will be executed.
    arrWireTemplates
    List of templates which will be assign to wires.
    bChangeExistingProperties
    If true existing wire properties can be changed.
    arrListOfExcludedAnyPropertyIds
    List of properties ids. Value of those properties will not be changed. Can be NULL.
    Exceptions
    ExceptionDescription
    If parameter is NULL.
    If parameter is invalid.
    Internal interface could not be created.
    An error occurred when reassigning wires. Please read the exception message.
    Remarks
    Every template will be used only once. A wire will be assigned to a template, only if both have the same potential type. If a wire is assigned to a template, the identifying wire properties of the template will be copied to the wire.

    Only functions with category Eplan.EplApi.DataModel.Function.Enums.Category.Cable or Eplan.EplApi.DataModel.Function.Enums.Category.Shielding can be passed as oFunction.

    See Also