Skip to content

Instantly share code, notes, and snippets.

@joecastelo
Created July 22, 2020 18:53
Show Gist options
  • Save joecastelo/0de5aaee48e2d8ea0240759b0543f683 to your computer and use it in GitHub Desktop.
Save joecastelo/0de5aaee48e2d8ea0240759b0543f683 to your computer and use it in GitHub Desktop.
Script that calls BeamIdChanger
using FieldIdFromGantry;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using VMS.TPS.Common.Model.API;
[assembly: ESAPIScript(IsWriteable = true)]
namespace VMS.TPS
{
public class Script
{
public static void Execute(ScriptContext scriptContext)
{
scriptContext.Patient.BeginModifications();
BeamIdChanger changer = new BeamIdChanger(scriptContext.PlanSetup);
changer.ChangeBeamsIdsFromGantryAngles();
MessageBox.Show(changer.Log);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment