Context Object Parameters
Parameter Name | Type | Read/Write | Comments |
---|
ThisObject | ConductorGroup |
Read/Write | - |
Sample
The following sample explains how to modify an attribute depending on the route status of a conductor group.
Let nbConductors(Integer)
Let ListConductors(List)
Let Cond1(Conductor)
Let Cond2(Conductor)
Set ListConductors = ThisObject.Children
nbConductors = ListConductors.Size()
Cond1 = ListConductors.GetItem(1)
Cond2 = ListConductors.GetItem(2)
if( Cond1.Elec_IsNetworkConnex AND Cond2.Elec_IsNetworkConnex)
ThisObject.Elec_Sep_Code = "Fully Routed"
else if(Cond1.Elec_IsRouted AND Cond2.Elec_IsRouted)
ThisObject.Elec_Sep_Code = "Broken"
else
ThisObject.Elec_Sep_Code = "Not Routed"