Skip to content

Instantly share code, notes, and snippets.

View joecastelo's full-sized avatar

Joao Castelo joecastelo

View GitHub Profile
@joecastelo
joecastelo / Program.cs
Created June 14, 2022 01:33
Gist for the post
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WorkShopCBFM22
{
@joecastelo
joecastelo / Script.cs
Created September 30, 2020 18:59
Template to Portal Dosimetry API for plugins.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using VMS.CA.Scripting;
namespace VMS.DV.PD.Scripting
{
@joecastelo
joecastelo / Executable.cs
Created September 30, 2020 18:56
Script Template for PD Scripting
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using VMS.CA.Scripting;
using VMS.DV.PD.Scripting;
namespace PDQuery
@joecastelo
joecastelo / StIdChecks.cs
Created September 1, 2020 17:30
Structure Id Checking 👽
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VMS.TPS.Common.Model.API;
namespace StructureOnWPF
{
public class Helpers
@joecastelo
joecastelo / SegShift.cs
Last active September 1, 2020 17:38
Class that allows modifying geometry of structures in ESAPI
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VMS.TPS.Common.Model.API;
using VMS.TPS.Common.Model.Types;
namespace SegmentShifter
{
@joecastelo
joecastelo / App.xaml.cs
Created July 22, 2020 20:30
Point the App to Start by calling the Script
using EsapiEssentials.PluginRunner;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
namespace PluginTester
@joecastelo
joecastelo / ScriptTesting.cs
Last active July 22, 2020 21:52
Start point for CA Esapi plugin Runner
using EsapiEssentials.Plugin;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VMS.TPS.Common.Model.API;
[assembly: ESAPIScript(IsWriteable = true)]
@joecastelo
joecastelo / Script.cs
Created July 22, 2020 18:53
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)]
@joecastelo
joecastelo / BeamIdChanger.cs
Created July 22, 2020 18:51
Code that receives a PlanSetup and change Fields ID based on gantry angle. Also ranks if STATIC fields are complementary or field in fields
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Windows;
using VMS.TPS.Common.Model.API;
namespace FieldIdFromGantry
@joecastelo
joecastelo / Program.cs
Last active July 16, 2020 15:44
Executable for making change to any patient
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VMS.TPS.Common.Model.API;
[assembly: ESAPIScript(IsWriteable = true)]
namespace WritableExecutable