General InformationThis opening ID is invoked when you select the second branch of the two branches to be merged.
Input ObjectsInput objects must be of the following types:
Context Object Parameters
For more information, see Electrical 3D Part Design: Using Immersive Branch Definition: Manipulating Branches: Merging Branches. SampleThe following sample illustrates how to validate the merge of two branches by checking the compatibility of their segments' separation code. Let ExtThisBranch(SegmentExtremity) Let ExtSecondBranch(SegmentExtremity) Let SegThisBranch(Segment) Let SegSecondBranch(Segment) Let SepCodeSegOfThisBranch(String) Let SecondBranch(Branch) Set Validation = true Set ExtThisBranch = Parameters.GetAttributeObject("FirstBranchExtremity") Set ExtSecondBranch= Parameters.GetAttributeObject("SecondBranchExtremity") Set SecondBranch = Parameters.GetAttributeObject("SecondBranch") Set SegThisBranch= ExtThisBranch.Owner Set SegSecondBranch = ExtSecondBranch.Owner Set SepCodeSegOfThisBranch = SegThisBranch.Elec_Segreg if(SepCodeSegOfThisBranch == SegSecondBranch.Elec_Segreg) { Validation = true } else { Validation = false Notify("Merge cannot be done as branches " + ThisObject.Name + " and " + SecondBranch.Name + " are not compatible") } |