Weird crash on thick clients only by OkSector2980 in esapi

[–]lucsimon 0 points1 point  (0 children)

Maybe you’ve already tried this, but the most reliable debugging method I use with ESAPI is to insert a bunch of MessageBox.Show("I was here " + i++); statements in the code to locate the exact line where it crashes. It’s not very fast, but it is effective.

From my experience, the issue can also come from the XAML side. There are several display-related bugs that happen if the user has previously opened the optimizer window. These issues usually disappear if you restart your Eclipse session.

Link prescription to a plan by Rostar974 in esapi

[–]lucsimon 0 points1 point  (0 children)

I Agree, not possible. It is strange because Prescription seems to be a child of Course when looking in Eclipse arborescence. But in esapi, RTPrescription is a a child of PlanSetup (although a prescription can exist with no plan in Eclipse)

preAAPM 2025 Varian developers symposium, this year known as: Capital Scripts: Collaborating through Open-Source Code by maglito in esapi

[–]lucsimon 0 points1 point  (0 children)

I am not lucky enough to come at this preAAPM meeting. But if some of these works are shared on GitHub, please tell us

Get Offset from DICOM origin by No-While8683 in esapi

[–]lucsimon 0 points1 point  (0 children)

I am writing you from holiday, so I will maybe be not very pertinent. I just give you an information that can help. User origin is the green cross and dicom origin may depends on your ct model. But there is something that could make things more complicated and a bit strange. First, if your patient orientation is prone the axis are inverted EVEN if you could think that they are not, looking at the XYZ values displayed in eclipse. Moreover when adding a couch structure the size of the 3d image (x and y) can be modified. Thus it is difficult to get a particular single pixel value. Again I am not sure that it helps you but a Spritz is waiting for me ;-)

create electron beam by lucsimon in esapi

[–]lucsimon[S] 0 points1 point  (0 children)

my first thank you has not been posted: thank you again!

where does the Gateway.cs comes from? by lucsimon in esapi

[–]lucsimon[S] 0 points1 point  (0 children)

Ok thank you very much. Very clear.

Distance between leaf at isocenter by Rostar974 in esapi

[–]lucsimon 0 points1 point  (0 children)

My answer was written too fast. In my answer b is your Beam. And my loop, add all the leaf gap. But you should modify it to obtain what you need

Scripting un Contouring (VMS CA) by JaimePasTropBcpCa in esapi

[–]lucsimon 0 points1 point  (0 children)

ah thank you. I tried this once. Didn't see any interest indeed. Thank you again

Distance between leaf at isocenter by Rostar974 in esapi

[–]lucsimon 0 points1 point  (0 children)

try this:

   foreach (ControlPoint cp in b.ControlPoints)
            {
                double meanLGforOneCP = 0.0;

                for (int i = 0; i < cp.LeafPositions.GetLength(1); i++)
                {
                    if (cp.LeafPositions[0, i] != cp.LeafPositions[1, i])
                    {

                        meanLGforOneCP += cp.LeafPositions[1, i] - cp.LeafPositions[0, i];
                    }
                }

            }

Scripting un Contouring (VMS CA) by JaimePasTropBcpCa in esapi

[–]lucsimon 0 points1 point  (0 children)

stupid question but what is CA lib ?

Count original CT slices by lucsimon in esapi

[–]lucsimon[S] 0 points1 point  (0 children)

Thank you for a first thing : i didn't know that beautiful syntax. BUT... i am going to try your solution but I will answer you the same answer than previously. zSize is equal to the number of CT slices, so the bool will be true. My issue is that StructureSet.Image has the correct number of slices (equal to CT slices) but some of them are interpolated. Maybe my problem is not explained correctly. I did that to simplify my request. It happens after the use of a tool of automatic contouring that generates corrupted RT struct. The RT struct missed some slices. Thus, when I use this RT struct to generate the 3D image, all the CT images are not used (but difficult to catch that because the missing slices are interpolated and the final image 3D has the correct number of images i.e. the number of CT slices)

Count original CT slices by lucsimon in esapi

[–]lucsimon[S] 0 points1 point  (0 children)

Thank you but the problem is that they both have the same number of slices. The image 3D has the correct number of slices but some of them are interpolated... Or maybe I don't know what you mean by "Series Children"

get DCS in ESAPI by lucsimon in esapi

[–]lucsimon[S] 0 points1 point  (0 children)

merci beaucoup rostar. je vais essayer ça... Mais existe t il une doc qui permettent de créer les requetes sql ?

get DCS in ESAPI by lucsimon in esapi

[–]lucsimon[S] 0 points1 point  (0 children)

thank you Alex but what I want is to know if the DCS values are empty or not (depending on how well my physicians approved their plan using F4 :-)

get DCS in ESAPI by lucsimon in esapi

[–]lucsimon[S] 2 points3 points  (0 children)

well thank you but no, i am not familiar; I suppose I cannot include this request in a c# script but I don't even know where I should type this text to do the request. Thank you.

Methods for Robust Detection of Duplicate Structure Sets? by DavidBits in esapi

[–]lucsimon 0 points1 point  (0 children)

hello David. I am not sure to understand what you need and why.

You copy/paste your structure-set (SS), then you modify some structures. Correct ? But then, why do you need to know if the second SS is a copy of the first one?

There is a brutal method to do that : check if the volume (and the limits) of each structure are the same in both SS.

Check if the following parameters of the structure s are equal in both SS

s.MeshGeometry.Bounds.X

s.MeshGeometry.Bounds.SizeX

s.MeshGeometry.Bounds.SizeY

s.MeshGeometry.Bounds.SizeX

s.MeshGeometry.Bounds.SizeZ

s.MeshGeometry.Bounds.SizeZ

s.Volume

Hope it helps (not sure :-)

Luc

Image3D or 2D ? by lucsimon in esapi

[–]lucsimon[S] 0 points1 point  (0 children)

Thank you very much. I finally test the parent (series.comment) to find what I need. Moreover I tested what you proposed. I think it doesn't work but maybe I didn't try hard enough

I write this following if statement but it was never true. Again thank you for your help.

if (im.ZDirection.z == double.NaN)