Shift Isocentre for Proton Plans

Jan 21, 2016 at 4:51 PM

I am looking to write some code that will perform isocentre shifts for proton plans. I have some code that reads
            foreach(Beam beam in planSetup.Beams)
                BeamParameters bp = beam.GetEditableParameters();
                bp.Isocenter = beam.IsocenterPosition + shift;
(Where shift is of type VVector).

However, this produces an error saying that the Technique of BeamParameters does not match Beam. I have had success with photon plans, but am I not able to do this with proton beam plans?

Jan 29, 2016 at 4:39 PM
Proton support is not added until ESAPI v13.7. While some features work for proton plans in earlier versions like getting dose and doing DVH lookups, features related to plan geometry will not work. We've implemented proton plan geometry access with the IonPlanSetup hierarchy in v13.7.