How can I get current plan's optimize objective values

Jun 16, 2016 at 1:49 PM
I need to extract current plan's optimize objective values from API (research version V13 -without calling Optimize). The data I need looks like the values defined in OptimizationPointObjective. How can I go through ExternalPlanSetup class (or the other ways) to get the values? I research the ExternalPlanSetup.OptimizationSetup class, there are ONLY "structure" and "structureID" in the ExternalPlanSetup.OptimizationSetup.Objetives class and no properties available in ExternalPlanSetup.OptimizationSetup.Parameters .

Jun 16, 2016 at 2:58 PM
Here's a sample of how to cast the generic OptimizationObjective to the correct type:
      PlanSetup ps = context.PlanSetup;
      OptimizationSetup ops = ps.OptimizationSetup;
      foreach (OptimizationObjective obj in ops.Objectives)
        if (obj is OptimizationPointObjective)
          OptimizationPointObjective opo = obj as OptimizationPointObjective;
          double priority = opo.Priority;
          DoseValue dose = opo.Dose;
          double vol = opo.Volume;
Jun 17, 2016 at 2:19 PM
It works! Thank you very much!
Aug 16, 2016 at 3:13 PM
Edited Aug 16, 2016 at 3:15 PM
Is it possible to access these values with V11?

Edit: nvm. another thread clearly states it is not possible.
Aug 17, 2016 at 2:00 PM
OptimizationSetup class only exists in V13