Created
July 22, 2020 18:53
-
-
Save joecastelo/0de5aaee48e2d8ea0240759b0543f683 to your computer and use it in GitHub Desktop.
Script that calls BeamIdChanger
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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