Here's an ESAPI script that will create planning and optimization structures based on anatomical structures. The script is developed to be a binary plugin, which means it could be run when the patient and their initial structure set is loaded into Eclipse. We provide a guide on how to:
- Run Binary Plugin
- Compile the Binary Plugin
- Develope the Plugin Further
Please note that the script was built to work for any treatment site and structure creation guideline. However, the users are required to provide the structure creation guideline as a .json template file. See section 4. Structure Creation Template for more details.
To get started, either clone the repo or download it from https://github.com/hosseinjafar/gen_optimization_structures.git
Extract the content into a directory that is accessible to Eclipse. We recommend the stanadardDocuments\ location.
-
Extract the contents of compiled.esapi.zip and veify the following files exist in the extracted location. These are the binaries required:
Gen_Optim_Structures_Binary.esapi.dllGen_Optim_Structures_Binary.esapi.dll.configGen_Optim_Structures_Binary.esapi.pdbNewtonsoft.Json.dllNewtonsoft.Json.xml
-
Open Eclipse and load the patient with their initial structure set
- Load the script by going to
Tools/Scripts...
Then, Click on Change folder and navigate to where the extracted binaries from step 1 are stored. Click Open after
- Now select the script
Gen_Optim_...and click run:
A pop up window will open asking you to guide you to the structure creation template file. The location is Documents\gen_optimization_structures\Data. Here you'll see a few of our predefined templates. You'll likely make one for your center.
After you select the template file, you'll get a confirmation that the structure relations file was found. click ok
Then you'll get a message saying the number of structures loaded from your initial plan. click ok.
Then, a window will popup showing all the structures (old and the new) as well as their resolution. Once you close this window, the context on Eclipse will get updated with the new structures created.










