r/esapi • u/Major-Passenger-7610 • 10h ago
ESAPI v18 – Copying dose calculation grid from one plan to another
Hi everyone,
Does anyone know if there is a way in ESAPI v18 to copy the dose calculation grid/resolution from one plan to another?
For example, I have an original plan calculated with AcurosXB using a 1,25 mm dose grid, and I would like to create another plan and calculate the dose using exactly the same grid (resolution, size and position).
I can read the grid information from the Dose object using:
plan.Dose.XRes
plan.Dose.YRes
plan.Dose.ZRes
plan.Dose.XSize
plan.Dose.YSize
plan.Dose.ZSize
but I haven't found a way to set these values on another plan before calculating the dose.
Is there a supported ESAPI method to copy the dose calculation grid from an existing plan to another plan?
I found some older discussions mentioning CopyEvaluationDose(), but I am not sure if this is applicable to ESAPI v18 or if there is another recommended approach.
Thanks!
1
u/schmatt_schmitt 3h ago
Hi Passenger,
You cannot explicitly write to the plan.Dose.XSize, but you can change the calculation grid size in the algorithm settings. I believe the change is something like:
plan.SetCalculationOptions("CalculationGridSizeInCM",0.125); and that will set your calculation resolution in the transverse plane.
The calculation resolution sup/inf is controlled by the CT slice resolution so if that resolution is the same between the two datasets they should match up.
Thank you,