public KeyValuePair<Connection,Connection>[] FindMatchingTemplatePairs( Project oProject, Connection[] arrTemplatesToWires, bool bChangeExistingProperties, AnyPropertyId[] arrListOfExcludedAnyPropertyIds, Function oSortInfoCable, bool bDividePairsBeforeReassign )
Parameters
- oProject
- Project on which this operation will be executed.
- arrTemplatesToWires
- Contains pairs wire and template which will be assign to the wire.
- bChangeExistingProperties
- If true matching procedure act as existing properties could be changed.
- arrListOfExcludedAnyPropertyIds
- List of properties ids which wouldn't be changed. Can be NULL.
- oSortInfoCable
- Function that contains information for sorting rules. Can be NULL.
- bDividePairsBeforeReassign
- If 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.