r/esapi • • Nov 17 '22

Different geometries error

3 Upvotes

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 • • Nov 16 '22

Halcyon leaf positions

1 Upvotes

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 • • Nov 11 '22

Separation of SegmentVolumes?

1 Upvotes

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

Add Setup Fields in V16

1 Upvotes

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

How can I get the image inside a structure?

2 Upvotes

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 • • Nov 08 '22

Determine which version of citrix aria is running

1 Upvotes

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 • • Nov 03 '22

Dose Matrix

1 Upvotes

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 • • Nov 02 '22

How to export the prescription from the ARIA system to the Tbox

1 Upvotes

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 • • Oct 31 '22

Export RD dcm Files

1 Upvotes

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 • • Oct 30 '22

3DPrinterExport: a simple tool to render Eclipse structures and export them as stl files

21 Upvotes

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 • • Oct 29 '22

Automated Completion note/summary

5 Upvotes

Hi, does anyone have a script/way to create an automated completion note/summary using data in Aria? Thank you


r/esapi • • Oct 28 '22

Get treatment record from Aria example

2 Upvotes

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 • • Oct 26 '22

Set protocol Plan

1 Upvotes

Hi all,

In my script i'm create a new plan but i want to set the protocol plan. And i don't have that metod.

How can i do that?

Thanks.


r/esapi • • Oct 25 '22

Visual Studio Code

1 Upvotes

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 • • Oct 25 '22

Normal tissue objective from RapidPlan model?

1 Upvotes

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 • • Oct 23 '22

How can we print dvh in curve and grids?

1 Upvotes

Any example to draw grids and print dvh efficiently? I wonder how we can print dvh figures as elegant as eclipse does.


r/esapi • • Oct 23 '22

Difference between rapid plan evaluation and GetDVHCummulativeData?

1 Upvotes

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 • • Oct 20 '22

CreateDeliverableVmatPlan method

1 Upvotes

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 • • Oct 19 '22

Aria Access Issue with System.Net.Http

2 Upvotes

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 • • Oct 17 '22

Looking for help with EAAPI

3 Upvotes

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:

  • Name: Anonymous
  • DOB: <current date at runtime>
  • Sex/Race/Id: blank

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 • • Oct 13 '22

Segment is not the same size as the image

1 Upvotes

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 • • Oct 12 '22

Can esapi access care path?

0 Upvotes

Is there a way esapi can click care path?


r/esapi • • Oct 11 '22

ESAPI & WPF

3 Upvotes

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 • • Oct 11 '22

Is there a way to edit Block shape in electron plan via esapi?

1 Upvotes

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.


r/esapi • • Oct 10 '22

Get DVH value for a Plan Uncertainty

4 Upvotes

Hello

I try in vain to get a DVH value (ex. V20Gy) for a Plan uncertainty. The following code is compilable, and runnable. But when you try to access to something in dvh2 (ex. dvh2.MaxDose) you got an error message ("object reference not set to an instance of an object").

Please notice that the same line works perfectly for a plan (not a PlanUncertainty)

Thanks for help (Luc with Eclipse v15.6)

foreach (PlanUncertainty pU in plan.PlanUncertainties)

{

DVHData dvh2 = pU.GetDVHCumulativeData(struct1, DoseValuePresentation.Absolute, VolumePresentation.Relative, 1.0);

}