.MakeCurrent/.Current
Description
- Sets an object as the active object.
- Similar to manually clicking on an item.
- If ".MakeCurrent" does not work properly, then ".Current" may work.
Examples
TrialList.Current.BeamList.#"#0".MakeCurrent=""; // Makes first beam current (index 0).
TrialList.Current.BeamList.#"G240".MakeCurrent=""; // Makes beam named G240 current.
TrialList.Current.BeamList.Current = Store.StringAt.TestStr; //String variable must be a beam name
TrialList.Current.BeamList.Current = Store.FloatAt.TestFlt; //Float variable must be an integer that references the beam index
TrialList.Current.IsocenterList.Current = Store.StringAt.SomeIsoName; //String variable must be an isocenter name