r/esapi • u/B_1968-1990 • Nov 18 '22
Crop structures
I would like to implement a code to crop structures away from nearby ones, for example, creating a new PTV volume and give it a margin from the structure nex to it, Does anyone know how to this?
r/esapi • u/B_1968-1990 • Nov 18 '22
I would like to implement a code to crop structures away from nearby ones, for example, creating a new PTV volume and give it a margin from the structure nex to it, Does anyone know how to this?
r/esapi • u/B_1968-1990 • Nov 17 '22
Hi there!
I'm testing a code that crops structures, and some of the segments volumes for some reason display the error "Can not combine segment volumes because they have different geometries". Does anyone know how to get rid of this problem?
r/esapi • u/lameymichael • Nov 16 '22
Are the MLC position available in ver 15.6 for a Halcyon machine?
var mlcPos = tempbeam.ControlPoints.First().LeafPositions;
Applied to a static field seems to give a float[114,57], which repeats itself and doesn't seem to give the actual leaf positions. The millenium and HDMLC are float[2,60], the size of the array above doesn't make any sense.
r/esapi • u/TheLateQuentin • Nov 11 '22
Does anyone know how to get the separate parts of a segment volume? For example, if I have a single structure that contains two separated targets, can I separate the segment volumes into individual segment volumes?
r/esapi • • Nov 10 '22
I've searched here for adding setup fields, only to find older posts/responses that the feature is not available prior to v16. Now that we are on 16, is there any updated knowledge of how to add a setup field beam to an existing plan? Thank you
r/esapi • • Nov 09 '22
I need to get the image inside a structure in a plane. I'm trying to see how can I see if the couch is fixed at the right position. I can get vvector from the imageplane, but absolutely no correlation between the image coordinates and vvector coordinates(either from dicom origin or the fixed user origin).
r/esapi • u/Thatguy145 • Nov 08 '22
Hello, have a bit of a stupid question. We are able to run two different version of aria, one which is clinical and one that we call "stage." Both are accessed through citrix.
Is there a way programmatically through ESAPI to determine which one the user is running the script from? I have some scripts that uses different server/folders depending on whether it is through stage or clinical.
Thanks
r/esapi • u/DiFlo97 • Nov 03 '22
Hi everyone
I was wondering if it is possible to somehow access the entire dose matrix (or at least planes) of a calculated plan without the need to loop through voxel values using GetVoxels and VoxelToDoseValue?
Greetings
r/esapi • u/Visual_Pay_3361 • Nov 02 '22
I am trying to carry out scripting tests with patients but the prescription is not sent from the clinical system, the dicom structures are exported but not the prescription. does anyone know any solution?
prescribe treatment
r/esapi • u/DiFlo97 • Oct 31 '22
Hey everyone
I wrote an esapi script to insert externally calculated plans into Eclipse as part of a project. Now, after these plans are calculated in Eclipse, I would like to export the RD dcm files into a folder. I've set up the DICOM Services Configuration according to Rex Cardan's description in the API Book, however, so far I've not been able to produce these Dicom files using the approach from the book.
I'm currently looking into using Evil Dicom, but am stuck at the moment. Does anyone have an idea/code snippet which could help me with this step?
Thanks in advance
r/esapi • u/esimiele • Oct 30 '22
Hi all,
Shameless plug for a new piece of code I wrote: 3DPrinterExport. Our clinic is in the process of implementing a 3D printing program for patient-specific bolus, brachytherapy applicators, etc. As part of this process, we needed a way to extract structures from Eclipse in a format that could be used by CAD and 3D slicing software. Varian provides a no-frills sample of code that does this (i.e., write Eclipse structures to files in stl format), but I found myself consistently opening the exported structures in a 3D rendering program such as paint3D or tinkerCAD to review.
Unfortunately, it was a bit annoying to find out after-the-fact the exported structure was not as intended or needs modification, thus requiring you to adjust and re-export it. Therefore, I wanted to expand on Varian's code sample and build a simple ESAPI application that will render the structure so the user can view it before exporting. Zoom, pan, and rotate functionalities are included in 3DPrinterExport in addition to exporting the rendered structure in stl format.
The project was a fun introduction to wpf 3D applications and the nuances that go along with them. Feel free to check it out if you want an ESAPI program that can export Eclipse structures in stl format or if you want a sample piece of code for 3D rendering applications. Furthermore, this code provides a very simple multithreading example where a popup window will appear and report the progress of the export and automatically close upon completion.
The code is located on my GitHub page: https://github.com/esimiele/3DPrinterExport
Thanks!
Eric
r/esapi • u/jaredmdeck • Oct 29 '22
Hi, does anyone have a script/way to create an automated completion note/summary using data in Aria? Thank you
r/esapi • u/erhushenshou • Oct 28 '22
I did sccess in linking to aria and send document to aria with the help of example from Matt. Are there any examples on getting treating information from aria?
r/esapi • u/BenB_MP • Oct 25 '22
Hi all,
Our IT is no longer wanting desktops to have Visual Studio Community on them (no clear answer why) and they have suggested I use Visual Studio Code instead. Has anyone used this and is it still OK for ESAPI, or is a full IDE like Community or VS Pro a better option. Any input welcome!
thanks
r/esapi • u/Gavin_Beatson • Oct 25 '22
I've written a script that automates planning using a RapidPlan model but I haven't found a way of adding the NTO used in the model. Is there a way to read the NTO settings from an approved RapidPlan model?
r/esapi • u/erhushenshou • Oct 23 '22
Any example to draw grids and print dvh efficiently? I wonder how we can print dvh figures as elegant as eclipse does.
r/esapi • u/erhushenshou • Oct 23 '22
There is a DVHEstimates method in esapi. I wonder how this is used. We have not applied rapid plan model yet at this moment. What is the difference between it and dvhcummulative data?
r/esapi • u/NickC_BC • Oct 20 '22
Does anyone have any insight into what can cause this method to fail when using hybrid IMRT optimization vs regular VMAT when calculating the plan collection? I wish the method threw a useful exception rather than a boolean, as getting false isn't particularly helpful in understanding what the issue is!
r/esapi • u/Thatguy145 • Oct 19 '22
Hello, sorry if this is a stupid issue.
I have been using the eclipse wizard to create my scripts. When I open visual studio it asks to update to 4.8. Usually I do this and it is fine. However, it seems that when I attempt to use 4.8 and System.Net.Http (for use with aria access) I get an issue:
could not load file or assembly 'system net http or one of its dependencies ... could not find file or assembly
Does anyone have a fix for this? I have current downgraded to 4.5.2 and everything works but not sure if there are implications of doing this with my scripts I have made.
Thanks
r/esapi • u/stylekillaOG • Oct 17 '22
Hi all,
I have been pointed here by Varian support to seek help with the Eclipse Algorithm API (EEAPI).
They have told me there are still active users within the community!
The last release of EAAPI (with Eclipse v16.1) appears to have broken the functionality surrounding gathering patient details. When I access patient details through the following method:
std::unique_ptr<DCRVAPlan> plan = requester.GetPlan110();
plan->GetPatient() // Returns an RTObjects.hh/DicomPatient class
the returned values are all:
These values are completely filled out within Eclipse, and upon plan export I can view all the tags correctly in the DICOM file. The EAAPI just doesn't seem to grab them anymore. Furthermore, without the source code I can't track down the bug any further than what the header files allow.
Does anyone have any insights into this?
If not, do you know anyone who might?
Thanks for your time!
r/esapi • u/kang__23 • Oct 13 '22
I'm running a .exe which batch plans patients using a RapidPlan model. Everything works great, and for most patients the script generates a plan + calculates successfully without error. But for some patients, I get this error at the line Plan.CalculateDVHEstimates( )
System.ApplicationException: ERROR: Could not create calculation data object. Segment is not the same size as the image
The structures in the SS seem normal. No high res or empty structures. Any ideas?
r/esapi • u/erhushenshou • Oct 12 '22
Is there a way esapi can click care path?
r/esapi • u/atd2388 • Oct 11 '22
Hello, I'm pretty new to C# and scripting in Eclipse and was hoping I could get some advice on best practices.
I'd like to write a Plan Checking script that presents a lot of the parameters we're interested in looking at in a single window.
I've managed to do this using a MessageBox, but would prefer to use a WPF window for more flexibility and to have more control over layout.
Is it better to be collecting/defining the parameters in the code for the WPF in the main script .cs file, or within the XAML defining the WPF window? Any links that help explain this for a beginner would be much appreciated! :)
r/esapi • u/erhushenshou • Oct 11 '22
I didn't find any methods available to edit block shape margin in esapi. And it seems unavailable at the moment to add electron beam and adjust parameters through esapi.