General InformationThis opening ID is invoked when using Merge Branches. This opening ID is used to customize the default behavior of the command by specifying attributes for the resulting branch of the merge.
Input ObjectsInput objects must be of the following types:
Context Object Parameters
SampleThe following sample illustrates how to enable the merge of two segments based on the segregation attribute of their branches. Let ExtOfThisBranch(SegmentExtremity) Let ExtOfSecondBranch(SegmentExtremity) Let SegOfThisBranch(Segment) Let SegOfSecondBranch(Segment) Let SegregOfSegofThisBranch(String) Set ExtOfThisBranch = Parameters.GetAttributeObject("FirstBranchExtremity") Set ExtOfSecondBranch = Parameters.GetAttributeObject("SecondBranchExtremity") Set SegOfThisBranch = ExtOfThisBranch.Owner Set SegOfSecondBranch = ExtOfSecondBranch.Owner Set SegregOfSegofThisBranch = SeOfgThisBranch.Elec_Segreg if(SegregOfSegofThisBranch == SegOfSecondBranch.Elec_Segreg AND SegregOfSegofThisBranch == "HT") { Parameters.SetAttributeInteger("MergeSegments", 1) } else { Parameters.SetAttributeInteger("MergeSegments", 0) } |