Eplan Platform API
Eplan.EplApi.HEServices Namespace / CableService Class / FindMatchingTemplatePairs Method
Project on which this operation will be executed.
Contains pairs wire and template which will be assign to the wire.
If true matching procedure act as existing properties could be changed.
List of properties ids which wouldn't be changed. Can be NULL.
Function that contains information for sorting rules. Can be NULL.
If true and bChangeExistingProperties is true another wire with higher sorting order may be match to the template instead of the old assigned wire.

In This Topic
    FindMatchingTemplatePairs Method
    In This Topic
    Matches templates and wires. No changes on objects are performed.
    Syntax

    Parameters

    Parameter NameDescription
    oProjectProject on which this operation will be executed.
    arrTemplatesToWiresContains pairs wire and template which will be assign to the wire.
    bChangeExistingPropertiesIf true matching procedure act as existing properties could be changed.
    arrListOfExcludedAnyPropertyIdsList of properties ids which wouldn't be changed. Can be NULL.
    oSortInfoCableFunction that contains information for sorting rules. Can be NULL.
    bDividePairsBeforeReassignIf true and bChangeExistingProperties is true another wire with higher sorting order may be match to the template instead of the old assigned wire.

    Return Value

    Result is return as array of KeyValuePair. Key contain template and Value contain a Connection (wire). If no match was found for a wire then Key for its pair is NULL. If no match was found for a template then Value for its pair is NULL.
    Exceptions
    ExceptionDescription
    If necessary parameter is NULL.
    If a parameter is invalid.
    The internal interface could not be created.
    An error occurred when matching wires. Please read the exception message.
    Remarks
    Function tries to find a template for every wire. A matching template will be found for a wire, only if both have the same potential type.
    See Also