Views:

Question

How to create a flow bundle based upon a PrT assignment by using COM, using multiple conditions, some include, some exclude network elements?

Answer

Example:

 

aFlowBundlePrT = Visum.Net.FlowBundle
aFlowBundlePrT.Clear()
aFlowBundlePrT.DemandSegments = "C"

 

anActivityTypeSet1 = aFlowBundlePrT.CreateActivityTypeSet()

 

aFlowBundlePrT.CreateCondition(Visum.Net.Nodes.ItemByKey(444), anActivityTypeSet1, False)
aFlowBundlePrT.CreateCondition(Visum.Net.Nodes.ItemByKey(159), anActivityTypeSet1, False)
aFlowBundlePrT.CreateCondition(Visum.Net.Links.ItemByKey(1000006, 156604525), anActivityTypeSet1, True)

 

aFlowBundlePrT.ExecuteCurrentConditions()